ORA-DB-ONE

AWR – Modify snapshot settings

Posted in AWR Report by jackyoon on November 6, 2011

– Default –
AWR Snapshot interval : 60
AWR Snapshot retention: 7 days
Number of Top SQL Sampling: 30

– Change to –
AWR Snapshot interval : 30
AWR Snapshot retention: 30 days
Number of Top SQL Sampling: 50

SQL> BEGIN
DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTINGS(
INTERVAL => 30, RETENTION => 30*24*60, TOPNSQL => ’50′ );
EDN;
/

– Review AWK setting –
SQL> SELECT * FROM DBA_HIST_WR_CONTROL;

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.