[分享]怎样重组SYS.AUD$表_MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 4577 | 回复: 0   主题: [分享]怎样重组SYS.AUD$表        下一篇 
unknsnow
注册用户
等级:上士
经验:272
发帖:78
精华:0
注册:2012-2-10
状态:离线
发送短消息息给unknsnow 加好友    发送短消息息给unknsnow 发消息
发表于: IP:您无权察看 2012-2-10 9:45:30 | [全部帖] [楼主帖] 楼主

适用于:

Oracle Server - Enterprise Edition
Information in this document applies to any platform.
Checked for relevance on 18-Jul-2010


目的:

这个文件解释怎样手动重组SYS.AUD$数据字典表。TRUNCATE操作针对数据字典表SYS.AUD$是不被支持的,针对一些其他的数据字典对象。

oracleRDBMS 10.2开始,重构表SYS.AUD$能够通过DBMS_AUDIT_MGMT包来完成。

运用范围:

当审计设置,它是常见的,很多条目被写入审计跟踪表SYS.AUD $。此表属于由位于表系统的SYS拥有的数据字典。此表的增长超出了是什么水平认为是合理的,因此应定期改组。

You could consider two options:


1. 改变表SYS.AUD$存储的行为,以更好地适应需求。

2.如果这个表经常被选择性的删除,使用重组以最佳填写所有的块。

1. Changing the storage behaviour of SYS.AUD$

---------------------------------------------
Historically Oracle has changed the default storage parameters for the AUD$
table over time. The storage parameters of the AUD$ table in 7.3.4, 8.1.7 and
9.0.1 show that initial and mostly default value for next_extent has grown
from version 7.3.4 to the more current releases.
SQL> connect / as sysdba
Connected.
SQL> col table_name format a7
SQL> select table_name, initial_extent i_extent ,next_extent n_extents
2 , max_extents m_extents
3 , pct_free, pct_used, pct_increase
4 from dba_tables where table_name='AUD$';
-> in V734:
TABLE_N I_EXTENT N_EXTENTS M_EXTENTS PCT_FREE PCT_USED PCT_INCREASE
------- ---------- ---------- ---------- ---------- ---------- ------------
AUD$ 10240 10240 121 10 40 50
-> in V817:
TABLE_N I_EXTENT N_EXTENTS M_EXTENTS PCT_FREE PCT_USED PCT_INCREASE
------- ---------- ---------- ---------- ---------- ---------- ------------
AUD$ 16384 16384 505 10 40 50
-> in V901:
TABLE_N I_EXTENT N_EXTENTS M_EXTENTS PCT_FREE PCT_USED PCT_INCREASE
------- ---------- ---------- ---------- ---------- ---------- ------------
AUD$ 16384 1048576 2147483645 10 40 50
-> in V102(in a locally managed tablespace)
TABLE_N I_EXTENT N_EXTENTS M_EXTENTS PCT_FREE PCT_USED PCT_INCREASE
------- ---------- ---------- ---------- ---------- ---------- ------------
AUD$ 65536 2147483645 10 40


如果你的审计水平和数据字典表的增长一样快,那么你需要考虑改变存储值。

10.2开始,没有哪个版本不需要做这些,当AUD$表本创建并且使用本地管理的表空间。




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论