Sunday, December 6, 2015

Changing the AWR settings

Changing the snapshot interval and retention time
For changing the snapshot interval and/or the retention time use the following syntax:

exec dbms_workload_repository.modify_snapshot_settings(interval => 60, retention => 525600);
The example printed above changes the retention time to one year (60 minutes per hour * 24 hours a day * 365 days per year = 525600). It does not alter the snapshot interval (60 minutes is the default). If you want to you can alter this as well but keep in mind you need additional storage to do so. Setting the interval value to zero completely disables data collection.

No comments:

Post a Comment