1Z0-060 · Question #40
You conned using SQL Plus to the root container of a multitenant container database (CDB) with SYSDBA privilege. The CDB has several pluggable databases (PDBs) open in the read/write mode. There are…
The correct answer is B. The shutdown proceeds as soon as all transactions in the CDB are either committed or rolled back. SHUTDOWN [ABORT | IMMEDIATE | NORMAL | TRANSACTIONAL [LOCAL]] Shuts down a currently running Oracle Database instance, optionally closing and dismounting a database. If the current database is a pluggable database, only the pluggable database is closed. The consolidated…
Question
You conned using SQL Plus to the root container of a multitenant container database (CDB) with SYSDBA privilege. The CDB has several pluggable databases (PDBs) open in the read/write mode. There are ongoing transactions in both the CDB and PDBs. What happens alter issuing the SHUTDOWN TRANSACTIONAL statement?
Options
- AThe shutdown proceeds immediately.
- BThe shutdown proceeds as soon as all transactions in the CDB are either committed or rolled back.
- CThe shutdown proceeds as soon as all transactions in both the CDB and PDBs are either committed
- DThe statement results in an error because there are open PDBs.
How the community answered
(48 responses)- A6% (3)
- B75% (36)
- C17% (8)
- D2% (1)
Explanation
*SHUTDOWN [ABORT | IMMEDIATE | NORMAL | TRANSACTIONAL [LOCAL]] Shuts down a currently running Oracle Database instance, optionally closing and dismounting a database. If the current database is a pluggable database, only the pluggable database is closed. The consolidated instance continues to run. Shutdown commands that wait for current calls to complete or users to disconnect such as SHUTDOWN NORMAL and SHUTDOWN TRANSACTIONAL have a time limit that the SHUTDOWN command will wait. If all events blocking the shutdown have not occurred within the time limit, the shutdown command cancels with the following message: ORA-01013: user requested cancel of current operation *If logged into a CDB, shutdown closes the CDB instance. To shutdown a CDB or non CDB, you must be connected to the CDB or non CDB instance that you want to close, and then enter Database closed. Database dismounted. Oracle instance shut down. To shutdown a PDB, you must log into the PDB to issue the SHUTDOWN command. Pluggable Database closed. *Prerequisites for PDB Shutdown When the current container is a pluggable database (PDB), the SHUTDOWN command can only The current user has SYSDBA, SYSOPER, SYSBACKUP, or SYSDG system privilege. The privilege is either commonly granted or locally granted in the PDB. The current user exercises the privilege using AS SYSDBA, AS SYSOPER, AS SYSBACKUP, or AS SYSDG at connect time. To close a PDB, the PDB must be open.
Topics
Community Discussion
No community discussion yet for this question.