1. 创建dblink 语法如下:
create public database link zhaobsh connect to lcoe739999 identified by Test6530 using '(DESCRIPTION =(ADDRESS_LIST =(ADDRESS =(PROTOCOL = TCP)(HOST = 10.24.39.1)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME =ora11r2)))';
2. 查询其他表中的数据
select * from zwkmzd2007@zhaobsh
3.复制其他数据库中的数据
create table zwkmzd2007 as select * from zwkmzd2007@zhaobsh