SELECT * FROM (SELECT BYTES, segment_name, segment_type, owner FROM dba_segments WHERE tablespace_name = ‘SYSTEM’ ORDER BY BYTES DESC) WHERE ROWNUM < 10;
aud$表及FGA_LOG$数据量
1
select segment_name,bytes/1024/1024 size_in_megabytes from dba_segments where segment_name in (‘AUD$’,‘FGA_LOG$’);
查询表,truncate该表释放
1 2 3
select count(*) from aud$; truncate table aud$; select count(*) from aud$;
--sys用户procedure create or replace procedure sp_trunc_audit_log is begin execute immediate ‘truncate table aud$’; end; 11授权 grant execute on sp_trunc_audit_log to system;
11system用户procedure create or replace procedure sp_job_trunc_audit_log is begin sys.sp_trunc_audit_log; end;