当前位置: 移动技术网 > IT编程>数据库>Oracle > ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener

ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener

2018年04月03日  | 移动技术网IT编程  | 我要评论

创业学习网,纪念币,非洲的风土人情

 

执行$ORACLE_HOME/bin/dbstart 启动数据库提示如下:

[oracle@prim bin]$ ./dbstart
ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener
Usage: ./dbstart ORACLE_HOME
Processing Database instance "orcl": log file /u01/app/oracle/product/11.2.0/db_1/startup.log

 

很多人的做法是去修改dbstart或者dbshut 这2个文件,但事实上这个脚本是需要你在脚本后面添加一个参数,就是$ORACLE_HOME的路径,所以根本不需要修改它原来的脚本,只需要在脚本后面接上$ORACLE_HOME的路径就行了

 

eg: $ORACLE_HOME/bin/dbstart $ORACLE_HOME

 

设置随开机启动:

vi /etc/oratab

orcl:/u01/app/oracle/product/11.2.0/db_1:Y

 

vi /etc/rc.local

su - oracle -c ' $ORACLE_HOME/bin/dbstart $ORACLE_HOME'

 

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网