WEB开发网
开发学院数据库Oracle Rman Crosscheck删除失效归档 阅读

Rman Crosscheck删除失效归档

 2008-12-16 13:02:47 来源:WEB开发网   
核心提示: RMAN> delete expired archivelog all;released channel: ORA_DISK_1allocated channel: ORA_DISK_1channel ORA_DISK_1: sid=12 devtype=DISKList of Ar

  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    190  17-DEC-04     /data1/oracle/orabak/arch545106665.arc
Backup Set      191  20-DEC-04    
 Backup Piece    191  20-DEC-04     /data1/oracle/orabak/arch_AVATAR2_20041220_194
Archive Log     2973  20-DEC-04     /opt/oracle/oradata/avatar2/archive/1_2985.dbf
Archive Log     2971  20-DEC-04     /opt/oracle/oradata/avatar2/archive/1_2984.dbf
.....
Archive Log     2705  17-DEC-04     /opt/oracle/oradata/avatar2/archive/1_2717.dbf
Archive Log     2704  17-DEC-04     /opt/oracle/oradata/avatar2/archive/1_2716.dbf
Archive Log     2703  17-DEC-04     /opt/oracle/oradata/avatar2/archive/1_2715.dbf
Archive Log     2702  17-DEC-04     /opt/oracle/oradata/avatar2/archive/1_2714.dbf

4.使用delete obsolete命令删除过期备份:

Tags:Rman Crosscheck 删除

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接