Amazon books

Showing posts with label PENDING TRANSACTIONS. Show all posts
Showing posts with label PENDING TRANSACTIONS. Show all posts

Tuesday, October 13, 2009

Pending Transactions

Use the following queries to get pending transactions and after commit or rollback, purge then if it's necessary:

--Identifying transactions
select
'commit force '''local_tran_id'''; '
from
dba_2pc_pending;

--Purging
select
'exec dbms_transaction.purge_lost_db_entry('''local_tran_id'''); '
from
dba_2pc_pending
where
state='forced commit';