《ORA-12528: TNS: 監聽器: 所有適當的執行處理都阻隔新連線》

摘要:《ORA-12528: TNS: 監聽器: 所有適當的執行處理都阻隔新連線》

2009/7/9

C:\>tnsping oracle10g

TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 09-7月 -

2009 20:44:36

Copyright (c) 1997, 2005, Oracle.  All rights reserved.

已使用的參數檔案:

使用 TNSNAMES 轉接器來解析別名

Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)

(HOST = PcOracle10g)(PORT = 1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = OracleA)))

OK (90 msec)

C:\>sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 7月 9 20:44:39 2009

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

SQL> conn sys/change_on_install@oracle10g

ERROR:

ORA-12528: TNS: 監聽器: 所有適當的執行處理都阻隔新連線

SQL> exit

C:\>lsnrctl

LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 09-7月 -2009 20:46:52

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

歡迎來到 LSNRCTL, 請鍵入 "help" 以取得資訊

LSNRCTL> status

連線至 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PCORACLE10G)(PORT=1521)))

監聽器的狀態

------------------------

別名                     LISTENER

版本                     TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production

啟動日期                 09-7月 -2009 20:46:06

正常運作時間              0 days 0 hr. 0 min. 47 sec

追蹤層次                 off

安管                     ON: Local OS Authentication

SNMP                     OFF

監聽器參數檔案           C:\oracle\product\10.2.0\db_A\network\admin\listener.ora監聽器日誌檔        

C:\oracle\product\10.2.0\db_A\network\log\listener.log

監聽終止點摘要...

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PcOracle10g)(PORT=1521)))

服務摘要...

服務 "PLSExtProc" 有 1 個執行處理.

  執行處理 "PLSExtProc", 狀態 UNKNOWN, 有 1 個此服務的處理程式...

命令順利完成

LSNRCTL> stop

連線至 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PCORACLE10G)(PORT=1521)))

命令順利完成

------------------------------------------------------------

-- listener.log 設定有誤,修正如附註

------------------------------------------------------------

LSNRCTL> start

正在啟動 tnslsnr: 請稍候...

TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production

系統參數檔案是 C:\oracle\product\10.2.0\db_A\network\admin\listener.ora

日誌訊息寫入 C:\oracle\product\10.2.0\db_A\network\log\listener.log

監聽之處: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PcOracle10g)(PORT=1521)))

連線至 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PCORACLE10G)(PORT=1521)))

監聽器的狀態

------------------------

別名                     LISTENER

版本                     TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production

啟動日期                 09-7月 -2009 20:48:38

正常運作時間              0 days 0 hr. 0 min. 4 sec

追蹤層次                 off

安管                     ON: Local OS Authentication

SNMP                     OFF

監聽器參數檔案           C:\oracle\product\10.2.0\db_A\network\admin\listener.ora

監聽器日誌檔             C:\oracle\product\10.2.0\db_A\network\log\listener.log

監聽終止點摘要...

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PcOracle10g)(PORT=1521)))

服務摘要...

服務 "OracleA" 有 1 個執行處理.

  執行處理 "OracleA", 狀態 UNKNOWN, 有 1 個此服務的處理程式...

服務 "PLSExtProc" 有 1 個執行處理.

  執行處理 "PLSExtProc", 狀態 UNKNOWN, 有 1 個此服務的處理程式...

命令順利完成

LSNRCTL> exit

C:\>tnsping oracle10g

TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 09-7月 -2009 20:48:49

Copyright (c) 1997, 2005, Oracle.  All rights reserved.

已使用的參數檔案:

使用 TNSNAMES 轉接器來解析別名

Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)

(HOST = PcOracle10g)(PORT = 1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = OracleA)))

OK (50 msec)

C:\>sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 7月 9 20:48:52 2009

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

SQL> conn sys/change_on_install@oracle10g as sysdba

已連線.

SQL>

================================================================

附註:

# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_A\network\admin\listener.ora

# Generated by Oracle configuration tools.

LISTENER =

  (DESCRIPTION_LIST =

    (DESCRIPTION =

      (ADDRESS = (PROTOCOL = TCP)(HOST = PCORACLE10G)(PORT = 1521))

    )

  )

SID_LIST_LISTENER =

  (SID_LIST =

    (SID_DESC =

      (SID_NAME = PLSExtProc)

      (ORACLE_HOME = C:\oracle\product\10.2.0\db_A)

      (PROGRAM = extproc)

    )

######################################################

## 增加的部份

######################################################

    (SID_DESC =

      (SID_NAME = OracleA)

      (ORACLE_HOME = C:\oracle\product\10.2.0\db_A)

      (GLOBAL_DBNAME=OracleA)

    )

######################################################

  )