What is the autonomous transaction?give me example?
Answers were Sorted based on User's Feedback
Answer / 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 |
if we want to make one transaction as independent among other or parent transaction,we will use the concept call autanamous transaction,
we will use pragma autanamus_transaction keyword in order to make one transaction as independent,so this transaction will run idependently...
| Is This Answer Correct ? | 3 Yes | 0 No |
What does appl_top directory contain?
what is the error you will get if field is referenced in wrong repeating frame?
Where I can download D2K software?
what is organization id
do i need to declare bind parameter before using in the query?
what is the purpose of standard cost update?
Tell me some thing about SQL-LOADER.
Steps for DFF registration
cursor 1 and cursor 2 are there did you open both the cursors at a time or not?
what are the profiles
How to compile the Forms & Reports in Linux Apps Server which are created in WindowsXP client?
Hi all I am in big career dilemma. I am currently working as Oracle Apps functional consultant scm with 1 yr of exp. I am thinking to do mba. Hos it will work to di MBA in scm or operations. Please guide .