Purge AWR Snapshots
=========================
- Get the snapshot details :
SELECT MIN(snap_id), min(BEGIN_INTERVAL_TIME),MAX(snap_id), max(BEGIN_INTERVAL_TIME) FROM dba_hist_snapshot;
SELECT MIN(snap_id),MAX(snap_id) FROM dba_hist_snapshot;
- purge snapshot by given range :
First Method:
exec dbms_workload_repository.drop_snapshot_range(881,991);
Second Method:
BEGIN
DBMS_WORKLOAD_REPOSITORY.drop_snapshot_range (
low_snap_id => 881,
high_snap_id => 991);
END;
/
No comments:
Post a Comment