What is the autonomous transaction?give me example?
Answer Posted / ramesh babu v
Autonomous transaction can be devided into two parts as
parent&child,both(parent&child) are run simultaniously and
individually run.
EX:
create table R1(B1 number);
Table created.
create table R2(B2 number);
Table created.
/
1 create or replace procedure p1
2 as
3 pragma autonomous_transaction;
4 begin
5 insert into R1 values(101);
6 commit;
7* end;
/
Procedure created.
/
select * from R1;
B1
---
101
/
> create or replace procedure p2
2 as
3 begin
4 insert into R2 values(102);
5 p1;
6 rollback;
7 end;
8 /
Procedure created.
SQL> select * from R2;
no rows selected.
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
Hi, Anybody please send me the Oracle APPS 1i technical interview questions (Real time) as wel as sample resume also?
How to create a purchase order without a requisition?
What is the concept of soa governance?
What are the Standard Reports and Forms in HRMS?
please send me forms, xml pulisher questions,answers
Can you explain the difference between architecture followed in 10g & 11g?
what is the differences between internal requisition and internal sales order?
pls send me out bound code of supplers,site,bankiformation code pls as soon as
How many schemas we have? how many you have used?
What are the different components you should consider while defining a responsibility in oracle apps?
CAN YOU CUSTOMISE THE COUTOMISE CUS_TOP
What is count(*) from po_vendors(any table)?
What are do's and dont's of Interface?
Do you know where we can check the status of po?
What does appl_top directory contain?