The contents are of my own testing and deployments. Not guaranteed that these might work in your environment. Please test before usage.
Summary: in this tutorial, you will learn how to shut down the Oracle database and various methods.
Shutdown Stages:
- Shutdown normal or shutdown
- Shut immediate or Shutdown immediate
- shut transactional or Shutdown Transactional
- Shut Abort or Shutdown abort
- Shutdown Normal or Shutdown
- This Command won't allow the new connections
- It waits for all users Logged off
- The databases file are closed properly and the instance is shutdown
SQL> shutdown normal;
Database closed.
Database dismounted.
ORACLE instance shut down.
- Shut immediate or Shutdown immediate
- This Command won't allow the new connections
- It rolled back the uncommitted transactions
- its disconnect all the current user and won't wait for users to log off.
SQL> Shut immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
- Shut Transactional or Shutdown Transactional
- This Command also won't allow the new connections
- it's waiting for the user are allowed to complete which is either commit or terminate before shutdown.
SQL> Shut Transactional;
Database closed.
Database dismounted.
ORACLE instance shut down.
- Shut Abort or Shutdown abort
- All current client SQL statements are immediately terminated
- uncommitted transactions are not rolled back
- All users are disconnected immediately
- it's like a power-off and is very harmful to the database, Don't use this command without senior dba knowledge.
SQL> Shut Abort;
ORACLE instance shut down.
Thanks for your time!
0 Comments