1、切换到oracle用户su - oracle2、startdb.sh命令脚本#!/bin/shlsnrctl startsqlplus "/as sysdba" << EOFstartupEOF3、netstat -ntlp或ps -ef |grep ora检查4、shutdb.sh命令脚本#!/bin/bashlsnrctl stopsqlplus "/as sysdba" << EOFshutdown immediateEOF