IT貓撲網(wǎng):您身邊最放心的安全下載站! 最新更新|軟件分類|軟件專題|手機版|論壇轉(zhuǎn)貼|軟件發(fā)布

您當前所在位置: 首頁數(shù)據(jù)庫Oracle → Rman Crosscheck刪除失效歸檔

Rman Crosscheck刪除失效歸檔

時間:2015-06-28 00:00:00 來源:IT貓撲網(wǎng) 作者:網(wǎng)管聯(lián)盟 我要評論(0)

??? 當手工刪除了歸檔日志以后,Rman備份會檢測到日志缺失,從而無法進一步繼續(xù)執(zhí)行。

??? 所以此時需要手工執(zhí)行crosscheck過程,之后Rman備份可以恢復正常。

??? 1.Crosscheck日志

$ rman target /
Recovery Manager: Release 9.2.0.4.0 - 64bit Production
Copyright (c) 1995, 2002, Oracle Corporation.? All rights reserved.
connected to target database: AVATAR2 (DBID=2480694409)

RMAN> crosscheck archivelog all;



using target database controlfile instead of recovery catalog

allocated channel: ORA_DISK_1

channel ORA_DISK_1: sid=25 devtype=DISK

validation failed for archived log

archive log filename=/opt/oracle/oradata/avatar2/archive/1_2714.dbf recid=2702 stamp=545107659

validation failed for archived log

archive log filename=/opt/oracle/oradata/avatar2/archive/1_2715.dbf recid=2703 stamp=545108268

...........

validation failed for archived log

archive log filename=/opt/oracle/oradata/avatar2/archive/1_2985.dbf recid=2973 stamp=545399327

validation succeeded for archived log

archive log filename=/opt/oracle/oradata/avatar2/archive/1_2986.dbf recid=2974 stamp=545400820

validation succeeded for archived log

archive log filename=/opt/oracle/oradata/avatar2/archive/1_2987.dbf recid=2975 stamp=545401757

validation succeeded for archived log

archive log filename=/opt/oracle/oradata/avatar2/archive/1_2988.dbf recid=2976 stamp=545402716

validation succeeded for archived log

archive log filename=/opt/oracle/oradata/avatar2/archive/1_2989.dbf recid=2977 stamp=545403661

validation succeeded for archived log

archive log filename=/opt/oracle/oradata/avatar2/archive/1_2990.dbf recid=2978 stamp=545404946

validation succeeded for archived log

archive log filename=/opt/oracle/oradata/avatar2/archive/1_2991.dbf recid=2979 stamp=545406220

Crosschecked 278 objects



RMAN>

??? 2.使用delete expired archivelog all 命令刪除所有過期歸檔日志:

RMAN> delete expired archivelog all;



released channel: ORA_DISK_1

allocated channel: ORA_DISK_1

channel ORA_DISK_1: sid=12 devtype=DISK



List of Archived Log Copies

Key???? Thrd Seq???? S Low Time? Name

------- ---- ------- - --------- ----

376???? 1??? 2714???? X 23-NOV-04 =/opt/oracle/oradata/avatar2/archive/1_2714.dbf

.....

??? 3.簡要介紹一下report obsolete命令

??? 使用report obsolete命令報告過期備份

  • RMAN> report obsolete;

    RMAN retention policy will be applied to the command

    RMAN retention policy is set to redundancy 1

    Report of obsolete backups and copies

    Type???? Key??? Completion Time??? Filename/Handle

    -------------------- ------ ------------------ --------------------

    Backup Set???? 125??? 01-NOV-04??

    ? Backup Piece 125??? 01-NOV-04??? /data1/oracle/orabak/full_1_541045804

    Backup Set???? 131??? 04-NOV-04??

    ? Backup Piece 131??? 04-NOV-04??? /data1/oracle/orabak/full_AVATAR2_20041104_131

    ....

    Backup Set???? 173??? 06-DEC-04??

    ? Backup Piece 173??? 06-DEC-04??? /data1/oracle/orabak/full_AVATAR2_20041206_173

    Backup Set???? 179??? 11-DEC-04??

    ? Backup Piece 179??? 11-DEC-04??? /data1/oracle/orabak/arch544588206.arc

    .....

    ? Backup Piece 189??? 17-DEC-04??? /data1/oracle/orabak/arch545106606.arc

    Backup Set???? 190??? 17-DEC-04??

    ? Backup Piece

    關(guān)鍵詞標簽:Rman Crosscheck

    相關(guān)閱讀

    文章評論
    發(fā)表評論

    熱門文章 Oracle中使用alter table來增加,刪除,修改列的語法 Oracle中使用alter table來增加,刪除,修改列的語法 oracle中使用SQL語句修改字段類型-oracle修改SQL語句案例 oracle中使用SQL語句修改字段類型-oracle修改SQL語句案例 誤刪Oracle數(shù)據(jù)庫實例的控制文件 誤刪Oracle數(shù)據(jù)庫實例的控制文件 為UNIX服務器設(shè)置Oracle全文檢索 為UNIX服務器設(shè)置Oracle全文檢索

    相關(guān)下載

      人氣排行 oracle中使用SQL語句修改字段類型-oracle修改SQL語句案例 Oracle中使用alter table來增加,刪除,修改列的語法 ORACLE SQL 判斷字符串是否為數(shù)字的語句 ORACLE和SQL語法區(qū)別歸納(1) oracle grant 授權(quán)語句 ORACLE修改IP地址后如何能夠使用 如何加速Oracle大批量數(shù)據(jù)處理 Oracle刪除表的幾種方法