说说RMAN里的obsolete

RMAN> report obsolete;

RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 1
no obsolete backups found

RMAN> backup datafile 1;

Starting backup at 29-MAY-14
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=/u01/app/oracle/oradata/prod/system01.dbf
channel ORA_DISK_1: starting piece 1 at 29-MAY-14
channel ORA_DISK_1: finished piece 1 at 29-MAY-14
piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/amp9g8sf_1_1 tag=TAG20140529T102934 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25
Finished backup at 29-MAY-14

Starting Control File and SPFILE Autobackup at 29-MAY-14
piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/c-248862348-20140529-00 comment=NONE
Finished Control File and SPFILE Autobackup at 29-MAY-14

RMAN> list backup of datafile 1;

List of Backup Sets
===================

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
504     Full    391.63M    DISK        00:00:23     29-MAY-14      
        BP Key: 504   Status: AVAILABLE  Compressed: NO  Tag: TAG20140529T102934
        Piece Name: /u01/app/oracle/product/10.2.0/db_1/dbs/amp9g8sf_1_1
  List of Datafiles in backup set 504
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1588933    29-MAY-14 /u01/app/oracle/oradata/prod/system01.dbf

RMAN> backup datafile 1;

Starting backup at 29-MAY-14
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=/u01/app/oracle/oradata/prod/system01.dbf
channel ORA_DISK_1: starting piece 1 at 29-MAY-14
channel ORA_DISK_1: finished piece 1 at 29-MAY-14
piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/aop9g8u0_1_1 tag=TAG20140529T103024 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:35
Finished backup at 29-MAY-14

Starting Control File and SPFILE Autobackup at 29-MAY-14
piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/c-248862348-20140529-01 comment=NONE
Finished Control File and SPFILE Autobackup at 29-MAY-14

RMAN> list backup of datafile 1;

List of Backup Sets
===================

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
504     Full    391.63M    DISK        00:00:23     29-MAY-14      
        BP Key: 504   Status: AVAILABLE  Compressed: NO  Tag: TAG20140529T102934
        Piece Name: /u01/app/oracle/product/10.2.0/db_1/dbs/amp9g8sf_1_1
  List of Datafiles in backup set 504
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1588933    29-MAY-14 /u01/app/oracle/oradata/prod/system01.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
506     Full    391.63M    DISK        00:00:27     29-MAY-14      
        BP Key: 506   Status: AVAILABLE  Compressed: NO  Tag: TAG20140529T103024
        Piece Name: /u01/app/oracle/product/10.2.0/db_1/dbs/aop9g8u0_1_1
  List of Datafiles in backup set 506
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1588970    29-MAY-14 /u01/app/oracle/oradata/prod/system01.dbf

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           503    17-MAR-14         
  Backup Piece       503    17-MAR-14          /u01/app/oracle/product/10.2.0/db_1/dbs/c-248862348-20140317-0b
Backup Set           504    29-MAY-14         
  Backup Piece       504    29-MAY-14          /u01/app/oracle/product/10.2.0/db_1/dbs/amp9g8sf_1_1
Backup Set           505    29-MAY-14         
  Backup Piece       505    29-MAY-14          /u01/app/oracle/product/10.2.0/db_1/dbs/c-248862348-20140529-00

RMAN> backup datafile 1;

Starting backup at 29-MAY-14
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=/u01/app/oracle/oradata/prod/system01.dbf
channel ORA_DISK_1: starting piece 1 at 29-MAY-14
channel ORA_DISK_1: finished piece 1 at 29-MAY-14
piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/aqp9g90p_1_1 tag=TAG20140529T103153 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:26
Finished backup at 29-MAY-14

Starting Control File and SPFILE Autobackup at 29-MAY-14
piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/c-248862348-20140529-02 comment=NONE
Finished Control File and SPFILE Autobackup at 29-MAY-14

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           503    17-MAR-14         
  Backup Piece       503    17-MAR-14          /u01/app/oracle/product/10.2.0/db_1/dbs/c-248862348-20140317-0b
Backup Set           504    29-MAY-14         
  Backup Piece       504    29-MAY-14          /u01/app/oracle/product/10.2.0/db_1/dbs/amp9g8sf_1_1
Backup Set           505    29-MAY-14         
  Backup Piece       505    29-MAY-14          /u01/app/oracle/product/10.2.0/db_1/dbs/c-248862348-20140529-00
Backup Set           506    29-MAY-14         
  Backup Piece       506    29-MAY-14          /u01/app/oracle/product/10.2.0/db_1/dbs/aop9g8u0_1_1
Backup Set           507    29-MAY-14         
  Backup Piece       507    29-MAY-14          /u01/app/oracle/product/10.2.0/db_1/dbs/c-248862348-20140529-01

时间: 2024-10-26 05:59:44

说说RMAN里的obsolete的相关文章

RMAN 中delete exipired 和 delete obsolete 的区别

elete expired If you run CROSSCHECK, and if RMAN cannot locate the files, then it updates their records in the RMAN repository to EXPIRED status. You can then use the DELETE EXPIRED command to remove records of expired backups and copies from the RMA

rman管理5 维护rman

RMAN常用维护命令 --list  查看备份信息 RMAN> list backup; RMAN> list backup of tablespace users: RMAN> list backup of datafile 2: RMAN> list backup of controlfile; RMAN> list backup of archivelog all; RMAN> list backup of archivelog until time ='sysd

[转]Oracle DB 使用RMAN创建备份2

归档备份:概念 归档备份:概念 如果需要在指定时间内保留联机备份,RMAN 通常会假定用户可能需要在自执行该备份以来到现在之间的任意时间执行时间点恢复.为了满足这一要求,RMAN 会在此时段内保留归档日志.但是,可能仅需要在指定的时间(如两年)内保留特定备份(并使其保持一致和可恢复).用户不打算恢复到自执行该备份以后的某一时间点,只是希望能够正好恢复到执行该备份的确切时间.此外,用户还需要维护保留策略以使备份区井然有序,因此无法使备份恢复到两年前.为了满足保留数据的商业或法律要求,通常需要这么做

RMAN备份数据库与恢复数据库(整库)

1 准备 2 1.1 检查数据库归档状态 2 1.2 RMAN登陆目标 2 2 备份全库 2 2.1 创建备份数据存储目录 2 2.2 RMAN备份全库 2 2.3 试验(备份后,改变数据) 5 2.4 试验(模拟删除控制文件) 7 3 恢复数据库 8 3.1 假定没有设置ORACLE_SID,设置ORACLE_SID启动一个伪实例 8 3.2 恢复SPFILE 9 3.3 恢复控制文件 9 3.4 恢复数据库 10 目录 1    准备 1.1  检查数据库归档状态 [[email prote

Oracle 学习之RMAN(一)

Recovery Manager(RMAN)是Oracle提供的一个实用工具,使用RMAN可以对Oracle数据库进行备份.还原.恢复等.RMAN还可以自动管理Oracle的备份策略.RMAN提供了命令行与图形界面两种访问方式.我们主要学习命令行方式操作RMAN. 进入RMAN非常简单,执行在OS环境下敲入rman命令即可. [[email protected] ~]# su - oracle 11gdg-> rman Recovery Manager: Release 11.2.0.3.0 -

使用RMAN迁移文件系统数据库到ASM

--================================== -- 使用RMAN迁移文件系统数据库到ASM --================================== 在实际的工作过程中,由于ASM磁盘管理的便利性,因此很多时候需要将文件系统的数据库迁移到ASM,本文演示了如何将文件系统数据库迁移到ASM实例. 有关如何创建ASM实例及ASM磁盘管理请参考 创建ASM实例及数据库 ASM 磁盘组及磁盘的管理 使用 ASMCMD 工具管理ASM实例 一.主要步骤(假定AS

RMAN命令DELETE操作总结

本篇总结一下RMAN命令中的DELETE操作,DELETE命令用于删除RMAN备份记录以及相应的物理文件. To delete physical backups and copies as well as do the following: 1: Update their repository records in the target control file to status DELETED 2: Remove their repository records from the recov

转 RMAN: RAC Backup, Restore and Recovery using RMAN

PURPOSE The purpose of this document is to give a quick guide for using RMAN on RAC databases. We will follow this points: 1. Verify the database mode and archive destination.2. Verify connectivity using sqlnet for target and catalog.3. Determine the

db_recovery_file_dest_size 修改大一点及删除归档日志 |转|

今天给客户测 试问题,让客户把数据发过来了.解压缩后一看,他们还是用的oracle 815版本的(他们exp导出时,带了导出日志,从导出日志中看出来是oracle 815版本的),不过没有关系,低版本的exp是可以用高版本的imp导入到高版本数据库中的.一看是导入还很正常,导入到其中某个表的时候,突然就不动 了.一开始我还没有弄明白怎末回事.后来,无意中看到了 计算机管理--事件查看器中 ,有很多报错信息: Archive process error: ORA-16038: log 1 sequ