Our DBA is having an issue with RMAN backups through Netbackup.
We discovered the need to send the NB_ORA_POLICY parameter to Netbackup to avoid the policy being incorrect on the Default-Application-Backup. So, the DBA the following in the backup script (after setting the variable name for the policy) -
run
{
send 'NB_ORA_POLICY=${NB_POLICY_NAME}' ;
BACKUP RECOVERY AREA;
}
This resulted in the folloing error -
RMAN> 2> 3> 4> 5>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of send command at 07/29/2010 15:14:52
RMAN-06422: no channels found for SEND command
The Channels and other configuration parameters are set within RMAN as follows -
RMAN configuration settings (configured within RMAN)
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 35 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE 'SBT_TAPE' TO '%F';
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' MAXPIECESIZE 32 G;
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BZIP2'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '+ASM_FRA/cat11g1/snap_cf_cat11g1.f';
As you can see the "CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' MAXPIECESIZE 32 G;" is set in this configuration.
When the DBA added the ALLOCATE to the run block the script does work and sends the correct policy name to Netbackup, but it seems to lose/override all the above configuration, specifically the MAXPIECESIZE parameter. Adding this to the ALLOCATE in the run block does not seem to correct this issue -
run
{
ALLOCATE CHANNEL T1 TYPE 'SBT_TAPE' MAXPIECESIZE 32 G;
send 'NB_ORA_POLICY=${NB_POLICY_NAME}' ;
BACKUP RECOVERY AREA;
RELEASE CHANNEL T1;
}
So, the question is, Can we use the SEND command in the RMAN script run block and have it use the pre-set CONFIGURE values, instead of having the ALLOCATE command in the script?