有A库A表和B库A表A库A表:
SEND_TIME DATE
TEL_NO VARCHAR2(15)
MEMO VARCHAR2(70)
B库A表:
TEL_NO VARCHAR2(15)
MEMO VARCHAR2(70)当A库的时间与A库A表SEND_TIME列的时间匹配时,
将A库A表的内容写入B库B表
A库的用户拥有最高权限
B库的用户不能作任何UPDATE操作每天数据量不大,一般不超过50,最多100以内,但一定要准时,有高手知道如何实现吗

解决方案 »

  1.   

    create or replace trigger test_tri
      before insert or update on a  
      for each row
    declare
       stime date;
    begin
      select sysdate into stime from dual;
      if :new.send_time = stime then
         insert into b values(:new.tel_no,:new.memo);
      end if;   
    end test_tri;job能及时的吗?
      

  2.   

    用JOB每分钟检查一次肯定没问题,但我担心A库的负担有点大,要是每分钟检查一次会不会对小型机数据库挺大的影响
      

  3.   

    --触发器create or replace trigger tri_up_b before insert or update on usera.A
    for each row
    begin
    if :new.SEND_TIME=sysdate then
    insert into userb.B values(:new.TEL_NO,:new.MEMO);
    end if;
    end;
      

  4.   

    在trigger里调用dbms_job.submit添加单次job.