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 a_conc_reqs_by_user.sql
REM
REM APPS_CONC_MAN
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 www.dbatoolz.com
REM
REM
REM
REM Purpose:
REM
REM ALL APPS Conc requests by USERNAME and/or PROGRAM
REM sorted by date DESC
REM
REM
REM Usage:
REM a_conc_reqs_by_user.sql
REM
REM Example:
REM a_conc_reqs_by_user.sql
REM
REM
REM History:
REM 04-26-2002 Vitaliy Mogilevskiy Created
REM
REM
alter session set nls_date_format='DD-MON-RR HH24:MI';
set lines 132
set trims on
set echo off
set feed on
set pages 60
col request_id heading "Request ID"
col requested_start_date heading "Start Date"
col user_name format a10 trunc heading "APPS User"
col prg_name format a30 trunc heading "Program Name"
col args format a45 trunc heading "Agruments [first 45 chars]"
select
reqs.request_id
, reqs.requested_start_date requested_start_date
, reqs.phase_code
, reqs.status_code
, usr.user_name
, prg.user_concurrent_program_name prg_name
, argument_text args
from apps.fnd_user usr
, apps.fnd_concurrent_requests reqs
, apps.fnd_concurrent_programs_tl prg
where usr.user_name like '&username'
--and reqs.phase_code IN ('P','R')
and reqs.concurrent_program_id = prg.concurrent_program_id
and prg.user_concurrent_program_name like '%&prog_like%'
and reqs.requested_by = usr.user_id
order by DECODE(reqs.phase_code,'R',1,'P',2,3)
, reqs.requested_start_date desc
, usr.user_name
/