oracle - sqlplus连接另外服务器的数据库
sqlplus连接另外服务器的数据库
2004-04-23 15:18 pm来自:Linux文档
现载:Www.8s8s.coM
地址:无名
sqlplus system/manager@host
然后修改tnsnames.ora文件,这里的host为
ORADB.PRC.SUN.COM
例子
# TNSNAMES.ORA Network Configuration File: E:oracleora81
etworkadmin nsnames.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)
)
)