1:找到oracle监听的配置文件:
D:\oracle\product\10.2.0\db_2\NETWORK\ADMIN\listener.ora
2:添加配置(红色部分)
# listener.ora Network Configuration File: d:\oracle\product\10.2.0\db_2\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = d:\oracle\product\10.2.0\db_2)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_2)
(SID_NAME = ORCL)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = hbzy)(PORT = 1521))
)
)
这个问题我只知道修改方法但却不太明白问题的发生原因,网上也有大神给出了部分讲解但最终都理解不是太透彻存在自己的疑问所以在这里我就不写了。有兴趣的朋友可以深究下顺便告诉我下。呵呵...
本文出自 “小浩” 博客,请务必保留此出处http://zhangchi.blog.51cto.com/5214280/1348900