oracle link 其他数据库 做表复制 DB LINK

CREATE DATABASE LINK source_link CONNECT TO e540766 IDENTIFIED BY Wang0804 USING '(
DESCRIPTION=(ENABLE=BROKEN)(ADDRESS = (PROTOCOL = TCP)(HOST = gdcx16-scan)(PORT = 1521))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = GCE.UAT.AQ1))

)';


INSERT INTO opgcep2.DHR_T SELECT * FROM opgcep2.DHR_T@source_link;
commit;
drop DATABASE LINK source_link;

你可能感兴趣的:(DB,oracle)