標籤:bfs alt class HERE man upd ref creat auto
目錄
在日常的資料庫維護中,經常出現因為資料庫登入審計的功能啟動,導致system資料表空間被用滿.從而出現異常,一般建議把aud$相關對象遷移到其他資料表空間,從而避免system被用完的風險.
步驟如下:
建立審計用的資料表空間
[email protected]> create tablespace audit_data logging datafile ‘/oracle/oradata/kyeupdbfs/audit_data.dbf‘ 2 size 20m autoextend off extent management local segment space management auto;Tablespace created.
線上遷移
[email protected]> alter table aud$ move tablespace audit_data;Table altered.[email protected]> alter table audit$ move tablespace audit_data;Table altered.[email protected]> alter table audit_actions move tablespace audit_data;Table altered.[email protected]> alter index i_audit rebuild online tablespace audit_data;Index altered.[email protected]> alter index i_audit_actions rebuild online tablespace audit_data;Index altered.
查詢結果
```
select table_name,tablespace_name from dba_tables where table_name like ‘%AUD%‘;
select index_name,tablespace_name from dba_indexes where table_name like ‘%AUD%‘;
select table_name,tablespace_name from dba_tables where tablespace_name=‘AUDIT_DATA‘;
select index_name,tablespace_name from dba_indexes where tablespace_name=‘AUDIT_DATA‘;
Oracle審計相關對象的遷移