Oracle Database Startup Modes
- NOMOUNT
- MOUNT
- OPEN
- RESTRICT
- FORCE
The first two( NOMOUNT and MOUNT) is known as maintenance mode. OPEN is general startup mode. Only DBAs can startup the instance in RESTRICT mode and access the database, other users cannot access the database during this mode.
On the other hand, FORCE means to restart the instance (SHUTDOWN ABORT + STARTUP OPEN).
Suppose we have an instance where the initialization parameter file is OK, but the control file is lost(corrupt). Then, take the database to NOMOUNT mode.
1 |
SQL>STARTUP NOMOUNT; |
Solution: After the database is taken to the NOMOUNT mode, then restore the control file from the backup. (TECHNIQUE WILL BE EXPLAINED LATER).
1 |
SQL>STARTUP OPEN; |
This command will still generate the error: because the STARTUP is still running.
Next thing that might come in mind is to take the database to OPEN mode, by the following command.
1 |
SQL>ALTER DATABASE OPEN; |
This command will not work either, we cannot jump to two modes (see the above step-wise modes). The error message will hint that the database has not been mounted. So finally, use the combination of the commands:
1 2 |
SQL>ALTER DATABASE MOUNT; SQL>ALTER DATABASE OPEN: |
If DBAs desire to open the instance for the DBAs only (while upgrade and maintenance), then the following command must be issued instead of OPEN:
1 |
SQL>STARTUP RESTRICT; |
This will not allow the normal users to access the database, for example HR cannot login into the system during this mode.
Oracle Database Shutdown Modes
- NORMAL
- TRANSACTIONAL
- IMMEDIATE
- ABORT
The NORMAL shutdown mode waits for all the user who has already been active, or ideal, must end their session, (might keep waiting for long period, waiting session is high).
The TRANSACTIONAL shutdown mode indicates forced logout for ideal session and SHUTDOWN is processed as soon as the running transaction is committed.
The IMMEDIATE shutdown mode is generally preferred, it is proper way for shutting down the database.
The ABORT shutdown mode aborts the running transaction, but need ROLLBACK for next startup. Therefore, sometimes the database might shutdown fast but will take long to startup. This is only preferred for mission critical situation.
Leave a Reply
You must be logged in to post a comment.