Special welcome gift. Get 50% off your first courses with code “AS50”. Find out more!

HomeInterviewWhat are the methods for shutting down an Oracle Database?
course 4

What are the methods for shutting down an Oracle Database?

Oracle has several modes for shutting down the database:

  1. Normal Mode:

In normal mode, the database is shut down by default. It can be used when no other clause is provided. The database waits for all currently linked users to detach from it before shutting it down, and no new connections are permitted once the statement is released. The command line is as follows:SHUTDOWN NORMAL

  1. Transactional Mode:

Transactional mode helps shut down the database while allowing it to complete the active transactions. In this process, no new connections are allowed, and this mode waits for all transactions to finish before shutting down the database. Use this command line to shut down the database:SHUTDOWN TRANSACTIONAL

  1. Immediate Mode:

When you know a power outage is at the door, you can use immediate mode. All sessions will be disconnected, all running transactions will be rolled back, the database will not wait for existing database users to disconnect before proceeding, and the database will be shut down. No instance recovery is needed during this next startup.

Issue the command SHUTDOWN with an IMMEDIATE clause to shut down a database immediately.SHUTDOWN IMMEDIATE

  1. Abort Mode:

When you want to shut down the database immediately within seconds without any active transactions, you can use the abort method. Hereafter, the statement has been released, and no new connections or transactions are permitted to be initiated. The Oracle Database automatically terminates all current client SQL statements and does not wait for existing database users to disconnect. Transactions that have not been committed will not be rolled back. All linked users are automatically disconnected from the database.

Use the command SHUTDOWN with the ABORT clause:SHUTDOWN ABORT

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

Categories

ads sidebar 1

You May Also Like

Materialized views are items that contain condensed sets of data from base tables that have been summarized, clustered, or aggregated. They...
Every database in Oracle has a tablespace called SYSTEM, which is generated automatically when the database is created. It also...
A query is added to any view in order to define specific rows and columns of the table. The view...