安装后最开始如下
# listener.ora Network Configuration File: D:oracleappAdministratorproduct11.2.0dbhome_1 etworkadminlistener.ora # Generated by Oracle configuration tools. SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = CLRExtProc) (ORACLE_HOME = D:oracleappAdministratorproduct11.2.0dbhome_1) (PROGRAM = extproc) (ENVS = "EXTPROC_DLLS=ONLY:D:oracleappAdministratorproduct11.2.0dbhome_1inoraclr11.dll") ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = WIN-DG2ARE7VIAU)(PORT = 1521)) ) ) ADR_BASE_LISTENER = D:oracleappAdministrator
修改增加
# listener.ora Network Configuration File: D:oracleappAdministratorproduct11.2.0dbhome_1 etworkadminlistener.ora # Generated by Oracle configuration tools. SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = CLRExtProc) (ORACLE_HOME = D:oracleappAdministratorproduct11.2.0dbhome_1) (PROGRAM = extproc) (ENVS = "EXTPROC_DLLS=ONLY:D:oracleappAdministratorproduct11.2.0dbhome_1inoraclr11.dll") ) (SID_DESC = (GLOBAL_DBNAME=ORCL) (ORACLE_HOME = D:oracleappAdministratorproduct11.2.0dbhome_1) (SID_NAME= ORCL) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 123.123.123.123)(PORT = 1521)) ) ) ADR_BASE_LISTENER = D:oracleappAdministrator
本地
BEMIS = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 123.123.123.123)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID=orcl) ) )