红旗高级服务器Linux 4.1安装Oracle9204#startup the listener and instance echo -n "oracle startup: " su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/lsnrctl start" su - $ORACLE_OWNER -c $ORACLE_HOME/bin/dbstart touch /var/lock/subsys/oracle echo "finished" ;; stop) # stop listener, apache and database echo -n "oracle shutdown:" su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/lsnrctl stop" su - $ORACLE_OWNER -c $ORACLE_HOME/bin/dbshut rm -f /var/lock/subsys/oracle echo "finished" ;; reload|restart) $0 stop $0 start ;; *) echo "Usage: ora9i [start|stop|reload|restart]" exit 1 esac 存为ora9i后,然后用chmod a+x ora9,即可在以后以root身份运行/etc/rc.d/init.d/ora9i start |stop 来管理oracle的启动和停止了。如果要将这个脚本加入到 系统中使其可开机运行,那么要运行以下命令:chkconfig --level 3(或者是5) --add ora9i 或者以root用户执行如下命令: 也可自启动oracle9i! 或者可在/etc/rc.d/rc.local中加入如下: 6,关于数据库删除重新安装的问题: 把ORACLE安装目录删除及/etc/ora*.*删除就行了 7,关于在LINUX中运行管理软件 上一篇: 红旗linux(Server2.0)下安装Oracle8.16 下一篇:没有了 更多相关文章
|
推荐文章
精彩文章
|