首页 > 代码库 > ORA-12514 TNS 监听程序当前无法识别连接描述符中请求服务 的解决方法

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

服务器端安装完后,

D:\app\Oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN 下

1. listener.ora 下红色部分是新增 . orcl177是实例名称. Host :172.30.70.177 这里是服务器IP

# listener.ora Network Configuration File: D:\app\Oracle\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 = D:\app\Oracle\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:\app\Oracle\product\11.2.0\dbhome_1\bin\oraclr11.dll")
)
(SID_DESC =
(GLOBAL_DBNAME = orcl177)
(ORACLE_HOME = D:\app\Oracle\product\11.2.0\dbhome_1)
(SID_NAME = orcl177)
)
)

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

ADR_BASE_LISTENER = D:\app\Oracle

2.tnsnames.ora 下  HOST 改为IP 172.30.70.177

# tnsnames.ora Network Configuration File: D:\app\Oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

ORCL177 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.30.70.177)(PORT = 1521))
(CONNECT_DATA =http://www.mamicode.com/
(SERVER = DEDICATED)
(SERVICE_NAME = orcl177)
)
)

ORACLR_CONNECTION_DATA =http://www.mamicode.com/
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =http://www.mamicode.com/
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)

客户端:tnsnames.ora 下新增

Orcl_177 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.30.70.177)(PORT = 1521))
)
(CONNECT_DATA =http://www.mamicode.com/
(SERVICE_NAME = orcl177)
)
)

改完后 PL/SQL Develop 可以连上

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