Oracle RMAN Channel Allocation
If you want to manually allocate channels for backup operations, you must specify the Veeam backup repository UUID in the channel parameters. The ALLOCATE CHANNEL command must be issued within a RUN block. It allocates a channel only in the block where the command is issued. See the following example.
ALLOCATE CHANNEL ch1 DEVICE TYPE SBT_TAPE PARMS 'SBT_LIBRARY=/opt/veeam/VeeamPluginforOracleRMAN/libOracleRMANPlugin.so' FORMAT 'd8338780-1aec-4c36-b17c-e1ea3ea2ca93/RMAN_%I_%d_%T_%U.vab';
RELEASE CHANNEL ch1;
Run the Oracle RMAN script with the following parameters:
- Use the ALLOCATE CHANNEL command to manually allocate a channel or channels between RMAN and the database instance. Specify the following parameters:
- Specify the channel ID. For example: ch1.
- Specify the SBT_TAPE option for the DEVICE TYPE parameter.
- Specify PARMS to define other parameters for the sbt_tape channel.
- Specify which media library must be used for this sbt_tape channel. For Linux or Unix, set the path to the libOracleRMANPlugin.so file as the SBT_LIBRARY. For Windows, set the path to %PROGRAMFILES%\Veeam\VeeamPluginforOracleRMAN\OracleRMANPlugin.dll.
- Use the Veeam backup repository UUID in the argument for the FORMAT parameter. You can find the required backup repository UUID in the rman_config.txt file saved during the Veeam Plug-in configuration process or in logs.
[For Linux] If you have exported Veeam Plug-in configuration files, run the following command to see open the configuration file.
Alternatively, you can find the repository UUID in logs:
grep "received repos" /tmp/veeam_plugin_logs/oracle/OracleRMANConfigTool.log | tail
[For Windows] If you have exported Veeam Plug-in configuration files, find the channel allocation definition in the configuration file.
Alternatively, you can find the repository UUID in logs. Go to the %\ProgramData\Veeam\Backup\RmanPluginLogs\SERV_NAME directory and search for "received repos id" in the OracleRMANConfigToolLib.log file.
- Use the BACKUP command with required parameters to create a database backup.
- Using the RELEASE CHANNEL command within RUN is optional, because RMAN automatically releases all normal channels when the RUN command terminates.