Pages

Thursday, October 26, 2023

SHUTDOWN ABORT, IMMEDIATE, NORMAL, TRANSACTIONAL

SHUTDOWN ABORT;
Fastest.
Uncommitted transactions are not rolled back.
All users currently connected to the database are implicitly disconnected.
The next database startup will require instance recovery.

SHUTDOWN IMMEDIATE;
Does not wait for current calls to complete or users to disconnect from the database.
Further connects are prohibited. 
The database is closed and dismounted. 
The instance is shutdown and no instance recovery is required on the next database startup.

SHUTDOWN NORMAL;
NORMAL is the default option which waits for users to disconnect from the database.
Further connects are prohibited. 
The database is closed and dismounted. 
The instance is shutdown and no instance recovery is required on the next database startup.

SHUTDOWN TRANSACTIONAL;
Performs a planned shutdown of an instance while allowing active transactions to complete first. 
It prevents clients from losing work without requiring all users to log off.
No client can start a new transaction on this instance.
After completion of all transactions, any client still connected to the instance is disconnected.
Now the instance shuts down just as it would if a SHUTDOWN IMMEDIATE
The next startup of the database will not require any instance recovery procedures.
$ lsnrctl start 

You must be connected to a database as SYSDBA, SYSOPER, SYSBACKUP, or SYSDG.


SYSDBA - database management commands
SYSOPER - Limited to database shutdown, startup, open, recover, create spfile.
SYSBACKUP - similar to SYSDBA. with few limitations.
SYSDG - Data Guards Related

No comments:

Post a Comment