Skip to content
December 28, 2012 / doganay

ORA-01591 lock held by in-doubt distributed transaction


Problem:

ORA-01591 lock held by in-doubt distributed transaction


Solution:

select 'rollback force '''||local_tran_id||''';' from dba_2pc_pending
union all
select 'rollback force '''||local_tran_id||''';' from dba_2pc_neighbors;

select 'EXECUTE DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY('''||local_tran_id||''');'||''||'commit;'
from dba_2pc_pending
union all
select 'EXECUTE DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY('''||local_tran_id||''');'||''||'commit;'
from dba_2pc_neighbors;
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: