Using PARMS in the Oracle Allocate Channel Command

On UNIX clients, you must run the allocate channel command using PARMS, when the SBT library has not been re-linked.

The SBT channel that you specify in the allocate command uses the media library that you specify in PARMS element.

Procedure

  • Create and run an RMAN script similar to the one below. This script allocates the channel and specifies the media library the channel uses.

    For information on the supported SBT and RMAN parameters, see SBT Parameters and RMAN Parameters.

    run { allocate channel ch1 type 'sbt_tape' PARMS="ENV=(CVOraRacDBName=rac_database_name, CvInstanceName=instance_name)" }

    Note: For Oracle RAC clients in a UNIX environment, add the SBT_LIBRARY parameter

    run { allocate channel ch1 type 'sbt_tape' connect sql_connect_string PARMS="SBT_LIBRARY=software_install_path/Base/libobk.so, ENV=(CvInstanceName=instance_name, CVOraRacDBName=rac_database_name)" }

    The SBT_LIBRARY path for the various platforms are listed below:

    • AIX with 64 bit Oracle - <Client Agent Install Path>/Base64/libobk.a(shr.o)

    • Solaris with 64 bit Oracle -<Client Agent Install Path>/Base64/libobk.so

    • Linux on System Z with 64 bit Oracle - <Client Agent Install Path>/Base64/libobk.so

    • All Other UNIX platforms -<Client Agent Install Path>/Base/libobk.so

Example

run {
 allocate channel ch1 type 'sbt_tape' 
 PARMS=" SBT_LIBRARY=software install path/Base/libobk.so, ENV=(CVOraRacDBName=racdb, CvInstanceName=Instance001 -hn=rac1.example.com,BLKSIZE=32768)" 
 }
×

Loading...