This is an archive version of the document. To get the most up-to-date information, see the current version.

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.

RUN {

     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';

     BACKUP DATABASE;

     RELEASE CHANNEL ch1;

}

EXIT;

Run the Oracle RMAN script with the following parameters:

  1. Use the ALLOCATE CHANNEL command to manually allocate a channel or channels between RMAN and the database instance. Specify the following parameters:
  1. Specify the channel ID. For example: ch1.
  2. Specify the SBT_TAPE option for the DEVICE TYPE parameter.
  3. Specify PARMS to define other parameters for the sbt_tape channel.
  4. 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.
  5. 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.

cat /tmp/rman_config.txt

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.

  1. Use the BACKUP command with required parameters to create a database backup.
  2. [Optional] Use the RELEASE CHANNEL command. By default, RMAN automatically releases all normal channels when the RUN command terminates.