把本计算机的Oracle数据库与另一台计算机的共享?
tnsnames.ora文件中的信息如下:#tnsnames.oraNetworkConfigurationFile:C:\oracle\product\10.1.0\D...
tnsnames.ora文件中的信息如下:
# tnsnames.ora Network Configuration File: C:\oracle\product\10.1.0\Db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
///////////////////////////////////
我需要连接的局域网的电脑ip是10.200.251.121,端口是1521,上面的tnsnames.ora文件应该怎么改?
然后在我的oracle中想要查看对方数据库中product表的信息,怎么输入命令? 展开
# tnsnames.ora Network Configuration File: C:\oracle\product\10.1.0\Db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
///////////////////////////////////
我需要连接的局域网的电脑ip是10.200.251.121,端口是1521,上面的tnsnames.ora文件应该怎么改?
然后在我的oracle中想要查看对方数据库中product表的信息,怎么输入命令? 展开
1个回答
展开全部
XXXX =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.200.251.121)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = YYYY)
)
)
YYYY是对方数据库的实例的名称,如果是全局数据库是 YYYY.YYYY, 域.实例名
XXXX是你本地映射的实例名,就是你本地要调用这个实例时用到的名字。
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.200.251.121)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = YYYY)
)
)
YYYY是对方数据库的实例的名称,如果是全局数据库是 YYYY.YYYY, 域.实例名
XXXX是你本地映射的实例名,就是你本地要调用这个实例时用到的名字。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询