把10.10.17.2数据库上的TEST表定时同步到10.10.17.3数据库
1.在10.10.17.3上创建DBLINK指向10.10.17.2数据库
配置TNS信息如下:
[oracle@june3 admin]$ cat tnsnames.ora
# tnsnames.ora Network Configuration File: /oracle/app/product/10.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
JUNE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.17.2)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = june)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
开始创建DBLINK
SQL> create public databa
利用DBLINK同步表数据库--老刘
最新推荐文章于 2020-12-31 05:58:25 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)