linux下的oracle启动脚本
stop () { #stop oracle instanceif [ -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]