我是在使用Navicat for Oracle 连接本地Oracle服务的时候,报 ora-12514 tns 监听程序当前无法识别连接描述符中请求的服务 异常
首先我是查看配置
D:ysstechsoftoracleoracle11product11.2.0dbhome_1NETWORKADMIN listener.ora 这个是我服务的安装目录
# listener.ora Network Configuration File: D:ysstechsoftoracleoracle11product11.2.0dbhome_1NETWORKADMINlistener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = D:ysstechsoftoracleoracle11product11.2.0dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:ysstechsoftoracleoracle11product11.2.0dbhome_1inoraclr11.dll")
)--新添加的
(SID_DESC =
(SID_NAME = orcl)
(ORACLE_HOME = D:ysstechsoftoracleoracle11product11.2.0dbhome_1)
(SID_NAME = ORCL)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = pc-PC)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
ADR_BASE_LISTENER = D:ysstechsoftoracleoracle11
发现缺少了对相关服务名的监听,所以添加了对ORCL的监听
然后重启Oracle服务,连接正常