Category: PIPER-Rx Reports (Free) Name: FCR004-10 Concurrent Requests by Requestor Processing Time ReportDefFileName: .\FCR004-10 Concurrent Requests by Requestor Processing Time.fr3 ===Begin Comments=== Copyright (C) 2009 G Piper This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. a copy of the GNU Affero General Public Licenses provided is part of the down load Terms and Conditions available on our site www.piper-rx.com or you can refere to www.gnu.org/licenses/gpl.html ===End Comments=== ===Begin SQL=== -- **************************************************** -- ** PIPER-RX - Free Reports -- ** -- ** Copyright (C) 2009 G.Piper -- ** -- ** Concuurent requestors by processing time -- ** -- ** ------------------------------------------------- -- ** Version 1.0 Jul-09 G.Piper Initial Creation -- **************************************************** SELECT upper(:START_DATE) start_date, upper(:END_DATE) end_date, database_name.db_sid, fu.user_name, substr(fu.description,1,40) description, round(sum(fcr.actual_completion_date - fcr.actual_start_date) * 24, 1) total_run_time, round(((sum(fcr.actual_completion_date - fcr.actual_start_date) * 24) * 100 / totals.total_hours),1) run_time_pct_of_total, count(*) total_requests, round((count(*) * 100 / totals.total_jobs),1) requests_pct_of_total FROM applsys.fnd_concurrent_requests fcr, applsys.fnd_user fu, ( SELECT sum(fcrb.actual_completion_date - fcrb.actual_start_date) * 24 total_hours, count(*) total_jobs FROM applsys.fnd_concurrent_requests fcrb WHERE fcrb.phase_code||null = 'C' and fcrb.actual_completion_date is not null and fcrb.requested_by > -1 and fcrb.actual_completion_date >= to_date(upper(:START_DATE), 'DD-MON-YY HH24:MI') and fcrb.actual_completion_date <= to_date(upper(:END_DATE), 'DD-MON-YY HH24:MI') ) totals, ( SELECT vd.name db_sid FROM gv$database vd WHERE vd.inst_id = 1 ) database_name WHERE fcr.requested_by = fu.user_id and fcr.phase_code||null = 'C' and fcr.actual_completion_date is not null and fcr.actual_completion_date >= to_date(upper(:START_DATE), 'DD-MON-YY HH24:MI') and fcr.actual_completion_date <= to_date(upper(:END_DATE), 'DD-MON-YY HH24:MI') and fcr.requested_by > -1 GROUP by database_name.db_sid, fu.user_name, fu.description, totals.total_hours, totals.total_jobs ORDER by sum(fcr.actual_completion_date - fcr.actual_start_date) desc ===End SQL=== ParamName: START_DATE ParamType: String ParamValue: 01-Jul-09 00:00 ParamExp: ParamName: END_DATE ParamType: String ParamValue: 31-Jul-09 23:59 ParamExp: ===Begin Report Definition===