现象
C:UsersAdministrator>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:oracleproduct11.2.0dbhome_1 etworkadminlistener.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:oracleproduct11.2.0dbhome_1) (PROGRAM = extproc) (ENVS ="EXTPROC_DLLS=ONLY:C:oracleproduct11.2.0dbhome_1inoraclr11.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:oracleproduct11.2.0dbhome_1 etworkadminlistener.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:oracleproduct11.2.0dbhome_1) # (PROGRAM = extproc) # (ENVS ="EXTPROC_DLLS=ONLY:C:oracleproduct11.2.0dbhome_1inoraclr11.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