I tried to compute the audit log table usage using the following steps:
- Truncate all the audit log table data (i.e.
AUD$
) - Perform test case that inserts and update data, also delete statement but it wont delete anything.
Measure the byte used on the dba segment.
select tablespace_name,bytes from dba_segments where tablespace_name ='SYSTEM' and SEGMENT_NAME = 'AUD$';
Recompute of statistical data.
Retrieve the byte used in the statistical data.
select NUM_ROWS * AVG_ROW_LEN as BYTE_USED from DBA_TABLES where TABLE_NAME = 'AUD$';
The value I get from #3 is more than twice that of #5, Why is it allocating too much?