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

 

执行$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’

 

(0)
上一篇 2022年3月22日
下一篇 2022年3月22日

相关推荐