Restoring Databases Using the Commvault Command Line Interface

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

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

    Note

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

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

    Note

    qlist job –j <job_id>

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

Examples

Restoring from a Current Backup

qoperation execute -af restore_template.xml -appName 'Oracle' -clientName 'client1' -instanceName 'instance1'

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

qoperation execute -af restore_template.xml -appName 'Oracle' -clientName 'client1' -instanceName 'instance1' -subclientName subclient1 -toTimeValue '2014-11-28'

Loading...