Database Administration (MOSC)

MOSC Banner

How to rebuild the AWR Repository

edited Oct 14, 2016 5:01AM in Database Administration (MOSC) 3 commentsAnswered

I noticed that my SYSAUX tablespace was approaching 15GB. In researching, I ran the awrinfo.sql and  discovered that the SM/AWR occupant space was over 14GB. We only keep 8 days of snapshots. I definitely found orphaned rows in many of the AWR tables. I found 116 SYS tables with the column SNAP_ID. All of the documents I could find only referenced deleting the rows from a few of the larger tables, like the WRH$_EVENT_HISTOGRAM and the WRH$_ACTIVE_SESSION_HISTORY. (Also, the delete statements run forever and generate a lot of redo) I discovered orphaned rows in most of the 116 tables, and want to clean them also. I found

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center