Welcome to the Oracle community forum and interact with 2 million technical staff to enter the script for loading oracle into a linux Standard System Service [root @ test11root] # moreetcinit. doracle #! Binsh # chkconfig: 23458005 # description: Oracle8ServerORA_HOMEoracleproduct9.2.0ORA_OWNER
Welcome to the Oracle community forum and interact with 2 million technical staff> enter the script for loading oracle into a linux Standard System Service [root @ test11 root] # more/etc/init. d/oracle #! /Bin/sh # chkconfig: 2345 80 05 # description: Oracle 8 Server ORA_HOME =/oracle/product/9.2.0 ORA_OWNER =
Welcome to the Oracle community forum and interact with 2 million technical staff> enter
Load oracle as a linux Standard System Service script
[Root @ test11 root] # more/etc/init. d/oracle
#! /Bin/sh
# Chkconfig: 2345 80 05
# Description: Oracle 8 Server
ORA_HOME =/oracle/product/9.2.0
ORA_OWNER = oracle
Case "" in
"Start ")
Su-$ ORA_OWNER-c "$ ORA_HOME/bin/lsnrctl start"
Su-$ ORA_OWNER-c "$ ORA_HOME/bin/start. sh"
;;
"Stop ")
Su-$ ORA_OWNER-c "$ ORA_HOME/bin/lsnrctl stop"
Su-$ ORA_OWNER-c "$ ORA_HOME/bin/shutdown. sh"
;;
Esac
[Root @ test11 root] # more/oracle/product/9.2.0/bin/start. sh
Sqlplus/nolog <EOF
Connect/as sysdba
Startup
Exit
Exit
Echo "oracle have started"
[Root @ test11 root] # more/oracle/product/9.2.0/bin/shutdown. sh
Sqlplus/nolog <EOF
Connect/as sysdba
Shutdown immediate
Exit
Exit
Echo "oracle have shutdown"
# Chkconfig -- add oracle