Loading...

Command Line Interface - Restore - SAP for Oracle Agent

Use XML to restore databases.

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

Procedure

  1. Run the qlogin command to log on to the CommServe computer.
  2. Download the restore_template.xml file to the computer where you will run the command.
  3. Open the restore_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 restore_template.xml -appName 'SAP for Oracle' -clientName '<client_name>' -instanceName '<instance_name>' –subclientName 'subclient_name' -destClient/clientName '<dest_client_name>' -switchDatabaseMode '<true_false>' -restoreStream '<number_restore_streams>'

  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 the CommServe computer.

Example

Restoring Data and Log from Latest Browse

qoperation execute -af restore_template.xml -appName 'SAP for Oracle' -clientName client1 -instanceName instance1 -destClient/clientName client2 -switchDatabaseMode true -restoreStream 8