Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

top_n_sql in AWR

AKPTMay 31 2017 — edited Jun 1 2017

Hello Gyus

In my database TOPNSQL is set as DEFAULT which means top 30 sqls will be flushed for each SQL criteria for each snapshot.

After that i used below command to display 50 queries in AWR for each criteria :-

SQL> exec dbms_workload_repository.awr_set_report_thresholds(top_n_sql=>50,top_n_sql_max=>50);

PL/SQL procedure successfully completed.

SQL> @?/rdbms/admin/awrrpt.sql

Now my questions is :- If oracle is flushing top 30 sql for each snapshot then how am i getting 50 sqls in AWR for different criteria.? Please correct me i am getting any concepts in wrong way .

Database Version : 12.1.0.2

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 29 2017
Added on May 31 2017
2 comments
884 views