Oracle Database and SQL: Read Consistency, Row Locks and Schema Ownership?

Managing database transactions The relationship between a database and SQL
Answer Correct answer: C, E — Oracle guarantees statement-level read consistency for SELECTs on user-created tables, and an UPDATE locks each row it modifies.

Which two statements are true about Oracle databases and SQL? (Choose two.)

  1. Updates performed by a database user can be rolled back by another user by using the ROLLBACK command.
  2. A query can access only tables within the same schema.
  3. The database guarantees read consistency at select level on user-created tables. Correct Answer
  4. A user can be the owner of multiple schemas in the same database.
  5. When you execute an update statement, the database instance locks each updated row. Correct Answer

Community Votes

CE
75%
CD
25%

75% of anonymous learners picked answer CE. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

Tests Oracle transaction fundamentals — statement-level read consistency and per-row locking on UPDATE — where the classic trap is believing that a single database user can own several schemas (option D).

Oracle guarantees read consistency at the SELECT statement level for user-created tables and takes a row-level lock on every row an UPDATE modifies, while each database user owns exactly one schema. That makes C and E the only two true statements in this 1Z0-071 item.

Choosing D on the assumption that one user can own multiple schemas; in Oracle a schema is exactly the collection of objects owned by one user and carries that user's name, so the user-to-schema relationship is strictly one-to-one.

Community Discussion (3 comments)

archit4321 👍 2 Selected: CE
C and E are the most accurate
billysunday1 👍 1 Selected: CE
C and E. https://docs.oracle.com/cd/B28359_01/server.111/b28318/schema.htm#CNCPT111 A schema is a collection of logical structures of data, or schema objects. A schema is owned by a database user and has the same name as that user. Each user owns a single schema. Schema objects can be created and manipulated with SQL and include the following types of objects:
billysunday1 👍 1 Selected: CD
Answer should be C and D. C is ACID which Oracle SQL always do https://docs.oracle.com/cd/B13789_01/server.101/b10759/statements_8003.htm CREATE USER my_user IDENTIFIED BY my_password DEFAULT TABLESPACE tbspace1 QUOTA UNLIMITED ON tbspace1; GRANT schema1, schema2 TO my_user;

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

Option C is true because Oracle implements multi-version read consistency: when a SELECT starts, the database returns data as of a single point in time (statement-level read consistency, escalated to transaction level in serializable transactions), reconstructing older versions of changed blocks from undo segments. This guarantee applies to ordinary user-created tables, not just dictionary objects, so readers never see uncommitted or half-applied changes.

Option E is true because an UPDATE first acquires a transaction lock (TX) and then locks each individual row it changes by marking the row's interested transaction list entry in the block; a second session attempting to update the same row waits until the first transaction commits or rolls back. This row-level locking is what allows Oracle to support high concurrency without escalating to table locks.

Together, C and E describe the two pillars of Oracle's concurrency model: readers do not block writers and writers do not block readers, because readers use undo snapshots while writers hold row-level locks.

Why the Other Options Are Wrong

Option A is false because ROLLBACK is scoped to the transaction of the session that made the changes; no other database user can roll back your uncommitted UPDATE. Only your own session can undo it (or the instance itself, via SMON recovery, after a session failure) — not an unrelated user issuing ROLLBACK.

Option B is false because a query can read tables owned by other schemas whenever the owner has granted the needed object privileges (or SELECT ANY TABLE / DBA rights exist); you simply qualify the name, e.g. hr.employees, or reference a synonym. Restricting a query to 'the same schema' is not an Oracle rule at all.

Option D is false because Oracle maintains a one-to-one mapping between users and schemas: 'A schema is owned by a database user and has the same name as that user.' Privileges on objects in other schemas can be granted to a user, but granting access never transfers ownership of a second schema.

Community Comment Notes

One commenter (billysunday1) supplied the decisive evidence against D by quoting Oracle Concepts: "Each user owns a single schema" and noting the schema shares the user's name — exactly the documentation-based reasoning that settles this question for C and E.

The same commenter then contradicted himself in a second comment, insisting "Answer should be C and D" and pasting a CREATE USER statement alongside a GRANT of schema names to that user; granting access to another schema's objects is not the same as owning a second schema, and CREATE USER creates one user with one implicit schema. The third commenter, archit4321, cuts straight to the point: "C and E are the most accurate".

The vote record (CE 75 versus CD 25) shows roughly a quarter of learners falling for the schema-ownership misconception in D, which is why the documentation quote from the first comment is worth memorizing rather than the vote split.

Official Reference

Exam Strategy

For 'which two statements are true' items, judge each option independently as true or false against Oracle doctrine instead of hunting for a matching pair, because distractors such as D are designed to look plausible. Anchor the transaction options on two rules: read consistency is guaranteed by undo snapshots, and UPDATE locks rows individually — then count exactly two true statements.

Frequently Asked Questions

Why can't one Oracle user own multiple schemas, as option D claims?

In Oracle a schema is the set of objects owned by one user and carries that user's name, so the user-to-schema relationship is strictly one-to-one; you can be granted privileges on other schemas, but never own a second one.

Can a second database user roll back my UPDATE with the ROLLBACK command?

No. A transaction and its rollback belong to the session that made the change, so another user cannot undo your uncommitted UPDATE — which makes option A false.

More 1Z0-071 FAQ →

Related Analysis

← Back to 1Z0-071 Study Guide