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
Which oracle apps version you are very confident in?
tell my any difficult situtation you solved in your experience in your company?
List of all the modules under Manufacturing, Finance and Distribution in oracle applications?
How is choreography different from orchestration?
please send me forms, xml pulisher questions,answers
can we get profile values in report without using user exists is it possible how?
Can u give the Documentation of Custom.pll in oracle apps
What are file in oracle.
What are do's and dont's of Interface?
how can i print random rows in plsql table
tell me the scenarios of the independent in reports
what is global tempory table?
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.
Can you differentiate between mediator and osb?
what are the different transaction clauses in AR?