oracle 启动

1、在/etc/rc.d/init.d/目录下,建立一个startoracle脚本文件。 2、在/etc/rc.d/init.d/目录下,输入vi startoracle即可编辑文件。 #!/bin/sh #chkconfig:345 99 99 #description:启动、停止oracle数据库和监听控制程序 export ORACLE_BASE=/opt/oracle export ORACLE_HOME=/opt/oracle/product/10.2.0 export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/Apache/Apache/bin:$PATH export ORACLE_OWNER=oracle export ORACLE_SID=swust export ORACLE_TERM=vt100 export LD_ASSUME_KERNEL=2.4.1 export THREADS_FLAG=native LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib export LD_LIBRARY_PATH export PATH=$PATH:$ORACLE_HOME/bin export NLS_LANG=AMERICAN_AMERICA.UTF8=oracle export ORACLE_SID=swust export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK export DISPLAY=:0 oracle_user=oracle #start swust echo "begin to start swust oracle" su - "$oracle_user"

你可能感兴趣的:(apache,oracle,脚本)