Create an Oracle10g file in/etc/init. d/and edit the following content in the file
#! /Bin/shcase "$1" instart) # Start tsnlisnter echo "Start tsnlisnter" Su-Oracle-c "LSNRCTL start" # Start database echo "Start Oracle database instance" Su-Oracle-c "Echo \" Conn/As sysdba startup exit \ "| sqlplus/nolog" # Start Enterprise Manager echo "Start emterprise manager" Su-Oracle-c "emctl start dbconsole" # Start ISQLPLUS echo "Start isqlplus" Su-Oracle -c "isqlplusctl start ";; stop) # shutdown database echo "shutdown Oracle database instance" Su-Oracle-c "Echo \" Conn/As sysdba shutdown immediate exit \ "| sqlplus/nolog" # Stop tsnlisnter echo "Stop tsnlisnter "Su-Oracle-c" LSNRCTL stop "# Stop Enterprise Manager echo" Stop emterprise manager "Su-Oracle-c" emctl stop dbconsole "# Stop ISQLPLUS echo" Stop isqlplus "Su- oracle-c "isqlplusctl stop ";; *) echo "Usage: $0 {START | stop}" Exit 1; esacexit 0
Add the following content to the/etc/rc. d/rc. Local file:
/Etc/init. d/Oracle10g start