QuestionQ50

VerifiedManaging Data Concurrency

User SCOTT owns the CUST table, which resides in the SALES tablespace. SCOTT opens a session and runs these commands:

SQL> INSERT INTO cust VALUES(101, 'JACK');  
1 row created.  
SQL> INSERT INTO cust VALUES(102, 'SMITH');  
1 row created.  

As a DBA, you run the following command from another session:

ALTER TABLESPACE sales READ ONLY;  

Which statement is true about the effect of this command on the transaction in SCOTT's session?

Explanation

Changing a tablespace to read-only puts it into a transitional read-only state. The ALTER TABLESPACE ... READ ONLY command waits for earlier transactions with uncommitted changes in that tablespace to commit or roll back; afterward, the tablespace becomes read-only.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!