Command Line Interface - Backup - SAP Oracle iDataAgent

Table of Contents

Perform the Backup

Before You Begin

  1. By default, you can simultaneously run multiple database backup jobs on a client. If needed, you can also limit the number of database data and log backup jobs that can run simultaneously on a client. See Throttling Backup Jobs for details.

Procedure

  1. Download the backup_template.xml file and save it on the computer from where the command will be executed.
  2. From Command prompt, navigate to <Software_Installation_Directory>/Base and run the following command:

    qlogin -cs <commserve name> -u <user name>

  3. Execute the saved .xml script using qoperation execute command.

    qoperation execute -af backup_template.xml -appName 'SAP for Oracle' -clientName 'client_name' -instanceName 'instance_name' –subclientName 'subclient_name' -backupLevel FULL

  1. Verify the status of the job using the following command:

    qlist job –j JOBID

  2. Once the job completes, logout from the CommServe using the qlogout command.

    qlogout [-cs <commserve_host_name>] [-all] [-tf <tokenfile>] [-tk <token>] [-h]

Examples

Expand All

Performing a Full Backup

qoperation execute -af backup_template.xml -appName 'SAP for Oracle' -clientName client1 -instanceName instance1 -subclientName subclient1 -backupLevel FULL

Performing an Incremental Backup

qoperation execute -af backup_template.xml -appName 'SAP for Oracle' -clientName client1 -instanceName instance1 -subclientName subclient1 -backupLevel INCREMENTAL

Generate the Command Line Script from the CommCell Console

In addition to the parameter values provided in the template xml file, if you want to include additional options for the backup, you can do so by selecting the required options from the CommCell Console and generate the command line xml script for the backup. 

Follow the steps given below to generate a script which you can use to perform a backup from the command line interface:

  1. From the CommCell Browser, navigate to Client Computers | <Client> | SAP for Oracle | <Instance> | defaultBackupSet.
  2. Right-click the <Subclient> and click Backup.
  3. On the Backup Options dialog box:
    1. Select the Backup Type, Job Initiation and optional Schedule options for the backup job.
    2. Click Save as Script.
  4. On the Save as Script dialog box:
    • Enter the location to save the script along with the file name and extension. For example, "C:\scripts\myscript.bat" on Windows and "/usr/scripts/myscript.sh" on Unix.

      The script will be saved as a .xml file and .bat/.sh file. If a file with the same name already exists in the specified location, both the .xml and .bat/.sh files will be overwritten.

    • Enter the User Name and Password for the user account which you want to use to perform the backup.

      By default, the user account which you have used to login to CommCell console is used for performing the backup. If the user account does not have access to any application or database, click Use a different account.

    • Click OK to close the Save as Script dialog box.