Specifying the Media Parameters for BR*Tools Command Line Operations

BR*Tools command line backups use the storage policy and the data path that you specify in the CommCell Console SAP for Oracle database instance by default.

You can override the default parameters by specifying media and SBT parameters in the script and then run the script from the BR*Tools command line for backup and restore database operations.

You must associate the Data Path (MediaAgent, Library, Drive Pool) with the specified storage policy in the parameters file.

Procedure

  1. Create a media parameters file with the required media parameters.

    You can also include the SBT Parameters in the parameters file. For information on the supported media and SBT parameters, see Supported Media Parameters.

    The parameter file format is:

    [<Parameter Name-1>] <Value-1> [<Parameter Name-2>] <Value-2>

    Example

    [sp]
     SAP_Ora
     [mediaagent]
     sc8_mag
     [library]
     CommVault VirtualLib 276
     [drivepool]
     DrivePool(firewall-con_cn)254
  2. Create BRBBACKUP and BRBARCHIVE scripts and use the CvOraSbtParams environment variable to specify a path to the media parameters file.

    UTIL_FILE, UTIL_FILE_ONLINE Interface

    Update the init<sid>.utl file with the CvOraSbtParams parameter.

    CvOraSbtParams 
     /u01/app/112/dbhome/dbs/mediaparameters.txt(Location of mediaparameters file)
    RMAN_UTIL Interface

    Update the init<sid>.sap file with the CvOraSbtParams parameter.

    RMAN_PARMS="SBT_LIBRARY=/sc8client/commvault/Base64/libobk.a(shr.o),BLKSIZE=262144,ENV=(CvClientName=dbserveaix4,CvInstanceName=Instance001, CvOraSbtParams=/u01/app/112/dbhome/dbs/mediaparameters.txt) 
     rman_channels=3
  3. On the command line, type one of the following commands:

    UTIL_FILE Interface
    brbackup -t online -d util_file -m all -u /
     brarchive –d util_file –sd –u /
    UTIL_FILE_ONLINE Interface
    brbackup -t online -d util_file_online -m all -u /
     brarchive –d util_file_online –sd –u /
    RMAN_UTIL Interface
    brbackup -t online -d rman_util -m FULL -u /
     brarchive –d rman_util –sd –u /

Loading...