출처 : https://support.oracle.com
Applies to:
Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 10.2.0.4 - Release: 10.1 to 10.2
Information in this document applies to any platform.
Symptoms
SYSAUX tablespace is growing abnormally and consuming so much of space.
AWR is identified to be consuming more space.
Cause
v$sysaux_occupants shows the following:-
********************************************************
(1b) SYSAUX occupants space usage (v$sysaux_occupants)
********************************************************
|
| Occupant Name Schema Name Space Usage
| -------------------- -------------------- ----------------
| SM/AWR SYS 30,821.9 MB <= Heavy usage
| EM SYSMAN 54.2 MB
| SM/OPTSTAT SYS 38.8 MB
| SM/ADVISOR SYS 38.3 MB
| SM/OTHER SYS 23.6 MB
Solution
SQL> select * from DBA_HIST_WR_CONTROL;
DBID SNAP_INTERVAL RETENTION TOPNSQL
---------- ---------------------------------------- ---------------------------------------- ----------
3406903167 +00000 01:00:00.0 +00004 00:00:00.0 DEFAULT <= Retention is 4 days
SQL> select min(snap_id),MAX(snap_id) from dba_hist_snapshot;
MIN(SNAP_ID) MAX(SNAP_ID)
------------ ------------
8377 17324 <= Huge snapshots are there. Can be dropped.
SQL> show parameter statistics
NAME TYPE VALUE
------------------------------------ ----------- -----------------------------
statistics_level string ALL <= Should be set TYPICAL
timed_os_statistics integer 5
timed_statistics boolean TRUE
Check whether the retention period is set too high. In this case, it is set to 4 and so no need to modify the retention.
If it is set to high value, then consider reducing the retention period to avoid growing of space.
By default, it is set to 7 days.
The new retention time is specified in minutes.
SQL> execute DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTINGS(retention => 4320);
Here 4320 is 3*24*60 ( Convert the days to minutes). For 3 days, it 4320 minutes.
Next thing is to check the amount of snapshots have been generated and available.
If this is too high, then try to drop the unwanted snapshots to reclaim the space.
SQL> exec dbms_workload_repository.drop_snapshot_range(low_snap_id,high_snap_id);
low_snap_id : The low snapshot id of snapshots to drop.
high_snap_id : The high snapshot id of snapshots to drop.
Then check whether the statistics_level parameter is set to typical.
If it is set to ALL, please change it to TYPICAL. Because statistics_level=ALL will gather lot of additional information in AWR repository which would consume more space.
Most of the cases, if the statistics_level is set to TYPICAL then the growth would be stopped.
SQL> alter system set statistics_level=typical;
'::: DB ::: > Oracle' 카테고리의 다른 글
윈도우 7 64비트 오라클 10g client 설치 및 토드 설정 (2) | 2011.05.12 |
---|---|
Comparison between LOBs, and LONG & LONG Raw Datatypes (0) | 2011.04.23 |
10g Scheduling Feature (0) | 2011.04.23 |
LONG TYPE을 LOB TYPE으로 CONVERSION 하는 방법(TO_LOB) (0) | 2011.04.18 |
[ORA-3136] Warning Inbound Connection Timed Out (0) | 2011.03.21 |