REM REM DBAToolZ NOTE: REM This script was obtained from DBAToolZ.com REM It's configured to work with SQL Directory (SQLDIR). REM SQLDIR is a utility that allows easy organization and REM execution of SQL*Plus scripts using user-friendly menu. REM Visit DBAToolZ.com for more details and free SQL scripts. REM REM REM File: REM s_ses_dist_trx.sql REM REM USER REM REM SQLDIR Group Descriptions: REM APPS - APPS General REM APPS_INST - APPS Installation REM APPS_CONC_PROG - APPS Concurrent Programs REM APPS_CONC_MAN - APPS Concurrent Managers REM APPS_ADMIN - APPS Administration REM DBF - Data Files REM TABSP - Tablespace REM UTIL - Utility REM INDX - Index REM LOG - Redo Log REM RBS - Rollback REM MAINT - Maintenance REM REVERSE - Reverse Engineering REM SGA - SGA Maintenance REM TAB - Table REM USER - User Management REM STATS - Statistics REM STORAGE - Storage Management REM INIT - Database Init Parameters REM LATCH - Latches REM LOCK - Locks REM SEGMENT - Segment Management REM BACKUP - Backup Management REM PQ - Parallel Query REM TRACE - SQL Tracing Tuning REM PART - Partitioning REM MOST - Favorite Scripts REM REM Author: REM Vitaliy Mogilevskiy vit100gain@earthlink.net REM REM REM REM Purpose: REM REM This script reports FAILED DISTRIBUTED TRANSACTIONS REM Refer to Note:1012842.102 on how to remove or purge REM these TRNX. Uses view DBA_2PC_PENDING REM REM REM Usage: REM s_ses_dist_trx.sql REM REM Example: REM s_ses_dist_trx.sql REM REM REM History: REM 04-12-2002 Vitaliy Mogilevskiy Created REM REM alter session set nls_date_format='DD-MON-RR HH24:MI:SS'; set head on set feed on set pages 100 set lines 132 set trims on col LOCAL_TRAN_ID format a15 col GLOBAL_TRAN_ID format a15 trunc col STATE format a12 trunc col MIXED format a4 trunc col ADVICE format a3 trunc col TRAN_COMMENT format a10 trunc col OS_USER format a15 trunc col OS_TERMINAL format a15 trunc col HOST format a15 trunc col DB_USER format a10 trunc col COMMIT# format a15 trunc select sysdate from dual; select LOCAL_TRAN_ID , GLOBAL_TRAN_ID , STATE , MIXED , ADVICE , TRAN_COMMENT , FAIL_TIME , FORCE_TIME , RETRY_TIME , OS_USER , OS_TERMINAL , HOST , DB_USER , COMMIT# from DBA_2PC_PENDING /