当前位置: 首页 > 知识库问答 >
问题:

ORA-12514 TNS:侦听器当前不知道连接描述符错误中请求的服务

景胜涝
2023-03-14

ORA-12514 TNS:侦听器当前不知道连接描述符中请求的服务

我检查了listener.ora和tnsnames.ora,没有找到错误。

Listener.ora

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
      (PROGRAM = extproc)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      (ADDRESS = (PROTOCOL = TCP)(HOST = THIS_IS_MY_HOST_NAME_OR_IP)(PORT = 1521))
    )
  )

DEFAULT_SERVICE_LISTENER = (XE)
MAIN_DATABASE =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = THIS_IS_MY_HOST_NAME_OR_IP)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = XE)
    )
  )

请帮忙。

共有1个答案

孔安阳
2023-03-14

嗯。我找到了这个解决方案,但我想这不是最好的解决方案。OracleXe已经安装。当我更改虚拟操作系统的名称时(例如,计算机名为User-xxx,我将其改为User-zzz),我得到了以下错误:

ORA-12514 TNS:侦听器当前没有...

我看到listener.ora和tnsnames.ora和host是:host=user-xxx

 类似资料: