Showing posts with label autonomous_transaction. Show all posts
Showing posts with label autonomous_transaction. Show all posts

Thursday, September 14, 2017

Single resource deadlock: blocked by granted enqueue, f 0

We are noticing "Single resource deadlock" in alert log of the database.

Error Message
*** 2017-09-14 15:51:27.949
*** SESSION ID:(2218.11151) 2017-09-14 15:51:27.949
*** CLIENT ID:(TESTUSER) 2017-09-14 15:51:27.949
*** SERVICE NAME:(VISEBS) 2017-09-14 15:51:27.949
*** MODULE NAME:(e:PO:bes:oracle.apps.fnd.wf.ds.user.updated) 2017-09-14 15:51:27.949
*** CLIENT DRIVER:() 2017-09-14 15:51:27.949
*** ACTION NAME:(PO/PO_BUYER_CCRP) 2017-09-14 15:51:27.949

Single resource deadlock: blocked by granted enqueue, f 0
Granted global enqueue 0xf215c1260

Reasons:
It can be due to the PRAGMA AUTONOMOUS_TRANSACTION given inside the package or procedure it is calling.
Due to autonomous transaction any insert , update or delete is there on same row in parent and child can create deadlock.

Wednesday, April 24, 2013

pragma autonomous_transaction

Autonomous transaction clause will initiate an independent transaction , not new session as per below test case.
DECLARE
PROCEDURE A
AS
pragma autonomous_transaction;
BEGIN
dbms_output.put_line ( 'Inside Autonomous transaction My session id ' || sys_context ( 'USERENV' , 'SID' ) ) ;
ROLLBACK;
END ;
BEGIN
dbms_output.put_line ( 'My session id ' || sys_context ( 'USERENV' , 'SID' ) ) ;
a;
dbms_output.put_line ( 'Outside Autonomous transaction My session id ' || sys_context ( 'USERENV' , 'SID' ) ) ;
END;

Troubleshooting ACFS-07981: Metadata Validation Errors

  Troubleshooting ACFS-07981: Metadata Validation Errors Introduction The ACFS-07981 error indicates that an attempt to run an online file ...