ORA-1653: unable to extend table SYS.AUD$

DBA Notes: 2011/10/10

Cheng Li

 

How to process  ORA-1653

 

From Alert log, we got following error message:

ORA-1653: unable to extend table SYS.AUD$ by 7156 in tablespace SYSTEM

 

The data dictionary of every database has a table named SYS.AUD$, commonly referred to as the database audit trail. Either the database or operating system audit trail can store all audit records generated as the result of statement, privilege, or object auditing.

Using the database audit trail offers the following advantages:

  • You can view selected portions of the audit trail with the predefined audit trail views of the data dictionary.
  • You can use Oracle tools (such as Oracle Reports) to generate audit reports.

Reducing the Size of the Audit Trail:

1- getting into the database

sqlplus /nolog
conn sys as sysdba

If you get into the database, then...

2- Solving the issue

Here you can do whatever you want like:
a) truncate sys.aud$ table... or
b) resize a system datafile to a larger size... or
c) just add a datafile to your system tablespace.

Steps:

Truncate audit trail table

SQL> truncate table sys.aud$;

 

Table truncated.

Create a CRON job to truncate this sys.aud$ table timely such as once a month.

#Added by DBA for truncate table sys.aud$ 00 9 1 * * sh /home/oracle/ctmdba/scripts/truncate_sys_aud_ctmcs1d.sh

01 9 1 * * sh /home/oracle/ctmdba/scripts/truncate_sys_aud_ctmadmd.sh

 

Crontab syntax :
A crontab file has five fields for specifying day , date and time followed by the command to be run at that interval.

*     *     *   *    *        command to be executed

-     -     -   -    -

|     |     |   |    |

|     |     |   |    +----- day of week (0 - 6) (Sunday=0)

|     |     |   +------- month (1 - 12)

|     |     +--------- day of        month (1 - 31)

|     +----------- hour (0 - 23)

+------------- min (0 - 59)

* in the value field above means all legal values as in braces for that column.
The value column can have a * or a list of elements separated by commas. An element is either a number in the ranges shown above or two numbers in the range separated by a hyphen (meaning an inclusive range).
Notes
A. ) Repeat pattern like /2 for every 2 minutes or /10 for every 10 minutes is not supported by all operating systems. If you try to use it and crontab complains it is probably not supported.

B.) The specification of days can be made in two fields: month day and weekday. If both are specified in an entry, they are cumulative meaning both of the entries will get executed .

 

Reference:

 

http://www.cs.umbc.edu/portal/help/oracle8/server.815/a67772/audit.htm

http://adminschoice.com/crontab-quick-reference

fj.png7FR5DUTM00AQ0001.jpg

fj.png7FR5DSUN00AQ0001.jpg

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26136400/viewspace-708892/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26136400/viewspace-708892/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值