oracle 11g 开机服务启动
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了oracle 11g 开机服务启动,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1822字,纯文字阅读大概需要3分钟。
内容图文
![oracle 11g 开机服务启动](/upload/InfoBanner/zyjiaocheng/457/3194ca43598f4592936d0c85113cd25e.jpg)
二、修改/u01/app/oracle/product/11gr2/bin目录下dbstart和dbshut
[oracle@localhost bin]$ vim dbstart
将注释去掉
ORATAB=/etc/oratab
将ORACLE_HOME_LISTNER=$1改为oracle的安装目录
ORACLE_HOME_LISTNER=/u01/app/oracle/product/11gr2
将“echo "Processing $INST \"$ORACLE_SID\": log file $ORACLE_HOME/startup.log"”注释
[oracle@localhost bin]$ vim dbstart
将注释去掉
ORATAB=/etc/oratab
将ORACLE_HOME_LISTNER=$1改为oracle的安装目录
ORACLE_HOME_LISTNER=/u01/app/oracle/product/11gr2
在“LOG=$ORACLE_HOME/shutdown.log”下添加“chmod 766 $LOG”
LOG=$ORACLE_HOME/shutdown.log
chomod 766 $LOG
三、添加oracle到系统服务
vim /etc/rc.d/init.d/oracle
#!/bin/sh # chkconfig: 345 61 61 # description: Oracle 11g AutoRun Services # /etc/init.d/oracle # # Run-level Startup script for the Oracle Instance, Listener, and # Web Interface export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=/u01/app/oracle/product/11gr2 export ORACLE_SID=ORCL export PATH=$PATH:$ORACLE_HOME/bin ORA_OWNR="oracle" # if the executables do not exist -- display error if [ ! -f $ORACLE_HOME/bin/dbstart -o ! -d $ORACLE_HOME ] then echo "Oracle startup: cannot start" exit 1 fi # depending on parameter -- startup, shutdown, restart # of the instance and listener or usage display case "$1" in start) # Oracle listener and instance startup su $ORA_OWNR -lc $ORACLE_HOME/bin/dbstart echo "Oracle start OK..." sleep 1 ;; stop) # Oracle listener and instance shutdown su $ORA_OWNR -lc $ORACLE_HOME/bin/dbshut echo "Oracle stop OK..." sleep 1 ;; reload|restart) $0 stop $0 start ;; *) echo $"Usage: `basename $0` {start|stop|reload|reload}" exit 1 esac exit 0
[root@localhost ~]# chkconfig --add oracle
[root@localhost ~]# chkconfig oracle on
oracle 11g 开机服务启动
标签:
本文系统来源:http://www.cnblogs.com/houzhiqing/p/4769993.html
内容总结
以上是互联网集市为您收集整理的oracle 11g 开机服务启动全部内容,希望文章能够帮你解决oracle 11g 开机服务启动所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。