Method 1: Use the script that comes with oracle to start and close... 1
1. oracle user modify the/etc/oratab file:... 1
2. oracle users modify the $ ORACLE_HOME/bin/dbstart file:... 1
3. Test and run dbshut and dbstart 1.
3.1. Execute the corresponding script for testing... 2
3.2. modify the permissions of dbstart and dbshut log files:... 2
4. Create a service... 2
5. Check... 5
6. One Note:... 6
6.1 chkconfig: 345 99 10. 6 in the script file
6.2 command Description:... 6
6.3 chkconfig: function description... 6
Method 2: Use the self-built startup and shutdown scripts... 7
1. Create a startup and shutdown script... 7
2. Create a service... 8
Method 1: Use the launch and close scripts provided by oracle
1. oracle users modify the/etc/oratab file:
$ Vi/etc/oratab
Orcl:/oracle/app/product/10.2.0/db_1: N
Changed:
Orcl:/oracle/app/product/10.2.0/db_1: Y
That is, change the last N to Y to allow dbstart to start the database at system startup.
2. oracle users modify the $ ORACLE_HOME/bin/dbstart file:
# Su-oracle
$ Cd $ ORACLE_HOME/bin
$ Vi dbstart
Locate ORACLE_HOME_LISTNER =... and change it
ORACLE_HOME_LISTNER =/u01/app/oracle/product/10.1.0/db_1
Or directly modify it:
ORACLE_HOME_LISTNER = $ ORACLE_HOME