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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
{:3_196:}
这个应该不用修改的,而且BE备份ORACLE是不需要编辑脚本的
如果是临时修改,可以在备份脚本中进行修改通道类型。
看看再说吧
rman
show all可以看到默认备份通道,然后可以修改成需要的。
20110219_8cd7e59025a4ea0110ba1guMJqimqjwv.jpg (170.62 KB, 下载次数: 8)
下载附件
2011-03-12 22:08 上传
感谢回复,另外想问是:我在利用BE 2010备份ORACLE数据库时,是把数据库备份到了磁盘文件夹内,而BE 2010备份时默认分配的通道类型为SBT_TAPE,如何更改该类型为DISK呢?
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: Recovery Manager: Release 10.2.0.1.0 - Production on Wed Jan 5 13:14:57 2011
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg:
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: Copyright (c) 1982, 2005, Oracle. All rights reserved.
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg:
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: 4>
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: 5> # -----------------------------------------------------------------
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: 6> # RMAN command section
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: 7> # -----------------------------------------------------------------
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: 8>
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: 9> RUN {
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: 10> ALLOCATE CHANNEL ch0
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: 11> TYPE 'SBT_TAPE';
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: 12> SEND 'BSA_SERVICE_HOST=192.168.1.18,NBBSA_TOTAL_STREAMS=1,NBBSA_JOB_COOKIE={7D8CC1A3-6D95-4AC5-9E66-F89A6796F9CA},NBBSA_DB_DEVICE_NAME=Oracle-Linux::\db_mastermaster';
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: 13> BACKUP
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: 14> INCREMENTAL LEVEL=0
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: 15> FORMAT 'BE_%U'
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: 16> DATABASE FORCE PLUS ARCHIVELOG FORCE NOT BACKED UP;
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: 17> BACKUP CURRENT CONTROLFILE
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: 18> FORMAT 'BE_%U';
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: 19>
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: 20> RELEASE CHANNEL ch0;
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: 21> }
b63cfba0 Wed Jan 5 13:14:57 2011 : procMsg: 22>
b63cfba0 Wed Jan 5 13:14:58 2011 : procMsg: connected to target database: TEST (DBID=2031465002)
b63cfba0 Wed Jan 5 13:14:58 2011 : procMsg:
b63cfba0 Wed Jan 5 13:14:58 2011 : procMsg: using target database control file instead of recovery catalog
b63cfba0 Wed Jan 5 13:14:58 2011 : procMsg: allocated channel: ch0
b63cfba0 Wed Jan 5 13:14:58 2011 : procMsg: channel ch0: sid=80 devtype=SBT_TAPE
b63cfba0 Wed Jan 5 13:14:58 2011 : procMsg: channel ch0: Symantec/BackupExec/1.1.0
b63cfba0 Wed Jan 5 13:14:59 2011 : procMsg:
b63cfba0 Wed Jan 5 13:14:59 2011 : procMsg: sent command to channel: ch0
b63cfba0 Wed Jan 5 13:14:59 2011 : procMsg:
b63cfba0 Wed Jan 5 13:14:59 2011 : procMsg:
b63cfba0 Wed Jan 5 13:14:59 2011 : procMsg: Starting backup at 05-JAN-11
通道类型不对,确实是disk的。
最好不要手动删除。
手动删除只是删除OS上文件,而没有删除控制文件中的RMAN信息,
这个时候CROSSCHECK一下。你已经操作了。
但是报错是因为你的备份是在磁带上的(SBT_TAPE )