美文网首页我爱编程
dbstart和dbshut启动、关闭数据库报错ORACLE_H

dbstart和dbshut启动、关闭数据库报错ORACLE_H

作者: 可爱傻妞是我的爱 | 来源:发表于2017-12-29 10:40 被阅读63次

dbstart启动数据库报错,如下:

[oracle@wen ~]$ dbstart

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

Usage: /u01/app/oracle/product/11.2.0/dbhome_1/bin/dbstart ORACLE_HOME

dbshut关闭数据库报错,如下:

[oracle@wen ~]$ dbshut

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

Usage: /u01/app/oracle/product/11.2.0/dbhome_1/bin/dbstart ORACLE_HOME

解决办法:

[oracle@wen ~]$ vi $ORACLE_HOME/bin/dbstart

修改其中:ORACLE_HOME_LISTNER=$1为ORACLE_HOME_LISTNER=$ORACLE_HOME

重试dbstart启动数据库不报错,但是无反应。

修改/etc/oratab

[oracle@wen ~]$ vi /etc/oratab

其中修改orcl:/u01/app/oracle/product/11.2.0/dbhome_1:N为orcl:/u01/app/oracle/product/11.2.0/dbhome_1:Y

重试成功。

dbshut关闭数据库报错,如上方法。

相关文章

网友评论

    本文标题:dbstart和dbshut启动、关闭数据库报错ORACLE_H

    本文链接:https://www.haomeiwen.com/subject/grhigxtx.html