RMAN-06091: no channel allocated for maintenance

Symptoms

When attempting to delete obsolete backups from RMAN using the following command:
RMAN> delete obsolete; 

the following error occurs:

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of delete command at 05/07/2008 22:04:21
RMAN-06091: no channel allocated for maintenance (of an appropriate type)

.

Cause

Tape channel had not being allocated when attempt to delete obsolete backup on tape or disk.
Using the following command to verify that there are backup sets on tape.

RMAN> list backup; 

This will show you the backup details informing you which channel device type that needs to be allocated.

Solution

To implement the solution, please execute the following steps:

Please run the following commands to delete obsolete backup sets on both disk and tape:

RMAN> allocate channel for maintenance type disk;
RMAN> allocate channel for maintenance device type 'sbt_tape' PARMS '...';

==>Please change '...' to your actual tape params

RMAN> delete force obsolete;


If you want to delete obsolete backup sets on disk, you can use the following commands:
RMAN> allocate channel for maintenance type disk;
RMAN> delete obsolete device type disk;
 

Comments

Anonymous said…
Nice.

Popular posts from this blog

RMAN-10038: database session for channel prm3 terminated unexpectedly

ORA-17630: Mismatch in the remote file protocol version client 2 server 3

ORA-00338: log {n} of thread {n} is more recent than control file