ORA 12514错误:TNS监听器错误(ORA 12514 error:TNS listener

2019-07-31 19:33发布

确定一切正常,直到昨日现在我突然收到此错误
ORA-12514:TNS:监听器目前不知道在连接描述符请求的服务
什么事都没有被修改

XE =
  (DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = jainam-2b1c493d)(PORT = 1521))
(CONNECT_DATA =
  (SERVER = DEDICATED)
  (SERVICE_NAME = XE)
)
)

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
     (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    )
    (CONNECT_DATA =
        (SID = PLSExtProc)
      (PRESENTATION = RO)
    )
  )

  ORACLR_CONNECTION_DATA = 
      (DESCRIPTION = 
     (ADDRESS_LIST = 
     (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) 
    ) 
     (CONNECT_DATA = 
   (SID = CLRExtProc) 
   (PRESENTATION = RO) 
 ) 
) 


我完全卡住,不知道该怎么做。 我试图帮助从这里
http://dba-oracle.com/t_ora_12514_tns_listener_does_not_currently_know_service_requested.htm但没有用。 谢谢


编辑:
下面就来输出lsnrctl service

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
  Instance "CLRExtProc", status UNKNOWN, has 3 handler(s) for this service...
    Handler(s):
      "DEDICATED" established:0 refused:0
         LOCAL SERVER
      "ORACLE SERVER" established:0 refused:0 current:0 max:25 state:ready
        CLRExtProc
     (ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\NTN_6B4_641B624E_B22.ORA))
  "ORACLE SERVER" established:0 refused:0 current:0 max:25 state:ready
     CLRExtProc
     (ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\NTN_6B4_641B624E_282.ORA))
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
  "DEDICATED" established:0 refused:0
     LOCAL SERVER
Service "XEXDB" has 1 instance(s).
 Instance "xe", status READY, has 1 handler(s) for this service...
 Handler(s):
  "D000" established:0 refused:0 current:0 max:1022 state:ready
     DISPATCHER <machine: JAINAM-2B1C493D, pid: 3708>
     (ADDRESS=(PROTOCOL=tcp)(HOST=jainam-2b1c493d)(PORT=2763))
Service "xe" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Handler(s):
  "DEDICATED" established:0 refused:0 state:ready
     LOCAL SERVER
The command completed successfully

Answer 1:

一个你那种错误的原因是因为听者之前做过数据库实例启动。 监听器必须首先启动。

  1. 检查数据库实例启动并运行
  2. 检查的输出lsnrctl service命令,看服务注册的。
  3. 检查您是否有SERVICE_NAME连接到实例时指定正确。
  4. 如果碰巧听众之前做过数据库实例盯着,有时候你只需要等待一点点,或者你可以执行alter system register ,以注册该实例。


Answer 2:

对我来说,它有助于以下SID_DESC添加到C:\ oraclexe \程序\ ORACLE \产品\ 11.2.0 \服务器\网络\ ADMIN \ listener.ora中

SID_LIST_LISTENER =
  (SID_LIST =
    ...
    (SID_DESC =
      (SID_NAME = XE)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
    )
  )

重新启动监听器和数据库之后,再次访问工作。

由于http://grow-n-shine.blogspot.de/2011/11/oracle-11g-xe-issue-ora-12514.html



Answer 3:

打开SQL Plus并连接到系统的用户:

system/p@ssword

并运行两个命令:

SQL> alter system set LOCAL_LISTENER='(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))' scope=both;
SQL> alter system register;


文章来源: ORA 12514 error:TNS listener error
标签: oracle11g tns