日期:2014-05-17  浏览次数:20670 次

ORA-12505 前天还是好好的,今天就出着问题
Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

还原系统几次了,搞死人了都没好 有经验的朋友帮帮忙

请不要贴百度搜来的东西,希望是有经过实践的

D:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN
listener.ora
内容如下
# listener.ora Network Configuration File: D:\app\Administrator\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\Administrator\product\11.2.0\dbhome_1)
  (PROGRAM = extproc)
  (ENVS = "EXTPROC_DLLS=ONLY:D:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")
  )
  )

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


ADR_BASE_LISTENER = D:\app\Administrator

网上说改这个文件,貌似没啥效果。
连接字符串绝对没问题,pl/sql连127.0.0.1:1521/orcl报错ORA-12514

不要贴百度搜来的东西,可以谈下经验,谢谢各位!

------解决方案--------------------
厉害, 厉害, 俺也装11G, 呵呵,

------解决方案--------------------
我们还在用老的10g的,汗
------解决方案--------------------
以前安装oracle后为了进入到console页面,重装了2次系统。才勉强能进 现在发现安装oracle真的很不容易。