【正文】
p script for the Oracle Listener and Instances It relies on the information on /etc/oratabexport ORACLE_OWNR=oracleexport ORACLE_HOME=/data/app/oracle/product/echo Oracle Script if [ ! f $ORACLE_HOME/bin/dbstart o ! d $ORACLE_HOME ]then echo Oracle startup: cannot start exit 1ficase $1 instart) Oracle listener and instance startup echo n Starting Oracle: su $ORACLE_OWNR c $ORACLE_HOME/bin/lsnrctl start su $ORACLE_OWNR c $ORACLE_HOME/bin/dbstart $ORACLE_HOME su $ORACLE_OWNR c $ORACLE_HOME/bin/emctl start dbconsole touch /var/lock/oracle echo OK 。stop) Oracle listener and instance shutdown echo n Shutdown Oracle: su $ORACLE_OWNR c $ORACLE_HOME/bin/emctl stop dbconsole su $ORACLE_OWNR c $ORACLE_HOME/bin/lsnrctl stop su $ORACLE_OWNR c $ORACLE_HOME/bin/dbshut $ORACLE_HOME rm f /var/lock/oracle echo OK 。*) echo Usage: `basename $0` start|stop|restart|reload exit 1esacexit 03.)增加啟動項[rootcentos /] chmod +x /etc/[rootcentos /] chkconfig add oracle[rootcentos /] chkconfig list|grep oracleoracle 0:關閉 1:關閉 2:關閉 3:啟用 4:啟用 5:啟用 6:關閉[rootcentos] cd /usr/bin[rootcentos bin] pwd/usr/bin[rootcentos bin] ln s /etc/ 31 /