ORA-12514错误 TNS监听进程不能解析在连接描述符中给出的服务名

1。打开<oracleHome>network/admin/listener.ora

 

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
      (PROGRAM = extproc)
    )
  (SID_DESC =
       (GLOBAL_DBNAME = orcl)
       (ORACLE_HOME = C:\oracle\product\10.2.0\db_1) 
       (SID_NAME = orcl)
      )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = win2003-std-vm)(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )
  )

红色为添加的内容 ,修改后重启oracle监听服务,用SQL Developer连接提示:ora -01034 oracle不可用;

用sqlplus连接,sys/@orcl as sysdba可以连接上数据库,

证实数据库可以启动,但无法使用:提示数据库错误:ora -01034 oracle不可用

startup ,启动数据库, 后数据库就能使用了

posted @ 2011-03-12 14:01  居后不争  阅读(2533)  评论(0编辑  收藏  举报