lilingjie2015 发表于 2018-9-22 10:39:12

linux下的oracle启动脚本

stop () {  #stop oracle instance
  if [ -x /u01/app/oracle/product/10.2.0/db_1/bin/sqlplus ]; then
  su - oracle -c 'sqlplus'/home/oracle/isqlplusctl_stop.log 2>&1 &
  fi
  #stop oracle enterprise manage
  if [ -x /u01/app/oracle/product/10.2.0/db_1/bin/emctl ]; then
  su - oracle -c 'emctl stop dbconsole' >/home/oracle/oem_stop.log 2>&1&
  fi
  #stop LISTENER
  if [ -x /u01/app/oracle/product/10.2.0/db_1/bin/lsnrctl ]; then
  su - oracle -c 'lsnrctl start' >/home/oracle/lsnrctl_stop.log 2>&1&
  fi
  }

页: [1]
查看完整版本: linux下的oracle启动脚本