我的数据库如下:
   服务器1:    UCA1       数据库1:    USY1
   源表:     T_PAY 
   
  服务器2:    WCA2       数据库2:    WSY2
   目的表:     T_PAY    我没用过快照,所以请高手指点。我想把服务器1 上的表T_PAY中的数据每天刷新到服务器2的表T_PAY中,由于数据量较大(100万),所以最好能增量刷新,不知道该怎么实现?高手最好能给出代码,非常感谢!

解决方案 »

  1.   

    建立快照,每一天自动刷新一次
    create snapshot anSnapShot
    pctfree5
    tablesspace anTableSpaceName
    storage (initial 100k next 100k pctincrease 0)
    refresh complete
       start with sysdate
                next Sysdate+1
    as select * from t_pay@dbLinkName
      

  2.   

    Fixed User Example
    The following statement defines a fixed-user database link named sales.hq.acme.com: CREATE DATABASE LINK sales.hq.acme.com 
       CONNECT TO scott IDENTIFIED BY tiger 
       USING 'sales';
    Once this database link is created, you can query tables in the schema scott on the remote database in this manner: SELECT *
       FROM [email protected];
      

  3.   

    http://search.csdn.net/expert/topic/61/6101/2002/7/8/857182.htm