Professional Documents
Culture Documents
John Kanagaraj
DB Soft Inc
Session #206
Speaker Qualifications
• John is a Principal Consultant @ DB Soft Inc.
• Co-author of “Oracle Database 10g Insider Solutions”
• Executive Editor for IOUG’s SELECT Journal
• Technical Editors for various books
• Presents papers at IOUG, OAUG and OOW
• Published in OAUG Insight, SQL Server Magazine
• Oracle ACE
What this presentation is about
open top_5;
dbms_output.put_line('Top 5 Timed Events');
dbms_output.put_line('~~~~~~~~~~~~~~~~~~');
LOOP
fetch top_5 into t_event, t_waits, t_time, t_pctwtt;
exit when top_5%NOTFOUND;
dbms_output.put_line(t_event ||' '||to_char(t_waits,99999990) ||' '||
to_char(t_time,99999990) || ' ' || to_char(t_pctwtt*100, 90.90));
END LOOP;
end;
Backporting to 8i and 9i – ADDM