1)启动脚本(dbstart.sh)
lsnrctl startsqlplus /nolog <<EOFconnect / as sysdbastartup;exitEOF
$sh dbstart.sh 即可
----------
2)关闭脚本(dbstop.sh) lsnrctl stopsqlplus /nolog <<EOFconnect / as sysdbashutdown immediate;exitEOF
$sh dbstop.sh 即可