1Z0-062 · Question #371
A database is open READ WRITE and the instance has multiple sessions some of which have active transactions. You execute this command: SQL> ALTER SYSTEM ENABLE RESTRICTED SESSION; Which three are…
The correct answer is B. They are suspended and unable to issue any statements D. They are rolled back automatically F. They are terminated immediately. When ALTER SYSTEM ENABLE RESTRICTED SESSION is executed, active transactions from non-privileged sessions are suspended, automatically rolled back, and immediately terminated according to the expected behavior.
Question
A database is open READ WRITE and the instance has multiple sessions some of which have active transactions. You execute this command:
SQL> ALTER SYSTEM ENABLE RESTRICTED SESSION; Which three are true about the active transactions? (Choose three.)
Options
- AThey may issue COMMIT or ROLLBACK statements
- BThey are suspended and unable to issue any statements
- CThey may continue to issue DML statements
- DThey are rolled back automatically
- EThey may continue to issue queries
- FThey are terminated immediately
How the community answered
(38 responses)- A3% (1)
- B84% (32)
- C11% (4)
- E3% (1)
Why each option
When ALTER SYSTEM ENABLE RESTRICTED SESSION is executed, active transactions from non-privileged sessions are suspended, automatically rolled back, and immediately terminated according to the expected behavior.
Non-privileged active transactions are prevented from issuing COMMIT or ROLLBACK statements once RESTRICTED SESSION is enabled, as their operations are terminated.
When RESTRICTED SESSION is enabled, non-privileged active sessions are effectively suspended, rendering them unable to initiate any new statements; existing active transactions will find subsequent operations blocked.
Non-privileged active sessions cannot continue to issue DML statements after RESTRICTED SESSION is enabled, due to their suspension and termination.
For non-privileged users with active transactions when RESTRICTED SESSION is enabled, these active transactions are automatically rolled back by the database system.
Non-privileged active sessions cannot continue to issue queries once RESTRICTED SESSION is enabled, as their activities are halted.
Active transactions from non-privileged sessions are immediately terminated upon enabling RESTRICTED SESSION, ceasing their operations without completion.
Concept tested: Oracle RESTRICTED SESSION impact on active transactions
Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/ALTER-SYSTEM.html#GUID-2BC46779-705E-4B07-8898-B6082269666E
Topics
Community Discussion
No community discussion yet for this question.