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
-
Download the restore_template.xml file to the computer where you will run the command.
-
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.
-
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>'
-
Verify the status of the job. On the command line type the command:
Note
qlist job –j <job_id>
-
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'