Skip to main content

Currently Long Running Concurrent requests

set pagesize 1000 lines 130
set space 1
column user_concurrent_program_name format a35 trunc
column request format 9999999999
column total_time format 99,999.99
column start_time format a14
column node_name format a8 noprint
column queue_name  format a23 trunc
select r.request_id request,p.user_concurrent_program_name,
       sum(sysdate-actual_start_date)*24*60 total_time,
       to_char(actual_start_date, 'MM/DD/YY HH24:MI') start_time,
       q.user_concurrent_queue_name queue_name
from applsys.fnd_concurrent_queues_tl q,applsys.fnd_concurrent_processes cp, applsys.fnd_concurrent_programs_tl p, applsys.fnd_concurrent_requests r
where status_code = 'R'
and p.application_id = r.program_application_id
and r.concurrent_program_id = p.concurrent_program_id
and cp.CONCURRENT_PROCESS_ID = r.controlling_manager
and cp.QUEUE_APPLICATION_ID = q.application_id
and cp.CONCURRENT_QUEUE_ID = q.CONCURRENT_QUEUE_ID
group by r.request_id,
         p.user_concurrent_program_name,
         actual_start_date,
         q.user_concurrent_queue_name
order by 3 desc;

Comments

Popular posts from this blog

CLSRSC-430: Failed to start rolling patch mode

############################################################ GRID PSU Failed on Node2: =========================== [root@server1 tmp]# /oracrs/oracle/product/12102/OPatch/opatchauto apply /path1/patches/23273629 -oh /oracrs/oracle/product/12102 -ocmrf /tmp/ocm.rsp OPatch Automation Tool Copyright (c)2014, Oracle Corporation. All rights reserved. OPatchauto Version : 12.1.0.1.10 OUI Version        : 12.1.0.2.0 Running from       : /oracrs/oracle/product/12102 opatchauto log file: /oracrs/oracle/product/12102/cfgtoollogs/opatchauto/23273629/opatch_gi_2016-11-25_06-13-44_deploy.log Parameter Validation: Successful Configuration Validation: Successful Patch Location: /path1/patches/23273629 Grid Infrastructure Patch(es): 21436941 23054246 23054327 23054341 DB Patch(es): 23054246 23054327 The following patch(es) are duplicate patches with patches installed in the Oracle Home.  [ 20299023] You hav...

SQL Plan Management [ SPM ]

============================================= SQL> SHOW parameter baselines NAME                                 TYPE        VALUE ------------------------------------ ----------- ------- optimizer_capture_sql_plan_baselines boolean     FALSE optimizer_use_sql_plan_baselines     boolean     TRUE SQL> ============================================= Connect as SPM user and create a table as follows. -------------------------------------------------- SQL> CREATE TABLE EMPLOYEE (code number,dept char(100),address char(1000)); Table created. SQL> ============================================= Populate some rows in the table =================================== declare c1 number; begin for c1 IN 1..10000 ...