代码改变世界

ORA-28547: connection to server failed, probable Oracle Net admin error

2019-11-13 18:04  那个,我  阅读(2872)  评论(0编辑  收藏  举报

现象

C:\Users\Administrator>sqlplus scott/tiger@192.168.1.11:1521/orcl

SQL*Plus: Release 11.2.0.4.0 Production on Wed Nov 13 17:53:59 2019

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

ERROR:
ORA-28547: connection to server failed, probable Oracle Net admin error

监听配置

# listener.ora Network Configuration File: C:\oracle\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)
      (SID_NAME = orcl)
      (GLOBAL_DBNAME = orcl)
      (ORACLE_HOME = C:\oracle\product\11.2.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS ="EXTPROC_DLLS=ONLY:C:\oracle\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.11)(PORT = 1521)) 
    #经测试重新配置监听,这里是主机名时可以正常连接,修改为IP 后就报上面的错误 ORA-28547 (ADDRESS
= (PROTOCOL = TCP)(HOST = 192.168.2.11)(PORT = 1521)) ) ) ADR_BASE_LISTENER = C:\oracle

处理

注释掉 extproc 相关项,重启监听,恢复正常。

# listener.ora Network Configuration File: C:\oracle\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)
      (SID_NAME = orcl)
      (GLOBAL_DBNAME = orcl)
      (ORACLE_HOME = C:\oracle\product\11.2.0\dbhome_1)
     # (PROGRAM = extproc)
     # (ENVS ="EXTPROC_DLLS=ONLY:C:\oracle\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.11)(PORT = 1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.11)(PORT = 1521))
    )
  )

ADR_BASE_LISTENER = C:\oracle