What is autonomous transaction in Oracle ?

Questions by joybanerjee   answers by joybanerjee

Showing Answers 1 - 1 of 1 Answers

autonomous transaction  are independent transaction

ex

CREATE OR REPLACE PROCEDURE a1

AS

PRAGMA
AUTONOMOUS_TRANSACTION;

BEGIN

INSERT INTO table1 VALUES('autonomous transaction');

COMMIT;

END;



DECLARE
a NUMBER:=1;
BEGIN
INSERT INTO table1('a');
proc_a;
ROLLBACK
END;

after u execute the above code  and do a select * FROM table1
you will see  data autonomous transaction
Which you can independently do tcl on a block if they are autonomous

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions