Tip of the Week
Tip for Week of November 14, 2005

Find the Hard Parse Rate

This tip comes from Vishwamithran S, Manager, DB Support, in Chennai, Tamilnadu, India.

The following script is designed to find the hard parse rate of programs.


select substr(d.host_name,1,8) machine_name,
substr(d.instance_name,1,8) instance_name,
rpad(nvl(program,machine),30,' ') program_name,
round(avg((a.value/b.value)*100),2) ?avg_parse_%?,
round(max((a.value/b.value)*100),2) ?max_parse_%?,
count(*) program_session_count
from v$session s,v$sesstat a,v$sesstat b, v$instance d
where b.value>0 and s.sid=a.sid and a.sid=b.sid and
a.statistic#=(select statistic# from v$statname
where name='parse count (hard)') and b
.statistic#=(select statistic# from v$statname
where name='parse count (total)')
group by substr(d.host_name,1,8),
substr(d.instance_name,1,8),
rpad(nvl(program,machine),30,' ')
order by round(avg((a.value/b.value)*100),2) ;

E-mail this page
Printer View Printer View
Oracle Is The Information Company About Oracle | Oracle RSS Feeds | Careers | Contact Us | Site Maps | Legal Notices | Terms of Use | Privacy