欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

oracle适配器连接不上的解决办法

程序员文章站 2022-07-01 19:17:58
racle 的developer连接不上报错:listener does not currently know of sid given in connect descri...

racle 的developer连接不上报错:listener does not currently know of sid given in connect descriptor

解决办法:

在 d:\app\administrator\product\..\dbhome_\network\admin中找到listener.ora文件,修改后的文件在“下面”中,复制并覆盖就ok了。

# listener.ora network configuration file: d:\app\administrator\product\..\dbhome_\network\admin\listener.ora
# generated by oracle configuration tools.

把listener.ora中的配置改成如下即可:

sid_list_listener = 
 (sid_list = 
  (sid_desc = 
   (sid_name = clrextproc) 
   (oracle_home = d:\app\administrator\product\..\dbhome_) 
   (program = extproc) 
   (envs = "extproc_dlls=only:d:\app\administrator\product\..\dbhome_\bin\oraclr.dll") 
  ) 
 
  (sid_desc =  
   (global_dbname = orcl)  
   (oracle_home = d:\app\administrator\product\..\dbhome_)  
   (sid_name = orcl)  
  )  
 ) 
listener = 
 (description_list = 
  (description = 
   (address = (protocol = ipc)(key = extproc)) 
   (address = (protocol = tcp)(host = localhost)(port = )) 
  ) 
 ) 
adr_base_listener = d:\app\administrator 

如按照以上操作还是连接不上,可能是你的sid错误!

解决方法: