写个脚本来启动数据库(二)

2014-11-24 15:12:08 · 作者: · 浏览: 1
cho "oracle10g shutdowned"
;;
reload|restart)
$0 stop
$0 start
;;
'status')
status
;;
*)
echo "Usage: ora10g [start|stop|reload|restart]"
exit 1
esac
exit 0
赋给执行权限chmod a+x oracle10g
我们可以通过这个脚本来查看oracle的状态,启动,关闭或者重启数据库,方便许多。