dblink同步数据

declare
 n_count number:=0;
begin

 for c  in  (select  rowid rid from  occobj_company@link_audaque) loop
     n_count := n_count+1;
     insert into occobj_company select * from occobj_company@link_audaque  a where a.rowid = c.rid; 
 
 if(mod(n_count,2000) = 0)then
  commit;
   end if;
 
 end loop;
commit;
 

end;

    原文作者:chjf2010
    原文地址: https://blog.csdn.net/chjf2010/article/details/84484851
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞