说明
根据表中不同的状态(state字段值),使用的处理结果(确认需要处理了再处理)
操作
状态为 committed 的:
execute DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY('<LOCAL_TRAN_ID>');
状态为 collecting 的:
execute DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY('<LOCAL_TRAN_ID>');
状态为 prepared 的:
rollback force <LOCAL_TRAN_ID>/commit force <LOCAL_TRAN_ID>;
状态为 forced rollback 的:
execute DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY('<LOCAL_TRAN_ID>');
状态为 forced commit 的:
execute DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY('<LOCAL_TRAN_ID>');