问题:自己在linux机器上安装oracle11g之后,一切正常运行。某天机器重启之后报TNS-01155不能启动数据库
现象:TNS-01155
解决方法:
找到监听文件/home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora文件,添加如下内容
SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = orcl) (ORACLE_HOME = /home/oracle/app/oracle/product/11.2.0/dbhome_1) (PROGRAM = extproc) ) (SID_DESC = (GLOBAL_DBNAME = orcl) (ORACLE_HOME = /home/oracle/app/oracle/product/11.2.0/dbhome_1) (SID_NAME = orcl) ) )
注意SID_NAME,GLOBAL_DBNAME是你安装的时候设置的我这里都是orcl,还有ORACLE_HOME是你的oracle安装的环境变量