将远程数据库中的某表数据复制到本数据库(ORACLE)

1. 建立 DATABASE LINK
CREATE PUBLIC DATABASE LINK ABC
CONNECT TO SA IDENTIFIED BY PASSWORD
USING '(DESCRIPTION =(ADDRESS_LIST =(ADDRESS =(PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = AAA)))';

2、建立表
CREATE TABLE LOCAL_TABLE  SELEC * FROM  TABLE@ABC;

 

posted on 2015-12-21 15:37  木色小罗  阅读(510)  评论(0编辑  收藏  举报

导航

诗与远方