1. 程式人生 > >The listener supports no services解決

The listener supports no services解決

今天 在PC上想測試 一下DG同步 ,所以配置了兩個監聽,但在啟動 過程中總是提示:The listener supports no services

開啟 listener.ora檢視發現 配置的監聽名字 叫 :LISTENER_PRIMARY 而SID_LIST_LISTENER未改名。

後增加 SID_LIST_LISTENER_PRIMARY重新啟動監聽,問題解決。

# 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)
    )   
  )
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      (ADDRESS = (PROTOCOL = TCP)(HOST = AYXNTL2P8LN04AV)(PORT = 1521))
    )
  )
SID_LIST_LISTENER_PRIMARY =
  (SID_LIST =
    (SID_DESC =
      (GLOBAL_DBNAME = orcl)
      (ORACLE_HOME = D:\oracle\product\10.2.0\db_2)
      (SID_NAME = orcl)
    )    
  )  
LISTENER_PRIMARY =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.1)(PORT = 1522))
    )
  )  
總結 SID_LIST後面的名稱要和配置的監聽名字 匹配。