1. Use the root user to modify the/etc/oratab file:
$ Gedit/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.
2. Use the Oracle user to modify the $ Oracle_HOME/bin/dbstart file:
# Su-Oracle
$ Cd $ Oracle_HOME/bin
$ Gedit dbstart
Locate Oracle_HOME_LISTNER =... and change it
Oracle_HOME_LISTNER =/u01/app/Oracle/product/10.2.0/db_1
Or directly modify it:
Oracle_HOME_LISTNER = $ Oracle_HOME
Note: It is a modification, not an addition. However, you can use the gedit search function to search for it:
Oracle_HOME_LISTNER, modify and save the modification.
Iii. Test and run dbshut. Check whether dbstart can start the Oracle service and listener service:
1. modify the permissions of dbstart and dbshut log files:
$ Su-root
# Cd $ Oracle_HOME
# Chown Oracle: oinstall startup. log
# Chown Oracle: oinstall shutdown. log
2. Execute the corresponding script for testing
# Su-Oracle
$ Cd $ Oracle_HOME/bin
$./Dbstart (./dbshut)
$ Ps-efw | grep ora _
$ Lsnrctl status
$ Ps-efw | grep LISTEN | grep-v grep