Description of Oracle Auto-start, oratab, and dbstart scripts in Linux
Description of Oracle Auto-start, oratab, and dbstart scripts in Linux
1./etc/oratab description
Use cat to view the file:
Here is a file in my testing environment. In this comment, I will explain this file clearly. /Etc/oratab is created by the root. sh script. This file is also updated when you use DBCA to create an instance.
When $ ORACLE_SID: $ ORACLE_HOME: If it is set to Y, the instance can be started by itself. If it is set to N, the instance cannot be started by itself. The configuration in this file only acts as a switch. It does not start or close the switch. The specific operations are implemented by the $ ORACLE_HOME/bin/dbstart and dbshut scripts. The two scripts will check the configuration in the/etc/oratab file during execution, and the execution can continue only when the value is Y.
The steps for configuring automatic database startup and shutdown are as follows:
(1) Configure/etc/oratab
(2) Modify $ ORACLE_HOME/bin/dbstart and dbshut and add them to the/etc/rc (. local) file.
Here we use the dbstart and dbshut scripts that come with oracle. If you use your own scripts to start or close the database, you do not need to care about the settings of this file.