Category: PIPER-Rx Reports (Free) Name: FUA003-10 FS User Activity by Sessions (period) ReportDefFileName: .\FUA003-10 FS User Activity by Sessions (period).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 -- ** -- ** Full service activity by sessions -- ** -- ** ------------------------------------------------- -- ** 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(fl.end_time - fl.start_time) * 24,1) connect_time, round(((sum(fl.end_time - fl.start_time) * 24) * 100 / totals.total_hours) , 1) connect_time_pct_of_tot, count(*) number_of_sessions, round((count(*) * 100 / totals.total_jobs),1) num_sessions_pct_of_tot FROM applsys.fnd_logins fl, applsys.fnd_login_responsibilities flr, applsys.fnd_user fu, ( SELECT sum(flb.end_time - flb.start_time) * 24 total_hours, count(*) total_jobs FROM applsys.fnd_logins flb, applsys.fnd_login_responsibilities flrb WHERE flb.login_id = flrb.login_id and flb.end_time is not null and (flb.end_time - flb.start_time) < 1 and flb.start_time >= to_date(upper(:START_DATE), 'DD-MON-YY HH24:MI') and flb.start_time <= 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 fl.login_id = flr.login_id and fl.user_id = fu.user_id and fl.end_time is not null and (fl.end_time - fl.start_time) < 1 and fl.start_time >= to_date(upper(:START_DATE), 'DD-MON-YY HH24:MI') and fl.start_time <= to_date(upper(:END_DATE), 'DD-MON-YY HH24:MI') GROUP by database_name.db_sid, fu.user_name, fu.description, totals.total_hours, totals.total_jobs ORDER by count(*) 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===