nerdexam
Oracle

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.

Managing the Database Instance

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)
  • A
    3% (1)
  • B
    84% (32)
  • C
    11% (4)
  • E
    3% (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.

AThey may issue COMMIT or ROLLBACK statements

Non-privileged active transactions are prevented from issuing COMMIT or ROLLBACK statements once RESTRICTED SESSION is enabled, as their operations are terminated.

BThey are suspended and unable to issue any statementsCorrect

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.

CThey may continue to issue DML statements

Non-privileged active sessions cannot continue to issue DML statements after RESTRICTED SESSION is enabled, due to their suspension and termination.

DThey are rolled back automaticallyCorrect

For non-privileged users with active transactions when RESTRICTED SESSION is enabled, these active transactions are automatically rolled back by the database system.

EThey may continue to issue queries

Non-privileged active sessions cannot continue to issue queries once RESTRICTED SESSION is enabled, as their activities are halted.

FThey are terminated immediatelyCorrect

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

#RESTRICTED SESSION#active transactions#DML#COMMIT/ROLLBACK

Community Discussion

No community discussion yet for this question.

Full 1Z0-062 Practice