Delete expired backup times no channel allocated for maintenance (of a appropriate type)

Source: Internet
Author: User

Problem Description:AIX platform Oracle 10G, today found that the database archive space is full, after crosscheck, execute delete force obsolete times no channel allocated for maintenance ( of an appropriate type) error,

Cause analysis: The query may be due to a different device type backup in the previous backup process, resulting in a failure to delete the expired backup

Solution:

first excerpt a pair of Crosscheck the description

When Archivelog or backup is manually deleted, you need to run Crosscheck. This command ensures that the data recorded in the Recoverycatalog or control file is consistent with the files on the hard disk.

For files that cannot be found, Crosscheck will mark its status as expired. You can then run the deleteexpired command to delete the related records from the Rman repository and the files on the hard disk.

If some files are incorrectly marked as expired, you can reset these files to available state when you confirm that the files are present and run Crosscheckbackup again.

That is, for a file that does not already exist on the hard disk, delete expired deletes the related record in Rman. For backups that have exceeded Retentionpolicy, delete obsolete from the hard disk and tape devices and delete the records from Rman.

At the end of execution

Crosscheck backup;

Crossscheck backuppiece;

Crosscheck Archivelog All;

Delete obsolete; reported Rman-06091:no Channel allocated formaintenance (of an appropriate type)

In this study, the previous backup was partially backed up directly on the hard disk, and the other part was backed up on tape via DP. This error occurs because there is data on the tape, but not for the tape type of channel.

Rman> allocate channel for maintenance typedisk;

Allocated Channel:ora_maint_disk_6

Channel ora_maint_disk_6:sid=137 Devtype=disk

rman> Delete expired Archivelog all;

Specification does not match no archive log in the Recoverycatalog

This should be normal, no expired log found.

rman> Delete obsolete;

RMAN retention policy would be applied to the command

RMAN retention policy is set to redundancy 1

Deleting the following obsolete backups and copies:

Type Key Completiontime Filename/handle

-------------------- ------ --------------------------------------

BackupSet 2499 2011-11-24 11:39:28

Backuppiece 2511 2011-11-24 11:39:28swt-oracle-full<gz_7:768051562:1>.dbf

...

BackupSet 2564 2011-11-26 21:18:57

Backuppiece 2567 2011-11-26 21:18:57/backup/arc0dmsld1e

...

BackupSet 2950 2011-12-14 14:45:40

Backuppiece 2955 2011-12-14 14:45:40/u01/oracle/flash_recovery_area/gz/backupset/2011_12_14/o1_mf_annnn_ Tag20111214t144526_7gjkjly0_.bkp

...

rman-00571:===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK follows===============

rman-00571:===========================================================

Rman-03002:failure of Delete command at 12/15/2011 17:05:42

Rman-06091:no Channel allocated for maintenance (of anappropriate type)

There's been a mistake.

The workaround is to delete the expired backup data on the hard disk and on the tape separately.

Rman>delete Obsolete Device Type disk;--Specifies the unit types so that data from the specified device can be deleted

Delete an expired backup on your hard disk

RMAN retention policy would be applied to the command

RMAN retention policy is set to redundancy 1

Deleting the following obsolete backups and copies:

Type Key Completiontime Filename/handle

-------------------- ------ --------------------------------------

BackupSet 2509 2011-11-24 14:28:32

Backuppiece 2521 2011-11-24 14:28:32/backup/sp

BackupSet 2564 2011-11-26 21:18:57

Backuppiece 2567 2011-11-26 21:18:57/backup/arc0dmsld1e

BackupSet 2565 2011-11-26 21:19:20

Backuppiece 2568 2011-11-26 21:19:20/backup/arc0emsld29

Control FileCopy 2709 2011-11-26 21:42:33/var/opt/omni/tmp/ctrl_gz.dbf

BackupSet 2885 2011-11-27 20:44:15

Backuppiece 2888 2011-11-27 20:44:15/backup/db_full_31.1

Control FileCopy 2898 2011-11-27 20:43:57/backup/bj.ctl

BackupSet 2886 2011-11-27 20:44:21

Backuppiece 2889 2011-11-27 20:44:21/backup/db_full_32.1

BackupSet 2950 2011-12-14 14:45:40

Backuppiece 2955 2011-12-14 14:45:40/u01/oracle/flash_recovery_area/gz/backupset/2011_12_14/o1_mf_annnn_ Tag20111214t144526_7gjkjly0_.bkp

BackupSet 2951 2011-12-14 14:45:46

...

Really want to delete the above objects (enter YES orno)? YES

Deleted backup Piece

Backup Piece handle=/backup/db_full_31.1 recid=31stamp=768343384

Deleted control File copy

Control file copy Filename=/backup/bj.ctl recid=4stamp=768343437

Deleted backup Piece

Backup Piece handle=/backup/db_full_32.1 recid=32stamp=768343461

Deleted backup Piece

Backup piecehandle=/u01/oracle/flash_recovery_area/gz/backupset/2011_12_14/o1_mf_annnn_tag20111214t144526_ 7gjkjly0_.bkprecid=38 stamp=769877137

Deleted backup Piece

...

Deleted objects

Deleted backup Piece

Backup piece handle=/backup/sp recid=11 stamp=768061712

Deleted backup Piece

Backup Piece handle=/backup/arc0dmsld1e recid=13stamp=768259119

Deleted backup Piece

Backup Piece handle=/backup/arc0emsld29 recid=14stamp=768259146

Deleted 3 Objects

This is a success.

Rman> Allocate channel formaintenance device type ' sbt_tape ' PARMS ' env= (Ob2bartype=oracle8,ob2appname=gz, Ob2barlist=swt-oracle-full) ';

The parameters in the following parms are the same as those in the Rman script at backup time

Allocated Channel:ora_maint_sbt_tape_7

Channel ora_maint_sbt_tape_7:sid=136 Devtype=sbt_tape

Channel Ora_maint_sbt_tape_7:data Protector a.06.11/243

rman> Delete obsolete;

RMAN retention policy would be applied to the command

RMAN retention policy is set to redundancy 1

Deleting the following obsolete backups and copies:

Type Key Completiontime Filename/handle

-------------------- ------ --------------------------------------

BackupSet 2499 2011-11-24 11:39:28

Backuppiece 2511 2011-11-24 11:39:28swt-oracle-full<gz_7:768051562:1>.dbf

...

Really want to delete the above objects (enter YES orno)? Yes

Deleted backup Piece

Backup Piecehandle=swt-oracle-full<gz_7:768051562:1>.dbfrecid=1 stamp=768051562

...

Deleted objects

That's how it works.




This article is from the "My main beam margin" blog, please be sure to keep this source http://xiaocao13140.blog.51cto.com/6198256/1970938

Delete expired backup times no channel allocated for maintenance (of a appropriate type)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.