Quantcast
Channel: Remote Database Admin Blog » Database Administration
Viewing all articles
Browse latest Browse all 32

How to maintain SYSAUX Growth

$
0
0

1. Find the components and occupying space

select occupant_name.schema_name,space_usage_kbytes/1024 size_MB from v$sysaux_occupants order by 3 desc;

2. Find from when the statistics data is stored:

select dbms_stats.get_stats_history_availability from dual;

 

3. What is configured to keep the stats retention

select dbms_stats.get_stats_retention from dual;

4. Cleanup some history days

begin

for i in reverse 10..100

loop

dbms_stats.purge_stats(sysdate-1);

end loop;

end;

/

5. Purge All

exec dbms_stats.purge_stats(dbms_stats.purge_all);

6. Appendix

6.1 prediction of the space needed

$ORACLE_HOME\rdbms\admin\utlsyxsz.sql

6.2  Apporximate growth of the tables

$ORACLE_HOME\rdbms\admin\awrinfo.sql

 


Viewing all articles
Browse latest Browse all 32

Trending Articles