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
Back Up Databases Using the Commvault Command Line Interface.
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 XML Parameters for SAP for Oracle Backups and Restores.
-
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>'
-
Verify the status of the job. On the command line type the command:
qlist job –j <job_id>
-
After the job completes, run the qlogout command to log off the CommServe computer.
Example
Restoring the data and log file from the latest browse.
qoperation execute -af restore_template.xml -appName 'SAP for Oracle' -clientName client1 -instanceName instance1 -destClient/clientName client2 -switchDatabaseMode true -restoreStream 8