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

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

时间:2015-01-31 00:11:34      阅读:469      评论:0      收藏:0      [点我收藏+]

标签:

若Oracle出现“监听程序当前无法识别连接描述符中请求的服务”这个错误可以按照以下方法解决:

可以通过这个路径找到一个文本文件: oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora 还一个在同路径下的tnsnames.ora文件,这两个文本中的一些信息要是这样的: listener.ora # listener.ora Network Configuration File: F:\oracle\product\10.2.0\db_1\network\admin\listener.ora # Generated by Oracle configuration tools.
SID_LIST_LISTENER = (SID_LIST =     (SID_DESC =       (SID_NAME = PLSExtProc)       (ORACLE_HOME = F:\oracle\product\10.2.0\db_1)       (PROGRAM = extproc)     )      (SID_DESC =       (GLOBAL_DBNAME = orcl)       (ORACLE_HOME = F:\oracle\product\10.2.0\db_1)       (SID_NAME = orcl)     )
)
LISTENER = (DESCRIPTION_LIST =     (DESCRIPTION =       (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))     ) )
出现“监听程序当前无法识别连接描述符中请求的服务”一般是因为缺少了上面中间位置的

(SID_DESC =       (GLOBAL_DBNAME = orcl)       (ORACLE_HOME = F:\oracle\product\10.2.0\db_1)       (SID_NAME = orcl)     ) 只要把它加在上面就OK了!!!!!!!!!!!!!
tnsnames.ora # tnsnames.ora Network Configuration File: F:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora # Generated by Oracle configuration tools.
ORCL = (DESCRIPTION =     (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))     (CONNECT_DATA =       (SERVER = DEDICATED)       (SERVICE_NAME = orcl)     ) )
EXTPROC_CONNECTION_DATA = (DESCRIPTION =     (ADDRESS_LIST =       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))     )     (CONNECT_DATA =       (SID = PLSExtProc)       (PRESENTATION = RO)     ) )

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

标签:

原文地址:http://www.cnblogs.com/outlooking/p/4263385.html

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