sqlplus system/manager@host
然后修改tnsnames.ora文件,这里的host为
ORADB.PRC.SUN.COM
例子
# TNSNAMES.ORA Network Configuration File: E:oracleora81
etworkadminnsnames.ora
# Generated by Oracle configuration tools.
INST1_HTTP.PRC.SUN.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = intercept)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = oradb)
(PRESENTATION = http://admin)
)
)
ORADB.PRC.SUN.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = intercept)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = oradb)
)
)
EXTPROC_CONNECTION_DATA.PRC.SUN.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)