一.配置文件
1.listener.ora
# listener.ora Network Configuration File: C:appAdministratorproduct11.2.0dbhome_1
etworkadminlistener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:appAdministratorproduct11.2.0dbhome_1)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = CAD)
(ORACLE_HOME = C:appAdministratorproduct11.2.0dbhome_1)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.31.21.163)(PORT = 1521))
)
)
ADR_BASE_LISTENER = C:appAdministrator
值得注意的是,上面的host那,配的是其内网ip,不是外网ip。(就这个都折腾了大半天。。)
?2.tnsnames.ora
# tnsnames.ora Network Configuration File: C:appAdministratorproduct11.2.0dbhome_1
etworkadmin nsnames.ora
# Generated by Oracle configuration tools.
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
CAD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.31.21.163)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = CAD)
)
)
|