ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务

前端之家收集整理的这篇文章主要介绍了ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Oracle数据库连接失败


该问题的处理

找到Oracle的安装路径,每个人安装路径不同;

打开安装路径\app\product\11.2.0\dbhome_1\NETWORK\ADMIN

用记事本打开文件listener.ora

文件如下:

# listener.ora Network Configuration File: E:\win10\360downno\app\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = E:\win10\360downno\app\product\11.2.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:E:\win10\360downno\app\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    )
  )

ADR_BASE_LISTENER = E:\win10\360downno\app
修改文件如下:
# listener.ora Network Configuration File: E:\win10\360downno\app\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (GLOBAL_DBNAME = ORCL)
      (ORACLE_HOME = E:\win10\360downno\app\product\11.2.0\dbhome_1)
      (SID_NAME = ORCL)
    )
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = E:\win10\360downno\app\product\11.2.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:E:\win10\360downno\app\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    )
  )

ADR_BASE_LISTENER = E:\win10\360downno\app
修改后就OK了

猜你在找的Oracle相关文章