Sunday 10 January 2016

How to check Gather schema stats run in last 30 days

How many times GSS run in last 30 days in oracle.

Script:

set linesize 200
select  r.request_id,r.actual_start_date,r.phase_code,r.status_code,r.actual_completion_date,argument_text from
apps.fnd_concurrent_programs_vl p, apps.fnd_concurrent_requests r
where p.concurrent_program_id = r.concurrent_program_id
and p.application_id = r.program_application_id
and p.user_concurrent_program_name like '%Gather Schema Statistics%'
and  r.actual_start_date >= sysdate-30 order by r.requested_start_date;

Note: Run this query in Toad (or) sql developer for clear data.

Output:

No comments:

Post a Comment