Oracle Database Startup and Shutdown Procedure
Oracle Database Startup and Shutdown Procedure
Procedure
For a DBA, starting up and shutting down of oracle database is a routine and
basic operation. Sometimes Linux administrator or programmer may end-up
doing some basic DBA operations on development database. So, it is important
for non-DBAs to understand some basic database administration activities. In
this article, let us review how to start and stop an oracle database.
$ su - oracle
ORACLE_SID=DEVDB
ORACLE_HOME=/u01/app/oracle/product/10.2.0
You can connect using either “/ as sysdba” or an oracle account that has DBA
privilege.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
SQL>
Oracle will look for the parameter file in the following order under
$ORACLE_HOME/dbs. If any one of them exists, it will use that particular
parameter file.
1. spfile$ORACLE_SID.ora
2. spfile.ora
3. init$ORACLE_SID.ora
Type “startup” at the SQL command prompt to startup the database as shown
below.
SQL> startup
Database mounted.
Database opened.
SQL>
If you want to startup Oracle with PFILE, pass it as a parameter as shown
below.
1. Normal Shutdown
2. Shutdown Immediate
3. Shutdown Abort
1. Normal Shutdown
During normal shutdown, before the oracle database is shut down, oracle will
wait for all active users to disconnect their sessions. As the parameter name
(normal) suggest, use this option to shutdown the database under normal
conditions.
SQL> shutdown
Database closed.
Database dismounted.
SQL>
2. Shutdown Immediate
During immediate shutdown, before the oracle database is shut down, oracle
will rollback active transaction and disconnect all active users. Use this option
when there is a problem with your database and you don’t have enough time to
request users to log-off.
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
3. Shutdown Abort
During shutdown abort, before the oracle database is shutdown, all user
sessions will be terminated immediately. Uncomitted transactions will not be
rolled back. Use this option only during emergency situations when the
“shutdown” and “shutdown immediate” doesn’t work.
SQL>