- 最后登录
- 2013-3-5
- 在线时间
- 2 小时
- 威望
- 0
- 金钱
- 17
- 注册时间
- 2013-1-30
- 阅读权限
- 10
- 帖子
- 2
- 精华
- 0
- 积分
- 0
- UID
- 884
|
1#
发表于 2013-2-18 15:19:15
|
查看: 4609 |
回复: 1
本帖最后由 wangpugood 于 2013-2-18 16:47 编辑
问题描述:oracle运行的时候产生非常多的aud文件,adump/目录下产生大量*.aud文件(大约20多个G),沾满磁盘空间,具体审计文件如下:
[root@linux5 adump]# cat jnmp_ora_31999_2e.aud
Audit file /u01/app/oracle/admin/jnmp/adump/jnmp_ora_31999_2e.aud
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1
System name: Linux
Node name: linux5
Release: 2.6.18-308.el5
Version: #1 SMP Fri Jan 27 17:17:51 EST 2012
Machine: x86_64
Instance name: jnmp
Redo thread mounted by this instance: 1
Oracle process number: 26
Unix process pid: 31999, image: oracle@linux5
Fri Dec 21 19:42:08 2012 +08:00
LENGTH: "222"
SESSIONID:[7] "2929124" ENTRYID:[1] "1" USERID:[4] "JNMP" ACTION:[3] "102" RETURNCODE:[1] "0" LOGOFF$PREAD:[1] "0" LOGOFF$LREAD:[2] "20" LOGOFF$LWRITE:[1] "4" LOGOFF$DEAD:[1] "0" DBID:[10] "2651492528" SESSIONCPU:[1] "0"
----------------------------------------------------------
JNMP用户只有connect和resource2个角色。
show parameter audit;看到如下信息
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
audit_file_dest string /u01/app/oracle/admin/jnmp/adu
mp
audit_sys_operations boolean FALSE
audit_syslog_level string
audit_trail string DB
-----------------------------------------------------------
alertlog里发现大量以下报错
Sun Feb 03 09:45:33 2013
ORA-1653: unable to extend table SYS.AUD$ by 128 in tablespace SYSTEM
ORA-1653: unable to extend table SYS.AUD$ by 8192 in tablespace SYSTEM
ORA-1653: unable to extend table SYS.AUD$ by 128 in tablespace SYSTEM
ORA-1653: unable to extend table SYS.AUD$ by 8192 in tablespace SYSTEM
-----------------------------------------------------------------------------
疑问1:为何会产生这么多的审计文件呢? 看日志应该是DB里的审计表空间满了所以记录到OS里了,但是还是不知道为什么会产生这些审计。
疑问2:该如何解决这个问题呢? 把audit_trail 设成none,或者定期删除或归档audit文件应该可以解决吧。或者能否让他自己只保留最近的一段时间的审计呢。
|
|