2 Stopping and Starting Oracle Software
This chapter describes how to identify Oracle Database processes, and provides basic information about how to stop and restart them. It also describes how to set up automatic startup and shutdown of the Oracle Database. It contains the following sections:
Note:
When using Oracle Restart, you can use Service Control Utility (SRVCTL), a command-line interface, to manage Oracle processes (database instance, listener, Oracle ASM instance). With SRVCTL, you can manage the Oracle Restart configuration, see the status of processes managed by Oracle Restart, and start or stop processes such as Oracle Database. SRVCTL is enhanced to support Oracle Clusterware, and single instance Oracle databases with Oracle Restart.
See Also:
Oracle Database Administrator’s Guide and Oracle Real Application Clusters Administration and Deployment Guide for more information about SRVCTL commands.
2.1 Stopping and Starting Oracle Processes
This section describes how to stop and start Oracle processes. It contains the following topics:
2.1.1 Stopping and Starting Oracle Database and Oracle Automatic Storage Management Instances
This section describes how to stop and start Oracle Database and Oracle Automatic Storage Management instances and contains the following topics:
2.1.1.1 Stopping an Oracle Database or Oracle Automatic Storage Management Instance
Caution:
Do not stop an Oracle Automatic Storage Management instance until you have stopped all Oracle Database instances that use Oracle Automatic Storage Management instance to manage their storage.
To stop an Oracle Database or Oracle Automatic Storage Management instance:
2.1.1.2 Restarting an Oracle Database or Oracle Automatic Storage Management Instance
Caution:
If the database instance uses Oracle Automatic Storage Management for storage management, then you must start the Oracle Automatic Storage Management instance before you start the database instance.
To restart an Oracle Database or Oracle Automatic Storage Management instance:
2.1.2 Stopping and Starting Oracle Restart
To stop or start Oracle Restart, run the following command:
-
Start: This option is used to start Oracle Restart
Syntax and Options:
crsctl start has
-
Stop: This option is used to stop Oracle Restart
Syntax and Options:
crsctl stop has
See Also:
Oracle Database Administrator's Guide for more information about the
srvctl
commands
2.2 About Automating Database Shutdown and Startup
Oracle recommends that you configure the system to automatically start Oracle Database when the system starts, and to automatically shut it down when the system shuts down. Automating database startup and shutdown guards against incorrect database shutdown.
To automate database startup and shutdown, use the dbstart
and dbshut
scripts, which are located in the $ORACLE_HOME/bin
directory. The scripts refer to the same entries in the oratab
file, which are applied on the same set of databases. You cannot, for example, have the dbstart
script automatically start sid1
, sid2
, and sid3
, and have the dbshut
script shut down only sid1
. However, you can specify that the dbshut
script shuts down a set of databases while the dbstart
script is not used at all. To do this, include a dbshut
entry in the system shutdown file, but do not include the dbstart
entry in the system startup files.
See Also:
The init
command in the operating system documentation for more information about system startup and shutdown procedures