Which sessions can see the effect of the UPDATE and DELETE commands?

All the database users are presently connected to the database instance and working. The HR user
has opened three database sessions and executed the following command in one of his sessions:
SQL> UPDATE persons SET ccode=’U031′ WHERE ccode=’U029′;
123 rows updated.
SQL> DELETE FROM persons WHERE exp=’Y’;
3 rows deleted.
The SYS user opens a new session after HR executed the above commands. Which sessions
can see the effect of the UPDATE and DELETE commands?

All the database users are presently connected to the database instance and working. The HR user
has opened three database sessions and executed the following command in one of his sessions:
SQL> UPDATE persons SET ccode=’U031′ WHERE ccode=’U029′;
123 rows updated.
SQL> DELETE FROM persons WHERE exp=’Y’;
3 rows deleted.
The SYS user opens a new session after HR executed the above commands. Which sessions
can see the effect of the UPDATE and DELETE commands?

A.
All sessions of the HR user only

B.
All sessions of the HR user and the SYS user

C.
The session of the HR user that executed the commands

D.
All the sessions for which the database users have access privilege to the PERSONS table



Leave a Reply 2

Your email address will not be published. Required fields are marked *


Sam

Sam

Because there is no submission after update and delete, so only the current session can see the results after the implementation of these two statements .

rosh

rosh

Because the UPDATE and the DELETE stmts are not committed. So only the current session can view the effects of these UPDATE and DELETE commands.