重庆思庄Oracle、Redhat认证学习论坛

标题: 如何从控制文件中去除存在的备份信息 [打印本页]

作者: 郑全    时间: 2024-3-25 19:01
标题: 如何从控制文件中去除存在的备份信息
可能有些特殊原因,备份备份到NFS了,然后,去执行CROSSCHECK BACKUP,非常慢,需要几个小时才出来,其他操作,备份也还可以,LIST BACKUP 也可以秒出,这个时候,想从控制文件中把这个备份信息去掉,怎么操作?

RMAN> list backup of database;


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


BS Key  Type LV Size       Device Type Elapsed Time Completion Time   
------- ---- -- ---------- ----------- ------------ -------------------
7799    Full    391.05M    DISK        00:05:53     2024-03-24 05:13:58
        BP Key: 7815   Status: AVAILABLE  Compressed: YES  Tag: CDBFULL
        Piece Name: /dbak/cdb_bak/whole_20240324_js2mfjtl_1_1_CDB.bak
  List of Datafiles in backup set 7799
  File LV Type Ckp SCN    Ckp Time            Abs Fuz SCN Sparse Name
  ---- -- ---- ---------- ------------------- ----------- ------ ----
  3       Full 282303837  2024-03-24 05:08:05              NO    +DATA/CDB/DATAFILE/sysaux01.dbf
  8       Full 282303837  2024-03-24 05:08:05              NO    +DATA/CDB/DATAFILE/undotbs2.350.1131740169

BS Key  Type LV Size       Device Type Elapsed Time Completion Time   
------- ---- -- ---------- ----------- ------------ -------------------
7800    Full    39.26M     DISK        00:05:05     2024-03-24 05:19:10
        BP Key: 7816   Status: AVAILABLE  Compressed: YES  Tag: CDBFULL
        Piece Name: /dbak/cdb_bak/whole_20240324_jv2mfk8t_1_1_CDB.bak
  List of Datafiles in backup set 7800
  Container ID: 6, PDB Name: TD_CUS
  File LV Type Ckp SCN    Ckp Time            Abs Fuz SCN Sparse Name
  ---- -- ---- ---------- ------------------- ----------- ------ ----
  18      Full 282306012  2024-03-24 05:14:05              NO    +DATA/CDB/E720C99EF5DB0A43E05335D3640AB996/DATAFILE/system.293.1131740169
  20      Full 282306012  2024-03-24 05:14:05              NO    +DATA/CDB/E720C99EF5DB0A43E05335D3640AB996/DATAFILE/users.284.1131740169



使用
change backuppiece 'xxxx' uncatalog;即可

RMAN> change backuppiece '/dbak/cdb_bak/whole_20240324_js2mfjtl_1_1_CDB.bak' uncatalog;

uncataloged backup piece
backup piece handle=/dbak/cdb_bak/whole_20240324_js2mfjtl_1_1_CDB.bak RECID=7815 STAMP=1164431285
Uncataloged 1 objects


RMAN> change backuppiece '/dbak/cdb_bak/whole_20240324_jv2mfk8t_1_1_CDB.bak' uncatalog;

uncataloged backup piece
backup piece handle=/dbak/cdb_bak/whole_20240324_jv2mfk8t_1_1_CDB.bak RECID=7816 STAMP=1164431645
Uncataloged 1 objects









欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2