linux下oracle启动和关闭脚本

1)启动脚本(dbstart.sh)
lsnrctl start
sqlplus /nolog <<EOF
connect / as sysdba
startup;
exit
EOF
$sh dbstart.sh 即可
2)关闭脚本(dbstop.sh)
lsnrctl stop
sqlplus /nolog <<EOF
connect / as sysdba
shutdown immediate;
exit
EOF
$sh dbstop.sh 即可

你可能感兴趣的:(oracle)