RMAN 中V$ARCHIVED_LOG 中STATUS 為"X" 的檔案處理
記錄一下
[@more@]今天發現RMAN 中V$ARCHIVED_LOG 中STATUS 為"X" 的檔案,想起是因為手動刪掉錯幾個日誌造成的,透過如下的方法把RMAN 中的記錄也刪掉
test:oracle] /oracle/home> rman target /
Recovery Manager: Release 10.2.0.2.0 - Production on Wed Feb 7 14:31:47 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: PRD (DBID=2733534212)
RMAN> crosscheck archivelog all;
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=333 devtype=DISK
validation failed for archived log
archive log filename=/testarch2/1_1067_612495174.dbf recid=1032 stamp=61360214
8
validation failed for archived log
archive log filename=/testarch2/1_1068_612495174.dbf recid=1033 stamp=61360250
9
validation failed for archived log
alidation failed for archived log
archive log filename=/testarch2/1_1073_612495174.dbf recid=1038 stamp=61360322
6
validation failed for archived log
archive log filename=/testarch2/1_1074_612495174.dbf recid=1039 stamp=61361285
9
validation failed for archived log
archive log filename=/testarch2/1_1075_612495174.dbf recid=1040 stamp=61361315
1
validation failed for archived log
archive log filename=/testarch2/1_1076_612495174.dbf recid=1041 stamp=61361334
3
validation failed for archived log
archive log filename=/testarch2/1_1077_612495174.dbf recid=1042 stamp=61361389
1
validation failed for archived log
archive log filename=/testarch2/1_1078_612495174.dbf recid=1043 stamp=61361574
1
validation failed for archived log
archive log filename=/testarch2/1_1079_612495174.dbf recid=1044 stamp=61361599
9
RMAN> delete expired archivelog all;
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=333 devtype=DISK
List of Archived Log Copies
Key Thrd Seq S Low Time Name
------- ---- ------- - --------- ----
1032 1 1067 X 03-FEB-07 /testarch2/1_1067_612495174.dbf
1033 1 1068 X 03-FEB-07 /testarch2/1_1068_612495174.dbf
1034 1 1069 X 03-FEB-07 /testarch2/1_1069_612495174.dbf
1035 1 1070 X 03-FEB-07 /testarch2/1_1070_612495174.dbf
Do you really want to delete the above objects (enter YES or NO)? YES
deleted archive log
archive log filename=/testarch2/1_1067_612495174.dbf recid=1032 stamp=61360214
8
deleted archive log
archive log filename=/testarch2/1_1068_612495174.dbf recid=1033 stamp=61360250
9
deleted archive log
archive log filename=/testarch2/1_1069_612495174.dbf recid=1034 stamp=61360266
7
RMAN> report obsolete;
RMAN retention policy will be applied to the command
RMAN retention policy is set to recovery window of 28 days
Report of obsolete backups and copies
Type Key Completion Time Filename/Handle
-------------------- ------ ------------------ --------------------
Backup Set 19 24-JAN-07
Backup Piece 19 24-JAN-07 arch612727822_21_1
Backup Set 20 24-JAN-07
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7318139/viewspace-898158/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 清除Oracle控制檔案中的歸檔資訊v$archived_logOracleHive
- java中 檔案壓縮處理Java
- 對於CSV檔案中{,}和{"}的處理
- Python3中檔案處理Python
- 如何在 .NET Core WebApi 中處理 MultipartFormDataContent 中的檔案WebAPIORM
- Linux中利用csvquote處理csv檔案Linux
- XML檔案處理中增加xmlns問題XML
- Python中可靠地處理檔案Python
- RMAN備份時候檔案壞塊的處理
- SAP CRM Product Sales status在中介軟體中的處理邏輯
- Python中檔案I/O高效操作處理的技巧Python
- Hadoop 中處理小檔案的方式, Avro應用HadoopVR
- RMAN中各種檔案的恢復方法
- 中斷處理和GIC-V2
- SpringMVC原始碼分析:POST請求中的檔案處理SpringMVC原始碼
- 熱備份與RMAN備份中split block的處理BloC
- Oracle RMAN備份中對壞塊(corrupt block)的處理OracleBloC
- SHELL技巧:處理檔名中的那些空格
- KeyboardMaestro_PathFinder_依次處理多個選中檔案
- rman 刪除v$archive_log檢視裡的記錄(Removing entries in v$archived_log)HiveREM
- [筆記]解析v$log/v$logfile中status列值的含義筆記
- C++中的檔案輸入/輸出(5):二進位制檔案的處理 (轉)C++
- 【實驗】通過v$archived_log檢視獲得歸檔日誌檔案的詳細資訊Hive
- 利用RMAN修復資料檔案中的壞塊
- 處理專案檢視中的選擇
- 請問RMAN備份異機還原,備份之後的歸檔日誌在RMAN中怎麼處理?
- vue中當資料為空時的處理Vue
- [R]檔案處理
- bat處理檔案BAT
- bat檔案處理BAT
- UNIX的檔案處理(轉)
- web專案中圖示的前端處理方案Web前端
- springboot專案中的異常處理Spring Boot
- sql server 2008中執行bat批處理檔案SQLServerBAT
- ASP.NET:MVC中檔案上傳與地址變化處理ASP.NETMVC
- Swift中URL處理中的注意點Swift
- java中的事件處理Java事件
- oracle 什麼時候才回收v$session 中status='KILLED'的程式OracleSession