Oracle 遷移與審計相關表和索引的表空間

2021-08-26 08:04:34 字數 598 閱讀 5328

由於aud$表等審計相關的表存放在system表空間,因此為了不影響系統的效能,保護system表空間,最好把aud$移動到其他的表空間上。可以使用下面的語句來進行移動:

[oracle@cent4 ~]$ sqlplus / as sysdba sql> alter table aud$ move tablespace users; table altered. sql> alter index i_aud1 rebuild online tablespace users; index altered. sql> alter table audit$ move tablespace users; table altered. sql> alter index i_audit rebuild online tablespace users; index altered. sql> alter table audit_actions move tablespace users; table altered. sql> alter index i_audit_actions rebuild online tablespace users; index altered.

主要是要遷移aud$, i_aud1

Oracle 遷移與審計相關表和索引的表空間

由於aud 表等審計相關的表存放在system表空間,因此為了不影響系統的效能,保護system表空間,最好把aud 移動到其他的表空間上。可以使用下面的語句來進行移動 oracle cent4 sqlplus as sysdba sql alter table aud move tablespac...

ORACLE 表和索引遷移表空間

表做空間遷移時,使用如下語句 例1 alter table tb name move tablespace tbs name 索引表空間做遷移,使用如下語句 例2 alter index index name rebuild tablespace tbs name 對於含有lob欄位的表,在建立時,...

oracle遷移表空間

可遷移表空間 使用可遷移表空間 transportable tablespaces 的特性在資料庫之間移動大量資料,效能比export import和unload load要快很多,因為它遷移表空間只需要複製資料檔案和插入表空間元資料到目標資料庫中。遷移表空間對以下應用特別有用 分階段將oltp的資...