Move aud$和fga_log$資料到其它Tablespace
1.檢視AUD$和FGA_LOG$所在表空間
SELECT table_name, tablespace_name FROM dba_tables WHERE table_name IN ('AUD$', 'FGA_LOG$') ORDER BY table_name;
SELECT table_name, tablespace_name FROM dba_tables WHERE table_name IN ('AUD$', 'FGA_LOG$') ORDER BY table_name;
2.檢視AUD$和FGA_LOG$資料量
select segment_name,bytes/1024/1024 size_in_megabytes from dba_segments where segment_name in ('AUD$','FGA_LOG$');
select segment_name,bytes/1024/1024 size_in_megabytes from dba_segments where segment_name in ('AUD$','FGA_LOG$');
3.建立audit_tbs表空間
create tablespace audit_tbs datafile '/u01/app/oracle/oradata/prod/audit_tbs01.dbf' size 100M autoextend on;
create tablespace audit_tbs datafile '/u01/app/oracle/oradata/prod/audit_tbs01.dbf' size 100M autoextend on;
4.move AUD$和FGA_LOG$
SQL> BEGIN
DBMS_AUDIT_MGMT.set_audit_trail_location(
audit_trail_type => DBMS_AUDIT_MGMT.AUDIT_TRAIL_AUD_STD,--this moves table AUD$
audit_trail_location_value => 'AUDIT_TBS');
END;
/
SQL> BEGIN
DBMS_AUDIT_MGMT.set_audit_trail_location(
audit_trail_type => DBMS_AUDIT_MGMT.AUDIT_TRAIL_AUD_STD,--this moves table AUD$
audit_trail_location_value => 'AUDIT_TBS');
END;
/
SQL> BEGIN
DBMS_AUDIT_MGMT.set_audit_trail_location(
audit_trail_type => DBMS_AUDIT_MGMT.AUDIT_TRAIL_FGA_STD,--this moves table FGA_LOG$
audit_trail_location_value => 'AUDIT_TBS');
END;
/
DBMS_AUDIT_MGMT.set_audit_trail_location(
audit_trail_type => DBMS_AUDIT_MGMT.AUDIT_TRAIL_FGA_STD,--this moves table FGA_LOG$
audit_trail_location_value => 'AUDIT_TBS');
END;
/
5.檢視move後的AUD$和FGA_LOG$所在表空間
SELECT table_name, tablespace_name FROM dba_tables WHERE table_name IN ('AUD$', 'FGA_LOG$') ORDER BY table_name;
SELECT table_name, tablespace_name FROM dba_tables WHERE table_name IN ('AUD$', 'FGA_LOG$') ORDER BY table_name;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17997/viewspace-773317/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- How To Move The DB Audit Trails To A New TablespaceAI
- 批量move tablespace 指令碼範例指令碼
- How to Move or Copy a Tablespace to Another Database (61)Database
- 表及索引 move tablespace 常用指令碼索引指令碼
- 關於move tablespace的問題總結
- How to move Oracle Spatial objects from SYSAUX tablespace to a user defined tablespace [ID 1119758.1OracleObjectUX
- 將lob型別的index移動到其它tablespace型別Index
- move tablespace: ORA-07445:exception encountered: core dump [qcdlgtd()+182]Exception
- oracle 分割槽表move和包含分割槽表的lob moveOracle
- EMCC 13新增其它主機和資料庫資料庫
- excel導資料到PostgresqlExcelSQL
- proc插入資料到資料庫資料庫
- Flinkx實時和離線同步Postgresql資料到KafkaSQLKafka
- ALTER TABLE MOVE和SHRINK SPACE區別
- 遷移sqlserver資料到MongoDbSQLServerMongoDB
- 上傳資料到內表
- 史丹佛兔子和其它圖形學模型資料下載模型
- 檢視資料庫中tablespace和datafile的使用情況。資料庫
- Move to GithubGithub
- Oracle move和shrink釋放高水位空間Oracle
- oracle11g_基表I_DEPENDENCY1之move tablespace移動表空間到非system_Oracle
- 從OSS裝載資料到PostgreSQLSQL
- 使用mysqlimport匯入資料到mysqlMySqlImport
- python 插入日期資料到OraclePythonOracle
- 資料到hadoop的遷移Hadoop
- 利用NPOI匯出資料到Execl
- 下載內表資料到excelExcel
- android快取資料到本地Android快取
- Mac和Linux之間傳輸資料,並匯出mysql資料到本地MacLinuxMySql
- tablespace和datafile之間的關係
- move.jsJS
- tablespace 大檔案,undo,temp tablespace
- Django資料從sqlite遷移資料到MySQLDjangoSQLiteMySql
- 關於aud$物件相關處理物件
- Elasticsearch preload資料到快取(qbit)Elasticsearch快取
- 使用Flume消費Kafka資料到HDFSKafka
- 大資料到底應該如何學?大資料
- SQLServer匯出匯入資料到MySQLServerMySql