<ROOT>
 <APPS_INITIALIZE_DATA>
  <USER_NAME>ENGINATICS</USER_NAME>
  <RESPONSIBILITY_KEY>SYSTEM_ADMINISTRATOR</RESPONSIBILITY_KEY>
  <APPLICATION_SHORT_NAME>SYSADMIN</APPLICATION_SHORT_NAME>
 </APPS_INITIALIZE_DATA>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: Blitz Report Web Service Sessions -->
 <REPORTS_ROW>
  <GUID>07D98F58FB4F457684EDD947E4F03DFD</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
gs.inst_id,
gs.sid,
gs.serial#,
xxen_util.user_name(xrr.created_by) user_name,
(select frv.responsibility_name from fnd_responsibility_vl frv where xrr.responsibility_application_id=frv.application_id and xrr.responsibility_id=frv.responsibility_id) responsibility,
xrv.report_name,
xrr.run_id,
round(gs.last_call_et/60,1) running_minutes,
gs.sql_id,
xxen_util.client_time(gs.sql_exec_start) sql_exec_start,
decode(gs.state,&apos;WAITING&apos;,gs.event,&apos;ON CPU&apos;) event,
gtu.temp_used,
gs.client_identifier,
gs.program,
gs.module,
gs.machine,
gp.spid os_process_db,
&apos;alter system kill session &apos;&apos;&apos;||gs.sid||&apos;,&apos;||gs.serial#||&apos;,@&apos;||gs.inst_id||&apos;&apos;&apos; immediate;&apos; kill_session
from
gv$session gs,
gv$process gp,
xxen_report_runs xrr,
xxen_reports_v xrv,
(
select
gtu.inst_id,
gtu.session_addr,
sum(gtu.blocks*(select dt.block_size from dba_tablespaces dt where gtu.tablespace=dt.tablespace_name))/1000000 temp_used
from
gv$tempseg_usage gtu
group by
gtu.inst_id,
gtu.session_addr
) gtu
where
1=1 and
gs.module like &apos;XXEN_REPORT - %&apos; and
gs.status=&apos;ACTIVE&apos; and
gs.audsid not in (select fcr.oracle_session_id from fnd_concurrent_requests fcr where fcr.phase_code=&apos;R&apos; and fcr.oracle_session_id is not null) and
gs.inst_id=gp.inst_id(+) and
gs.paddr=gp.addr(+) and
to_number(regexp_substr(gs.action,&apos;^[0-9]+&apos;))=xrr.run_id and
xrr.request_id is null and
xrr.completion_date is null and
xrr.completion_message is null and
xrr.report_id=xrv.report_id(+) and
gs.inst_id=gtu.inst_id(+) and
gs.saddr=gtu.session_addr(+)
order by
gs.last_call_et desc</SQL_TEXT>
  <VERSION_COMMENTS>new report listing active Blitz Report runs inside web service sessions with their EBS user and a kill session command</VERSION_COMMENTS>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>Blitz Report Web Service Sessions</REPORT_NAME>
    <DESCRIPTION>Blitz Report runs that execute inside a web service call, from the Excel add-in or a Blitz FSG drilldown, and are still active, with the Oracle EBS user and responsibility that started them.

Running Minutes is the run time of the current database call. The Excel clients stop waiting after 15 minutes. A run that is still active after that has no client reading its result, but its database session and the middle-tier thread serving it stay busy until the query ends.

Kill Session holds the command that ends the session. Temp Used is in MB.

Schedule the report with Running Minutes From to be notified of such sessions.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gs.last_call_et&gt;=:running_minutes_from*60</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Number</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>15</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Running Minutes From</PARAMETER_NAME>
      <DESCRIPTION>Show only runs whose current database call has been running for at least this number of minutes.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
