ORA-01591 INDOUBT tran transaction purge


set feedback off;                                                                                   
set linesize 80
set pagesize 0
spool rollback_force.sql
select 'rollback force ''' ||local_tran_id ||''';' from dba_2pc_pending;
spool off
exit

set feedback off;                                                                                   
set linesize 80
set pagesize 0
spool purge.sql
select 'alter session set "_smu_debug_mode" = 4;' from dual;
select 'exec DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY(''' ||local_tran_id ||''');' || chr(10) || 'commit;' from dba_2pc_pending;
spool off
exit

@rollback_force.sql
@purge.sql

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: