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


Please Help Members By Posting Answers For Below Questions

Which oracle apps version you are very confident in?

711


tell my any difficult situtation you solved in your experience in your company?

1873


List of all the modules under Manufacturing, Finance and Distribution in oracle applications?

1806


How is choreography different from orchestration?

662


please send me forms, xml pulisher questions,answers

1663






can we get profile values in report without using user exists is it possible how?

2327


Can u give the Documentation of Custom.pll in oracle apps

3000


What are file in oracle.

1816


What are do's and dont's of Interface?

1913


how can i print random rows in plsql table

1946


tell me the scenarios of the independent in reports

2056


what is global tempory table?

6321


A program must be written which accepts date parameter. The date parameter will accept data in the format DD/MM/YYYY. This data has to be validated and post validation, the following details have to be displayed for this date parameter 1. Input date must be defaulted to sysdate, It can be overridden by any other date. 2. Financial year should be displayed for this date parameter. Eg: If the input date is 30/11/2010, the financial year must be displayed as 1. From Date : 01-Aprr-2010 To Date: 31-Mar-2011 3. Calendar year and Calendar month must also be displayed. 4. The next payment cycle (say for EB), must be displayed based on this date parameter. 5. The previous payment must also be displayed based on this date.

1683


Can you differentiate between mediator and osb?

634


what are the different transaction clauses in AR?

1606