免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5868 | 回复: 10
打印 上一主题 下一主题

SYSAUX表空间管理问题请教 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-08-10 22:56 |只看该作者 |倒序浏览
新建立了一个oracle10g数据库实例,现在还没有建立表,数据库运行一周,SYSAUX主要增加了5% , 这个是否能够设置让其增长慢一点呢?
现在就是这么几类信息增加很快:
SM/AWR           +47%
LOGMNR           +12%
SM/OPTSTAT     +19%
SM/ADVISOR       +5%


这个表空间会不会无限制增长下去,一般会多大呢?希望有经验的朋友介绍一下

论坛徽章:
3
处女座
日期:2014-11-05 11:02:4315-16赛季CBA联赛之四川
日期:2015-12-10 14:37:4015-16赛季CBA联赛之天津
日期:2017-09-08 18:39:34
2 [报告]
发表于 2011-08-10 23:42 |只看该作者
为什么不把自动扩展给关闭掉呢?
不然会引起问题的

论坛徽章:
0
3 [报告]
发表于 2011-08-11 07:23 |只看该作者
本帖最后由 tacsoft 于 2011-08-11 07:55 编辑

本文摘自
Oracle® Database Administrator's Guide
10g Release 2 (10.2)
Part Number B14231-02

SYSAUX表空间

在创建数据库时,SYSAUX表空间作为SYSTEM的辅助表空间被安装。一些以前创建和使用独立表空间的数据库组件现在使用SYSAUX表空间。

如果SYSAUX表空间不可用,核心数据库功能将继续运行,数据库使用SYSAUX的特性将失败,一些功能会受到限制。

监控SYSAUX中的组件
你可以使用V$SYSAUX_OCCUPANTS视图监控SYSAUX表空间中的组件。这个视图列出下面SYSAUX表空间的信息:
●组件的名称
●组件的说明
●架构名字
●移动过程
●当前空间使用率

查看组件维护信息

将组件移入或移出SYSAUX表空间
你在安装时选择不想要驻留在SYSAUX中的组件,如果你以后决定组件移动到指定表空间,你可以移动该组件,在视图V$SYSAUX_OCCUPANTS中查看指定的组件,执行移动。

例如,例如,如果默认安装Oracle Ultra Search到默认表空间SYSAUX中,以后你发现Ultra Search占用太多的空间。为缓解SYSAUX的空间压力,你可以调用V$SYSAUX_OCCUPANTS视图中的一个移动程序移动Ultra Search到另一个表空间。

这个移动程序也可以从另一个表空间移动组件到SYSAUX表空间。

控制SYSAUX的体积
SYS表空间中组件的数量(见表Table 2-2),还有这些组件占用的总空间量,这是组件占用的空间,反之,数据库工作负载的性质取决于所使用的特性或功能。

表Table 2-2

占用SYSAUX表空间最多的是自动负载信息库(Automatic Workload Repository,AWR)。AWR占用的空间取决于几个因素,特定时间内系统中的活动会话数,快照的间隔,历史数据保留周期。典型情况,平均30个并发活动会话的AWR大约需要200MB到300MB的空间。通过修改快照的间隔和历史记录的保留周期你可以控制AWR的体积。

另一个占用SYSAUX表空间较多的是EM信息库,这个仓库是用于Oracle EM数据库控制来存储元数据,信息库的体积取决于数据库的活动情况和信息库中存储的相关配置信息。

在SYSAUX表空间中其它数据库组件占用空间增长与它们相关的特性(例如,Oracle UltraSearch, Oracle文本, Oracle流)是否使用有关。如果这些特性没有被使用,这些组件对于SYSAUX空间没有显著影响。

论坛徽章:
0
4 [报告]
发表于 2011-08-11 07:35 |只看该作者
本文摘自
Oracle® Database Administrator's Guide
10g Release 2 (10.2)
Part Number B14231-02

控制SYSAUX的体积(Controlling the Size of the SYSAUX Tablespace)
SYS表空间中组件的数量(见表Table 2-2),还有这些组件占用的总空间量,这是组件占用的空间,反之,数据库工作负载的性质取决于所使用的特性或功能。

(The SYSAUX tablespace is occupied by a number of database components (see Table 2-2), and its total size is governed by the space consumed by those components. The space consumed by the components, in turn, depends on which features or functionality are being used and on the nature of the database workload.)
占用SYSAUX表空间最多的是自动负载信息库(Automatic Workload Repository,AWR)。AWR占用的空间取决于几个因素,特定时间内系统中的活动会话数,快照的间隔,历史数据保留周期。典型情况,平均30个并发活动会话的AWR大约需要200MB到300MB的空间。通过修改快照的间隔和历史记录的保留周期你可以控制AWR的体积。管理AWR快照间隔和保留时间的更多资料参考Oracle 数据库性能调优手册。

(The largest portion of the SYSAUX tablespace is occupied by the Automatic Workload Repository (AWR). The space consumed by the AWR is determined by several factors, including the number of active sessions in the system at any given time, the snapshot interval, and the historical data retention period. A typical system with an average of 30 concurrent active sessions may require approximately 200 to 300 MB of space for its AWR data. You can control the size of the AWR by changing the snapshot interval and historical data retention period. For more information on managing the AWR snapshot interval and retention period, please refer to Oracle Database Performance Tuning Guide.)

另一个占用SYSAUX表空间较多的是EM信息库,这个仓库是用于Oracle EM数据库控制来存储元数据,信息库的体积取决于数据库的活动情况和信息库中存储的相关配置信息。
(Another major occupant of the SYSAUX tablespace is the embedded Enterprise Manager (EM) repository. This repository is used by Oracle Enterprise Manager Database Control to store its metadata. The size of this repository depends on database activity and on configuration-related information stored in the repository.)

在SYSAUX表空间中其它数据库组件占用空间增长与它们相关的特性(例如,Oracle UltraSearch, Oracle文本, Oracle流)是否使用有关。如果这些特性没有被使用,这些组件对于SYSAUX空间没有显著影响。
(Other database components in the SYSAUX tablespace will grow in size only if their associated features (for example, Oracle UltraSearch, Oracle Text, Oracle Streams) are in use. If the features are not used, then these components do not have any significant effect on the size of the SYSAUX tablespace.)

论坛徽章:
0
5 [报告]
发表于 2011-08-11 07:56 |只看该作者
其中最关键是AWR的管理,特定时间内系统中的活动会话数,快照的间隔,历史数据保留周期。

论坛徽章:
0
6 [报告]
发表于 2011-08-11 10:06 |只看该作者
回复 5# tacsoft


    其中最关键是AWR的管理,特定时间内系统中的活动会话数,快照的间隔,历史数据保留周期。

=============================================================================
这个快照间隔是怎么判断呢,修改快照的间隔是否会影响 数据库的应用使用的的稳定性呢?

论坛徽章:
0
7 [报告]
发表于 2011-08-11 12:39 |只看该作者
跟数据库的应用没有直接关系,AWR主要用于数据库监控。

论坛徽章:
0
8 [报告]
发表于 2011-08-11 13:12 |只看该作者
本文摘自
Oracle® Database 2 Day DBA
10g Release 2 (10.2)
Part Number B14196-02

方法一:修改默认ADDM操作(Modifying Default ADDM Behavior)
ADDM的操作和分析基于自动负载信息库(Automatic Workload Repository ,AWR),它收集性能统计信息,其数据存储在数据库中。默认安装后,AWR每隔一小时获取一次快照,删除7天以上的旧数据。你可以修改快照的频率和数据的保留期限。

(ADDM behavior and analysis is based on the Automatic Workload Repository (AWR), which collects system performance statistics and stores the data in the database. After default installation, the AWR captures data every hour in the form of a snapshot and purges data over seven days old. You can modify both the snapshot frequency and the data retention period as desired.)

在负载信息库页你可以查看和修改这些设置:

(You can view and alter these settings on the Workload Repository page:)

•快照保留周期,初始设置为7天。AWR自动删除超过周期的快照,例外情况是永久保留快照。典型情况是创建快照集的性能分析统计周期。

(The retention period for snapshots. This is initially set to 7 days. AWR automatically purges any snapshot older than the retention period, with the exception preserved snapshots that are retained for ever. A preserved snapshot set is typically created to define a reference period for performance analysis.)

•快照的时间间隔,默认建议值为一小时。

(The interval for snapshots. The default and recommended value is one hour.)

浏览此页,进入数据库管理页(Database Administration page),在统计管理(Statistics Management)下,选择自动负载信息库(Automatic Workload Repository)。

(To navigate to this page, from the Database Administration page, under Statistics Management, select Automatic Workload Repository.)

改变这些设置,单击负载信息库( Workload Repository)页上的编辑(Edit),进入编辑设置(Edit Settings)页,输入新的快照周期和新的系统快照间隔,单击OK。

(To change either of these settings, click Edit on the Workload Repository page. The Edit Settings page appears. Enter a new Snapshot retention period or new System Snapshot Interval. Click OK.)

方法二:ADDM的手动运行(Running ADDM Manually)

论坛徽章:
59
2015七夕节徽章
日期:2015-08-24 11:17:25ChinaUnix专家徽章
日期:2015-07-20 09:19:30每周论坛发贴之星
日期:2015-07-20 09:19:42ChinaUnix元老
日期:2015-07-20 11:04:38荣誉版主
日期:2015-07-20 11:05:19巳蛇
日期:2015-07-20 11:05:26CU十二周年纪念徽章
日期:2015-07-20 11:05:27IT运维版块每日发帖之星
日期:2015-07-20 11:05:34操作系统版块每日发帖之星
日期:2015-07-20 11:05:36程序设计版块每日发帖之星
日期:2015-07-20 11:05:40数据库技术版块每日发帖之星
日期:2015-07-20 11:05:432015年辞旧岁徽章
日期:2015-07-20 11:05:44
9 [报告]
发表于 2011-08-11 16:59 |只看该作者
这个是系统认证用的表空间。

论坛徽章:
0
10 [报告]
发表于 2011-08-12 23:35 |只看该作者
awr快照你可以定期清理或者修改下保留时间期限
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP