RMAN Example: Performing an In-Place Restore

Perform an in-place restore when you need to restore a database to the same host and instance from which the backup was made.

Procedure

  1. Execute the script, with the necessary modifications, from the rman prompt on the source Oracle database server. For more information on required and optional agentless parameters for RMAN jobs, see Oracle Agentless SBT Parameters for RMAN Jobs.

Example

The following RMAN script shows an example that specifies the qlogin user token file by means of the --cv-token-file parameter. If you do not have authentication enabled you can remove this parameter from the script.

run 
{
        allocate channel ch1 type sbt
        PARMS="SBT_LIBRARY<Oracle_plugin_directory>/libcvobk_thinlibrary.so"
        trace 2;
        allocate channel ch2 type sbt
        PARMS="SBT_LIBRARY<Oracle_plugin_directory>/libcvobk_thinlibrary.so"
        trace 2;
        send "--cv-host  <backup_host> --cv-clientname <client_server> --cv-logfile <Oracle_plugin_log_file_location> --cv-token-file <token_path> --cv-instance <Oracle_instance_name>";
        restore database;
}

Loading...