opensuse设置oracle开机启动脚本

opensuse设置oracle开机启动脚本


linux-geum:/etc/init.d # more start_oracle.sh
#this script is used to start the oracle

su - oracle -c "/opt/oracle/product/10g/bin/dbstart"

su - oracle -c "/opt/oracle/product/10g/bin/lsnrctl start"


ln -s /etc/init.d/start_oracle.sh  /etc/rc.d/rc2.d/S16start_oracle
ln -s /etc/init.d/start_oracle.sh  /etc/rc.d/rc3.d/S16start_oracle
ln -s /etc/init.d/start_oracle.sh  /etc/rc.d/rc5.d/S16start_oracle

linux-geum:/etc/init.d # more stop_oracle.sh
#this script is used to stop the oracle

su - oracle -c "/opt/oracle/product/10g/bin/lsnrctl stop"

su - oracle -c "/opt/oracle/product/10g/bin/bin/dbshut"


ln -s /etc/init.d/stop_oracle.sh  /etc/rc.d/rc2.d/S16stop_oracle
ln -s /etc/init.d/stop_oracle.sh  /etc/rc.d/rc3.d/S16stop_oracle
ln -s /etc/init.d/stop_oracle.sh  /etc/rc.d/rc5.d/S16stop_oracle

你可能感兴趣的:(opensuse设置oracle开机启动脚本)