1.启动数据库
---------------------------------------------
#启动listener
lsnrctl start
#通过进入sqlplus来启动数据库
sqlplus /nolog <<EOF
connect / as sysdba
startup;
exit
EOF
---------------------------------------------
2.关闭oracle数据库
---------------------------------------------
lsnrctl stop
sqlplus /nolog <<EOF
connect / as sysdba
shutdown immediate;
exit
EOF
---------------------------------------------