Oracle審計相關對象的遷移

來源:互聯網
上載者:User

標籤: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審計相關對象的遷移

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.