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 即可
时间: 2024-12-19 00:46:51