
UsageandStorageManagementofSYSAUXtablespaceoccupantsSM/AWR,SM/ADVISOR,
SM/OPTSTATandSM/OTHER(文档ID329984.1)
InthisDocument
Purpose
Scope
Details
References
APPLIES TO:
Oracle Database - Enterprise Edition - Version 10.1.0.2 and later
Information in this document applies to any platform.
PURPOSE
This note explains some of the background to the SM/AWR, SM/ADVISOR, SM/OPTSTAT and SM/OTHER occupants in the
SYSAUX tablespace. It explains what kind of information is kept by the different sections, and how to control the contents.
SCOPE
The information in this note is applicable to any database from version 10.1 onwards.
DETAILS
In Oracle10 the SYSAUX tablespace was introduced. We can use the view V$SYSAUX_OCCUPANTS to see which options store
data in the SYSAUX tablespace. For example:
SELECT occupant_name, space_usage_kbytes FROM V$SYSAUX_OCCUPANTS;
Many occupants of the SYSAUX tablespace can be moved freely to another tablespace, but for a number of sections this is not
possible. This note will discuss the SM/AWR, SM/ADVISOR, SM/OPTSTAT and SM/OTHER occupants and their space usage.
NOTE:
These 4 SYSAUX occupants cannot be moved out of the SYSAUX tablespace.
For determining which occupants can be moved, please refer to
Note 243246.1 - SYSAUX New Mandatory Tablespace in Oracle 10g and higher
SM/AWR
This refers to the Automatic Workload Repository (a new feature in Oracle10).
Data in this section is retained for a certain amount of time (default 8 days) and the amount of data is also affected by the
number of AWR snapshots that are taken (default every hour).
We can check the current settings of this through the DBA_HIST_WR_CONTROL view:
select * from DBA_HIST_WR_CONTROL;
The retention time and snapshot interval can be adjusted through the
dbms_workload_repository.modify_snapshot_settings procedure.
Depending on how much activity (including queries) there is in a database, the size of the snapshot will vary. Therefore in
general "ups and downs" in the space usage are normal. For example, making the AWR snapshot interval larger should on
average reduce the amount of space needed for SM/AWR. However, it also means that there is more chance of varying sizes
because at a certain time you might just catch a busy period, which you might miss at other times. Also a shorter retention
time will on average reduce the amount of space needed for this, but it also makes any differences in the amount of collected
data on certain days more pronounced (for example a very different usage pattern during the weekend).
So in general we can say that we can adjust the parameters to increase or decrease the average amount of data stored, but
文档 329984.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_...
第1页 共2页 2017/3/16 13:24
评论