oracle - Procedure: commit after 10000 records -


create or replace procedure testing begin      insert t3 select * t2;      insert t1 select * t4;  commit; exception when other      rollback; end; 

this work fine

t2 - 3 millions t4 - 3 millions total have 6 million record , due reason temp space gets filled want commit after every 10000 record inserted .

how do?

i use bulk collect , forall.

see incremental commit processing forall , bulk processing bulk collect , forall examples can adapt tp case.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -