ORA-DB-ONE

AWR – Base Line

Posted in AWR Report by jackyoon on November 6, 2011

* When you optimizing your database using AWR, you can create “Base Line” to compare the values with other snapshots.

–> For example, if you want to compare statistics before and after the turning.
SQL> BEGIN
DBMS_WORKLOAD_REPOSITORY.CREATE_BASELINE(
START_SNAP_ID => 33873,
END_SNAP_ID => 33883,
BASELINE_NAME => ‘GOOD_SNAP’ );
END;
/

* Drop Base Line ( You can drop the baseline if you don’t need it any more.)
–> Baseline snapshopt doest not automatally purged, So, you should manually drop the baseline when you don’t need it anymore.

SQL> BEGIN
DBMS_WORKLOAD_REPOSITORY.DROP_BASELINE(
BASELINE_NAME => ‘GOOD_SNAP’,
CASCADE => TRUE );
END;
/

* Review Baseline information
SQL> SELECT * FROM DBA_HIST_BASELINE;

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.