EBS并发请求统计脚本
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了EBS并发请求统计脚本相关的知识,希望对你有一定的参考价值。
10天的并发请求运行情况统计脚本。
按平均运行时间统计(时间单位:分钟):
select
f.application_short_name 应用,
p.concurrent_program_name 程序名,
p.user_concurrent_program_name 描述,
count(*) 次数,
sum(actual_completion_date - actual_start_date) * 24 花费时间_小时,
avg(actual_completion_date - actual_start_date) * 24 平均花费时间_小时,
max(actual_completion_date - actual_start_date) * 24*60 最大运行时间_分钟,
min(actual_completion_date - actual_start_date) * 24*60 最少运行时间_分钟,
avg(actual_completion_date - actual_start_date) * 24*60 平均花费时间_分钟,
sum(actual_start_date - decode(to_char(requested_start_date,‘HH24:MI:SS‘),‘00:00:00‘,request_date,requested_start_date)) * 24 等待时间_小时,
avg(actual_start_date - decode(to_char(requested_start_date,‘HH24:MI:SS‘),‘00:00:00‘,request_date,requested_start_date)) * 24 *3600 平均等待时间_秒
from fnd_application f,
applsys.fnd_concurrent_requests r,
fnd_concurrent_programs_vl p
where r.program_application_id = p.application_id
and r.concurrent_program_id = p.concurrent_program_id
and r.status_code =‘C‘
and actual_start_date between sysdate-6 and sysdate-4
and p.application_id = f.application_id
and r.program_application_id = f.application_id
group by
f.application_short_name,
p.concurrent_program_name,
p.user_concurrent_program_name
order by 6 desc
按总运行时间统计(时间单位:分钟):
select
f.application_short_name 应用,
p.concurrent_program_name 程序名,
p.user_concurrent_program_name 描述,
r.argument_text 参数,
actual_start_date 运行开始时间,
actual_completion_date 运行结束时间,
(actual_completion_date - actual_start_date) * 24*60 运行时长_分钟
/*count(*) 次数,
sum(actual_completion_date - actual_start_date) * 24 花费时间_小时,
avg(actual_completion_date - actual_start_date) * 24 平均花费时间_小时,
max(actual_completion_date - actual_start_date) * 24*60 最大运行时间_分钟,
min(actual_completion_date - actual_start_date) * 24*60 最少运行时间_分钟,
avg(actual_completion_date - actual_start_date) * 24*60 平均花费时间_分钟,
sum(actual_start_date - decode(to_char(requested_start_date,‘HH24:MI:SS‘),‘00:00:00‘,request_date,requested_start_date)) * 24 等待时间_小时,
avg(actual_start_date - decode(to_char(requested_start_date,‘HH24:MI:SS‘),‘00:00:00‘,request_date,requested_start_date)) * 24 *3600 平均等待时间_秒*/
from apps.fnd_application f,
applsys.fnd_concurrent_requests r,
apps.fnd_concurrent_programs_vl p
where r.program_application_id = p.application_id
and r.concurrent_program_id = p.concurrent_program_id
and r.status_code =‘C‘
and actual_completion_date between sysdate-7 and sysdate
and p.application_id = f.application_id
and r.program_application_id = f.application_id
and (actual_completion_date - actual_start_date) * 24*60 >5 ----大于5分钟
/*group by
f.application_short_name,
p.concurrent_program_name,
p.user_concurrent_program_name,
r.argument_text*/
order by 7 desc
按平均运行时间统计(时间单位:分钟):
select
f.application_short_name 应用,
p.concurrent_program_name 程序名,
p.user_concurrent_program_name 描述,
count(*) 次数,
sum(actual_completion_date - actual_start_date) * 24 花费时间_小时,
avg(actual_completion_date - actual_start_date) * 24 平均花费时间_小时,
max(actual_completion_date - actual_start_date) * 24*60 最大运行时间_分钟,
min(actual_completion_date - actual_start_date) * 24*60 最少运行时间_分钟,
avg(actual_completion_date - actual_start_date) * 24*60 平均花费时间_分钟,
sum(actual_start_date - decode(to_char(requested_start_date,‘HH24:MI:SS‘),‘00:00:00‘,request_date,requested_start_date)) * 24 等待时间_小时,
avg(actual_start_date - decode(to_char(requested_start_date,‘HH24:MI:SS‘),‘00:00:00‘,request_date,requested_start_date)) * 24 *3600 平均等待时间_秒
from fnd_application f,
applsys.fnd_concurrent_requests r,
fnd_concurrent_programs_vl p
where r.program_application_id = p.application_id
and r.concurrent_program_id = p.concurrent_program_id
and r.status_code =‘C‘
and actual_start_date between sysdate-6 and sysdate-4
and p.application_id = f.application_id
and r.program_application_id = f.application_id
group by
f.application_short_name,
p.concurrent_program_name,
p.user_concurrent_program_name
order by 6 desc
按总运行时间统计(时间单位:分钟):
select
f.application_short_name 应用,
p.concurrent_program_name 程序名,
p.user_concurrent_program_name 描述,
r.argument_text 参数,
actual_start_date 运行开始时间,
actual_completion_date 运行结束时间,
(actual_completion_date - actual_start_date) * 24*60 运行时长_分钟
/*count(*) 次数,
sum(actual_completion_date - actual_start_date) * 24 花费时间_小时,
avg(actual_completion_date - actual_start_date) * 24 平均花费时间_小时,
max(actual_completion_date - actual_start_date) * 24*60 最大运行时间_分钟,
min(actual_completion_date - actual_start_date) * 24*60 最少运行时间_分钟,
avg(actual_completion_date - actual_start_date) * 24*60 平均花费时间_分钟,
sum(actual_start_date - decode(to_char(requested_start_date,‘HH24:MI:SS‘),‘00:00:00‘,request_date,requested_start_date)) * 24 等待时间_小时,
avg(actual_start_date - decode(to_char(requested_start_date,‘HH24:MI:SS‘),‘00:00:00‘,request_date,requested_start_date)) * 24 *3600 平均等待时间_秒*/
from apps.fnd_application f,
applsys.fnd_concurrent_requests r,
apps.fnd_concurrent_programs_vl p
where r.program_application_id = p.application_id
and r.concurrent_program_id = p.concurrent_program_id
and r.status_code =‘C‘
and actual_completion_date between sysdate-7 and sysdate
and p.application_id = f.application_id
and r.program_application_id = f.application_id
and (actual_completion_date - actual_start_date) * 24*60 >5 ----大于5分钟
/*group by
f.application_short_name,
p.concurrent_program_name,
p.user_concurrent_program_name,
r.argument_text*/
order by 7 desc
以上是关于EBS并发请求统计脚本的主要内容,如果未能解决你的问题,请参考以下文章