Command Line Interface - Backup - SAP for Oracle Agent

Use XML to back up Oracle databases.

You can back up standby databases when they are either in an offline or online state.

For information on the Oracle Recovery Manager options for redo logs when you perform standby database backups, see the SAP article, Standby.

You can include the XML parameters in the xml file, or you can specify them on the command line when they frequently change. For more information on command line parameters and XML elements, see Command Line - Syntax.

Before You Begin

Optional: Limit the number of database data and log backup jobs that can simultaneously run on a client. See Throttling Backup Jobs.

Procedure

  1. Run the qlogin command to log on to the CommServe computer.

  2. Download the backup_template.xml file to the computer where you will run the command.

  3. Open the backup_template.xml file, add your specific parameters, and save the file.

    For information on supported instance XML parameters, see XML Parameters for SAP for Oracle Backups and Restores.

  4. On the command line, go to Software_Installation_Directory/Base and type the command.

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

  5. Verify the status of the job. On the command line type the command:

    qlist job –j <job_id>

  6. Once the job completes, run the qlogout command to log off of the CommServe computer.

Examples

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

Loading...