rman 刪除v$archive_log檢視裡的記錄(Removing entries in v$archived_log)
Goal
This note provides instructions on how to clear the section in the controlfile which contains data referencing v$archived_log.
For example v$archived_log may contain data from dest_id = 1 & dest_id=2.
This note will guide you through the process of only keeping entries from one distinct location
Solution
It is possible to clear different section of the controlfile.
Section 11 refers to the v$archived_log entries.
SQL>execute sys.dbms_backup_restore.resetCfileSection( 11);
This will clear all files in v$archived_log;
Then using RMAN we can catalog the DEST=1 file back in.
Assume that all archivelogs reside in /recovery_area/archives/
RMAN> catalog start with '/recovery_area/archives/'; ---最好加上末尾的'/'
This will update the controlfile with these entries only.
NOTE:
If you clear a controlfile section using undocumented event, then you
also need to update high_al_recid in the node table for that database to
0 in recovery catalog.For 11g recovery catalog schema and above:update
node set high_al_recid = 0 where db_unique_name = '
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27042095/viewspace-759235/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle V$PGASTAT檢視記錄OracleAST
- 記錄:Bug 8575528 Missing entries in V$MUTEX_SLEEP.locationMutex
- RMAN 中V$ARCHIVED_LOG 中STATUS 為"X" 的檔案處理Hive
- v$sql檢視和v$sqlarea檢視的構建SQL
- v$sql_shared_cursor檢視記錄多版本的資訊SQL
- v$memory_resize_ops 記錄記憶體變更的檢視記憶體
- win10任務檢視記錄無法刪除怎麼辦_win10任務檢視記錄刪除不掉解決方法Win10
- Win10任務檢視怎麼刪除記錄 win10清除任務檢視記錄的教程Win10
- 幾個檢視 v$mystat v$systata v$sessionSession
- v$session 檢視Session
- v$sqlarea,v$sql,v$sqltext三個檢視的區別SQL
- v$sesstat,v$mystat,v$statname和v$sysstat檢視簡介
- Oracle常用的V$檢視Oracle
- v檢視的授權
- 【實驗】通過v$archived_log檢視獲得歸檔日誌檔案的詳細資訊Hive
- 授權某使用者,檢視動態效能檢視的許可權(如v$latch,v$lock,v$sqlarea,v$sql,v$sysstat)SQL
- Oracle動態效能檢視學習筆記(2)_v$sesstat_v$mystat_v$statnameOracle筆記
- win10任務檢視記錄無法刪除的解決辦法Win10
- 檢視 v$sql,v$sqlarea,$sqltext,v$sqltext_with_newlines 的差異SQL
- 【會話】V$SESSION檢視會話Session
- oracle v$sysstat效能檢視Oracle
- Oracle 等待事件V$檢視Oracle事件
- v$resource_limit檢視MIT
- Oracle的v$動態檢視 收藏Oracle
- V$session 檢視的小運用Session
- 自己總結的V$檢視(轉)
- oracle 9i physical standby database 上的v$archived_logOracleDatabaseHive
- 【檢視】V$BGPROCESS與V$PROCESS間的區別與聯絡
- Oracle的V$檢視和DBA_檢視的參考提示Oracle
- v$session_wait和v$session_event檢視SessionAI
- 使用V$SQL_PLAN檢視SQL
- V$SQLAREA 檢視TOP_SQLSQL
- Oracle中效能檢視V$SYSSTATOracle
- v$sql_plan 檢視解析SQL
- v$active_session_history檢視Session
- V$PGASTAT動態效能檢視AST
- 刪除不掉的資料記錄
- 刪除重複id的記錄