oracle 10g 歸檔日誌清除
正常情況下應該在rman下刪除archivelog
rman>delete archivelog all;
以下為手動刪除archivelog物理檔案後要進行的操作
1, 手工清除後,資料庫中還會存有記錄:
select * from v$flash_recovery_area_usage;
2, 然後:
rman target /
crosscheck archivelog all;
delete expired archivelog all;
說明:2是修復1的辦法
用rman
run {
allocate channel ch1 type disk format '/目錄/a_log_%d_%p_%c_%s';
backup archivelog all # Backs up all archived redo logs.
delete input; # Optionally, delete the input logs
release channel ch1;
}
========================================================
list backup of archivelog all;
restore archivelog all;
restore archivelog sequence seqnumber;
===歸檔當前日誌============
alter system archive log current;
===============================================================
ORA-32004: obsolete and/or deprecated parameter(s) specified
ALTER SYSTEM RESET log_archive_start SCOPE=SPFILE SID='*';
===============================================================
===資料庫啟用歸檔模式=====================
SQL> startup mount;
SQL> alter database archivelog;
SQL> alter system set log_archive_dest_1='E:\ORACLE\ora92\database\archive' scope=both;
SQL> alter system set log_archive_dest_2='service=standby' scope=both;
SQL> alter system set log_archive_start=true scope=spfile;
SQL> alter database open;
SQL> archive log list;
=============================================================================
rman>delete archivelog all;
以下為手動刪除archivelog物理檔案後要進行的操作
1, 手工清除後,資料庫中還會存有記錄:
select * from v$flash_recovery_area_usage;
2, 然後:
rman target /
crosscheck archivelog all;
delete expired archivelog all;
說明:2是修復1的辦法
用rman
run {
allocate channel ch1 type disk format '/目錄/a_log_%d_%p_%c_%s';
backup archivelog all # Backs up all archived redo logs.
delete input; # Optionally, delete the input logs
release channel ch1;
}
========================================================
list backup of archivelog all;
restore archivelog all;
restore archivelog sequence seqnumber;
===歸檔當前日誌============
alter system archive log current;
===============================================================
ORA-32004: obsolete and/or deprecated parameter(s) specified
ALTER SYSTEM RESET log_archive_start SCOPE=SPFILE SID='*';
===============================================================
===資料庫啟用歸檔模式=====================
SQL> startup mount;
SQL> alter database archivelog;
SQL> alter system set log_archive_dest_1='E:\ORACLE\ora92\database\archive' scope=both;
SQL> alter system set log_archive_dest_2='service=standby' scope=both;
SQL> alter system set log_archive_start=true scope=spfile;
SQL> alter database open;
SQL> archive log list;
=============================================================================
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12361284/viewspace-620160/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle RMAN 清除歸檔日誌Oracle
- Oracle RMAN清除歸檔日誌Oracle
- oracle 10g 歸檔日誌Oracle 10g
- oracle歸檔日誌Oracle
- Oracle 歸檔日誌Oracle
- 【Oracle】歸檔日誌管理-設定歸檔日誌路徑以及歸檔日誌冗餘Oracle
- rman清除歸檔日誌經典資料
- 歸檔oracle alert日誌Oracle
- Oracle歸檔日誌清理Oracle
- oracle之 Oracle歸檔日誌管理Oracle
- Linux/Unix shell 指令碼清除歸檔日誌檔案Linux指令碼
- ORACLE 歸檔日誌資訊sqlOracleSQL
- oracle刪除歸檔日誌Oracle
- Oracle歸檔日誌管理技巧Oracle
- oracle archive log 歸檔日誌OracleHive
- Oracle歸檔日誌刪除Oracle
- 當ORACLE歸檔日誌滿後如何正確刪除歸檔日誌Oracle
- oracle歸檔日誌過滿清理Oracle
- ORACLE RMAN 還原歸檔日誌Oracle
- Oracle archive log 歸檔日誌管理OracleHive
- 歸檔日誌
- 配置RMAN清除已應用到備庫的歸檔日誌
- oracle11G歸檔日誌管理Oracle
- oracle 歸檔日誌開啟,關閉Oracle
- ORA-38708與清除Recovery Area中的歸檔日誌
- 歸檔日誌挖掘
- PostgreSQL 歸檔日誌SQL
- 10g修改歸檔日誌路徑的問題
- 【REDO】Oracle 日誌挖掘,分析歸檔日誌線上日誌主要步驟Oracle
- 【SQL】Oracle 歸檔日誌暴增原因分析SQLOracle
- oracle 刪除過期的歸檔日誌Oracle
- oracle dg 歸檔日誌恢復情況Oracle
- Oracle歸檔日誌暴增排查優化Oracle優化
- Oracle基礎 04 歸檔日誌 archivelogOracleHive
- ORACLE 歸檔日誌開啟關閉方法Oracle
- oracle 歸檔日誌的小知識點Oracle
- oracle dataguard 自動刪除歸檔日誌Oracle
- Oracle RAC中使用RMAN管理歸檔日誌Oracle