ORACLE备份集删除问题(利用BE 2010备份)
大家好,我用BE 2010备份的ORACLE数据库,先使用CROSSCHECK BACKUPSET,然后利用LIST BACKUPSET可以看到好多备份集,实际这些备份集我已手工删掉,为什么还可以看到呢?另外在利用DELETE命令删除备份集出现问题,请参考下面的信息,望高手给以指点,谢谢!
RMAN> crosscheck backupset;
using channel ORA_DISK_1
RMAN>list backupset;
List of Archived Logs in backup set 56
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 239 3005920 01-FEB-11 3016592 15-FEB-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
57 Incr 0 772.50M SBT_TAPE 00:07:04 15-FEB-11
BP Key: 57 Status: AVAILABLE Compressed: NO Tag: TAG20110215T115255
Handle: BE_2tm4nn4n_1_1 Media:
List of Datafiles in backup set 57
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
1 0 Incr 3016860 15-FEB-11 +DATA/test/datafile/system.256.733318485
2 0 Incr 3016860 15-FEB-11 +DATA/test/datafile/undotbs1.258.733318485
3 0 Incr 3016860 15-FEB-11 +DATA/test/datafile/sysaux.257.733318485
4 0 Incr 3016860 15-FEB-11 +DATA/test/datafile/users.259.733318485
5 0 Incr 3016860 15-FEB-11 +DATA/test/datafile/example.269.733318631
6 0 Incr 3016860 15-FEB-11 +DATA/test/datafile/ceshi.271.733405923
7 0 Incr 3016860 15-FEB-11 +DATA/test/datafile/ceshi.272.733406097
8 0 Incr 3016860 15-FEB-11 +DATA/test/datafile/ceshi.273.733406115
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
58 Incr 0 7.00M SBT_TAPE 00:06:20 15-FEB-11
BP Key: 58 Status: AVAILABLE Compressed: NO Tag: TAG20110215T115255
Handle: BE_2um4nni0_1_1 Media:
Control File Included: Ckp SCN: 3018482 Ckp time: 15-FEB-11
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
59 26.00M SBT_TAPE 00:06:20 15-FEB-11
BP Key: 59 Status: AVAILABLE Compressed: NO Tag: TAG20110215T120630
Handle: BE_2vm4nnu6_1_1 Media:
List of Archived Logs in backup set 59
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 240 3016592 15-FEB-11 3018618 15-FEB-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
60 Full 7.00M SBT_TAPE 00:06:19 15-FEB-11
BP Key: 60 Status: AVAILABLE Compressed: NO Tag: TAG20110215T121256
Handle: BE_30m4noa8_1_1 Media:
Control File Included: Ckp SCN: 3019436 Ckp time: 15-FEB-11
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
61 3.25M SBT_TAPE 00:12:45 15-FEB-11
BP Key: 61 Status: AVAILABLE Compressed: NO Tag: TAG20110215T122116
Handle: BE_31m4nops_1_1 Media:
List of Archived Logs in backup set 61
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 241 3018618 15-FEB-11 3020914 15-FEB-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
62 Incr 0 772.50M SBT_TAPE 00:06:56 15-FEB-11
BP Key: 62 Status: AVAILABLE Compressed: NO Tag: TAG20110215T123403
Handle: BE_32m4nphr_1_1 Media:
List of Datafiles in backup set 62
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
1 0 Incr 3021353 15-FEB-11 +DATA/test/datafile/system.256.733318485
2 0 Incr 3021353 15-FEB-11 +DATA/test/datafile/undotbs1.258.733318485
3 0 Incr 3021353 15-FEB-11 +DATA/test/datafile/sysaux.257.733318485
4 0 Incr 3021353 15-FEB-11 +DATA/test/datafile/users.259.733318485
5 0 Incr 3021353 15-FEB-11 +DATA/test/datafile/example.269.733318631
6 0 Incr 3021353 15-FEB-11 +DATA/test/datafile/ceshi.271.733405923
7 0 Incr 3021353 15-FEB-11 +DATA/test/datafile/ceshi.272.733406097
8 0 Incr 3021353 15-FEB-11 +DATA/test/datafile/ceshi.273.733406115
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
63 Incr 0 7.00M SBT_TAPE 00:06:19 15-FEB-11
BP Key: 63 Status: AVAILABLE Compressed: NO Tag: TAG20110215T123403
Handle: BE_33m4npv4_1_1 Media:
Control File Included: Ckp SCN: 3021503 Ckp time: 15-FEB-11
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
64 512.00K SBT_TAPE 00:06:19 15-FEB-11
BP Key: 64 Status: AVAILABLE Compressed: NO Tag: TAG20110215T124735
Handle: BE_34m4nqb7_1_1 Media:
List of Archived Logs in backup set 64
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 242 3020914 15-FEB-11 3021752 15-FEB-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
65 Full 7.00M SBT_TAPE 00:06:19 15-FEB-11
BP Key: 65 Status: AVAILABLE Compressed: NO Tag: TAG20110215T125401
Handle: BE_35m4nqn9_1_1 Media:
Control File Included: Ckp SCN: 3021893 Ckp time: 15-FEB-11
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
66 41.25M SBT_TAPE 00:12:40 19-FEB-11
BP Key: 66 Status: AVAILABLE Compressed: NO Tag: TAG20110219T081918
Handle: BE_36m51s47_1_1 Media:
List of Archived Logs in backup set 66
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 243 3021752 15-FEB-11 3082862 19-FEB-11
1 244 3082862 19-FEB-11 3085265 19-FEB-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
67 Incr 0 772.50M SBT_TAPE 00:07:05 19-FEB-11
BP Key: 67 Status: AVAILABLE Compressed: NO Tag: TAG20110219T083205
Handle: BE_37m51ss5_1_1 Media:
List of Datafiles in backup set 67
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
1 0 Incr 3086283 19-FEB-11 +DATA/test/datafile/system.256.733318485
2 0 Incr 3086283 19-FEB-11 +DATA/test/datafile/undotbs1.258.733318485
3 0 Incr 3086283 19-FEB-11 +DATA/test/datafile/sysaux.257.733318485
4 0 Incr 3086283 19-FEB-11 +DATA/test/datafile/users.259.733318485
5 0 Incr 3086283 19-FEB-11 +DATA/test/datafile/example.269.733318631
6 0 Incr 3086283 19-FEB-11 +DATA/test/datafile/ceshi.271.733405923
7 0 Incr 3086283 19-FEB-11 +DATA/test/datafile/ceshi.272.733406097
8 0 Incr 3086283 19-FEB-11 +DATA/test/datafile/ceshi.273.733406115
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
68 Incr 0 7.00M SBT_TAPE 00:06:19 19-FEB-11
BP Key: 68 Status: AVAILABLE Compressed: NO Tag: TAG20110219T083205
Handle: BE_38m51t9f_1_1 Media:
Control File Included: Ckp SCN: 3086843 Ckp time: 19-FEB-11
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
69 2.25M SBT_TAPE 00:06:20 19-FEB-11
BP Key: 69 Status: AVAILABLE Compressed: NO Tag: TAG20110219T084537
Handle: BE_39m51tlh_1_1 Media:
List of Archived Logs in backup set 69
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 245 3085265 19-FEB-11 3086991 19-FEB-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
70 Full 7.00M SBT_TAPE 00:06:19 19-FEB-11
BP Key: 70 Status: AVAILABLE Compressed: NO Tag: TAG20110219T085204
Handle: BE_3am51u1k_1_1 Media:
Control File Included: Ckp SCN: 3087130 Ckp time: 19-FEB-11
RMAN> delete backupset;
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=81 devtype=DISK
RMAN> delete backupset 61;
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of delete command at 02/19/2011 12:03:16
RMAN-06160: no backup pieces found for backup set key: 61
RMAN> delete obsolete;
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 1
using channel ORA_DISK_1
Deleting the following obsolete backups and copies:
Type Key Completion Time Filename/Handle
-------------------- ------ ------------------ --------------------
Control File Copy 32 17-NOV-10 /u01/app/control.ctl
Backup Set 21 31-JAN-11
Backup Piece 21 31-JAN-11 BE_1em3gptj_1_1
Backup Set 22 31-JAN-11
Backup Piece 22 31-JAN-11 BE_1fm3gq6f_1_1
Backup Set 23 31-JAN-11
Backup Piece 23 31-JAN-11 BE_1gm3gqas_1_1
Backup Set 25 31-JAN-11
Backup Piece 25 31-JAN-11 BE_1km3gtff_1_1
Backup Set 26 31-JAN-11
Backup Piece 26 31-JAN-11 BE_1lm3gtso_1_1
Backup Set 28 31-JAN-11
Backup Piece 28 31-JAN-11 BE_1nm3gukt_1_1
Backup Set 30 31-JAN-11
Backup Piece 30 31-JAN-11 BE_1sm3h8li_1_1
Backup Set 31 31-JAN-11
Backup Piece 31 31-JAN-11 BE_1tm3h92r_1_1
Backup Set 33 31-JAN-11
Backup Piece 33 31-JAN-11 BE_1vm3h9r4_1_1
Backup Set 40 01-FEB-11
Backup Piece 40 01-FEB-11 BE_2bm3hj37_1_1
Backup Set 41 01-FEB-11
Backup Piece 41 01-FEB-11 BE_2cm3hjgh_1_1
Backup Set 43 01-FEB-11
Backup Piece 43 01-FEB-11 BE_2em3hk8m_1_1
Backup Set 46 01-FEB-11
Backup Piece 46 01-FEB-11 BE_2hm3i4so_1_1
Backup Set 47 01-FEB-11
Backup Piece 47 01-FEB-11 BE_2im3i4tf_1_1
Backup Set 48 01-FEB-11
Backup Piece 48 01-FEB-11 BE_2jm3i5b0_1_1
Backup Set 50 01-FEB-11
Backup Piece 50 01-FEB-11 BE_2mm3i63a_1_1
Backup Set 52 01-FEB-11
Backup Piece 52 01-FEB-11 BE_2om3k2hn_1_1
Backup Set 53 01-FEB-11
Backup Piece 53 01-FEB-11 BE_2pm3k2v0_1_1
Backup Set 55 01-FEB-11
Backup Piece 55 01-FEB-11 BE_2rm3k3n5_1_1
Backup Set 57 15-FEB-11
Backup Piece 57 15-FEB-11 BE_2tm4nn4n_1_1
Backup Set 58 15-FEB-11
Backup Piece 58 15-FEB-11 BE_2um4nni0_1_1
Backup Set 60 15-FEB-11
Backup Piece 60 15-FEB-11 BE_30m4noa8_1_1
Backup Set 62 15-FEB-11
Backup Piece 62 15-FEB-11 BE_32m4nphr_1_1
Backup Set 63 15-FEB-11
Backup Piece 63 15-FEB-11 BE_33m4npv4_1_1
Backup Set 65 15-FEB-11
Backup Piece 65 15-FEB-11 BE_35m4nqn9_1_1
Backup Set 68 19-FEB-11
Backup Piece 68 19-FEB-11 BE_38m51t9f_1_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of delete command at 02/19/2011 12:04:55
RMAN-06091: no channel allocated for maintenance (of an appropriate type)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
照版主说的试试看吧
rman target /
delete expired backupset all
试一试,如果all不是参数的话,请加backupset的编号
RMAN-06091: no channel allocated for maintenance (of an appropriate type)
试一试这个:
run {
allocate channel for maintenance device type disk;
crosscheck backup;
delete obsolete;
}