Autonomous_transaction

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shanshanrefer
    New Member
    • Jun 2007
    • 1

    Autonomous_transaction

    Dear Sir,

    I wrote 3 procedures in a package and all are autonomous_tran saction. I want to fill a table named t1 based on these three procedures. But while executing the 3 procedures are not filling the data at a time. Please advice me.

    PACKAGE BODY EXEC is
    procedure pro1 is
    pragma autonomous_tran saction;
    begin
    for i in 1..100000 loop
    insert into t1 values(i,'a');
    commit;
    end loop;
    end;
    procedure pro2 is
    pragma autonomous_tran saction;
    begin
    for i in 1..100000 loop
    insert into t1 values(i,'b');
    commit;
    end loop;
    end;
    procedure pro3 is
    pragma autonomous_tran saction;
    begin
    for i in 1..100000 loop
    insert into t1 values(i,'c');
    commit;
    end loop;
    end;
    END;

    call method
    execute exec.pr01;
    execute exec.pr02;
    execute exec.pr03;

    Regards,
    Shan"
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Can you please specify what do you mean by filling the data at a time.

    What exactly u want to achieve.

    I think data must be inserting to the table by executing the procedure.

    Comment

    Working...