断电造成ORA-12154解决办法

1、配置$ORACLE_HOME/network/admin/listener.ora文件:

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /data01/oracle/product/11.1.0.6.0)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /data01/oracle/product/11.1.0.6.0)
(SID_NAME = orcl)
)
)

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = glxy_211)(PORT = 1521))
    )
  )
2、启动数据库监听:

$ lsnrctl start

$ dbstart $ORACLE_HOME

你可能感兴趣的:(oracle)