Command Line Interface - Restore - Oracle RAC iDataAgent

Table of Contents

Perform the Restore

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.

  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 Available XML Parameters for Oracle Restores.

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

    Note: If the sourceItem parameter contains a directory path, verify the path is valid before you run the command.

    qoperation execute -af restore_template.xml -appName 'Oracle RAC' -clientName '<client_name>' -instanceName '<dbname>' - sourceItem '<source_item>'

  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.


Expand All

Restoring from a Current Backup

qoperation execute -af restore.xml -appName 'Oracle RAC' -clientName client1 -destPath '/etc4' -sourceItem '/etc'

Restoring Files to a Point-in-Time (Date)

qoperation execute -af restore.xml -appName 'Oracle RAC' -clientName client1 -destPath '/etc4' -sourceItem '/etc' -toTimeValue 2011-11-28

Restoring Files to a Point-in-Time (Date and Time)

qoperation execute -af restore.xml -appName 'Oracle RAC' -clientName client1 -destPath '/etc4' -sourceItem '/etc' -toTimeValue '2011-11-28 15:40:00'

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 restore, you can do so by selecting the required options from the CommCell Console and generate the command line xml script for the restore operation.

For more information on how to generate the script, see Save as Script Overview.

Find Data

For information on how to find data that you backed up, see qlist backupfiles.