码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2014-12-12 14:41:41      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:des   style   io   color   os   sp   on   bs   cti   

服务器端安装完后,

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 =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl177)
)
)

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

客户端:tnsnames.ora 下新增

Orcl_177 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.30.70.177)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl177)
)
)

改完后 PL/SQL Develop 可以连上

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

标签:des   style   io   color   os   sp   on   bs   cti   

原文地址:http://www.cnblogs.com/andycai/p/4159479.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!