Oracle-11g-R2

監聽器無法啟動

  • June 9, 2017

我在 Oracle 11g R2 中的監聽器無法啟動。當我想給出它的狀態時,會顯示下面的錯誤:

Connecting to <ADDRESS=<PROTOCOL=tcp><HODT=><PORT=1521>>
TNS-12541 : TNS:no listener
TNS-12560 : TNS:protocol adapter error
 TNS-00511 : NO LISTENER 
  64-bit Windowns Eroor : 61: Wnknown error

tnsnames.ora的是:

# tnsnames.ora Network Configuration File: D:\app\SHOJAIE\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

ORACLR_CONNECTION_DATA =
 (DESCRIPTION =
   (ADDRESS_LIST =
     (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
   )
   (CONNECT_DATA =
     (SID = CLRExtProc)
     (PRESENTATION = RO)
   )
 )

ORCL =
 (DESCRIPTION =
   (ADDRESS = (PROTOCOL = TCP)(HOST = SHOJAIE-PC)(PORT = 1521))
   (CONNECT_DATA =
     (SERVER = DEDICATED)
     (SERVICE_NAME = orcl)
   )
 )

listener.ora的是:

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

LISTENER =
 (DESCRIPTION_LIST =
   (DESCRIPTION =
     (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
     (ADDRESS = (PROTOCOL = TCP)(HOST = SHOJAIE-PC)(PORT = 1521))
   )
 )

ADR_BASE_LISTENER = D:\app\SHOJAIE

誰能幫我 ?

嘗試通過以下命令重新啟動 Oracle 服務

net stop oracleserviceORCL;
net start oracleserviceORCL;

然後首先啟動偵聽器,如果此命令尚未啟動它。

lsnrctl start listener;

如果有幫助,請更新我…

就我而言,我嘗試通過控制台啟動監聽器:

> lsnrctl star

此命令列印以下錯誤:

TNS-12560: TNS:protocol adapter error
TNS-00583: Valid node checking: unable to parse configuration parameters

因此,我執行了以下操作:

  1. 檢查 Oraclelistener.orasqlnet.ora文件是否包含特殊字元
  2. 檢查 Oraclelistener.ora或 sqlnet.ora` 文件的格式或語法是否錯誤
  3. 檢查 Oraclelistener.orasqlnet.ora文件是否有一些不被 Oracle 解析器接受的左對齊括號。

查看這些文件並檢查正確的語法。如果可能,刪除/重命名 sqlnet.ora 並嘗試重新啟動偵聽器。或者刪除/重命名 listener.ora 或 sqlnet.ora 文件並正確重新創建它。這些肯定會解決問題。

引用自:https://dba.stackexchange.com/questions/57749