凌寒飘香

____成风破浪会有时,直把云帆济沧海!

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: :: 管理 ::

TNS:listener does not currently know of service requested in connect descriptor

解决方法如下

打开 C:\oracle\product\10.1.0\Db_1\NETWORK\ADMIN 文件夹下的 listener.ora文件

里面代码如下,把红色部分代码加上

重启 Listener服务。即可。

 

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = C:\oracle\product\10.1.0\Db_1)
      (PROGRAM = extproc)
    )
 
 (SID_DESC =
      (SID_NAME = orcl)
      (ORACLE_HOME = c:\oracle\product\10.1.0\Db_1)
    )

  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
      )
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
      )
    )
  )

 

 

 

posted on 2009-06-23 10:47  凌寒飘香  阅读(3051)  评论(1编辑  收藏  举报