raccli create recovery

Not Oracle Cloud InfrastructureNot Oracle Cloud at Customer This topic does not apply to Oracle Cloud Infrastructure or to Oracle Cloud at Customer.

The create recovery subcommand of the raccli initiates database recovery of an Oracle Database Classic Cloud Service database deployment that uses Oracle Real Application Clusters (RAC).
raccli create recovery  [-tag tag-name][-latest]|[-pitr][-scn SCN]|[-timestamp time] 

This subcommand runs asynchronously. That is, it creates a job to perform the recovery, reports the job ID of the created job, and then exits. To track the progress of the job to its completion, use the raccli describe job command.

If the subcommand fails, it reports a FAILURE status and provides a message describing the reason for the failure.

Options of this subcommand are as follows.

Option Description

-tag tag-name

The name of the recovery job. This is not an RMAN tag.

If this option is omitted, a default name of “auto” is given.

-latest

Indicates that a complete database recovery should be performed.

-pitr

Indicates that a database point-in-time (incomplete) recovery should be performed.

The recovery end point is specified by the —scn or —timestamp option.

-scn SCN

The system change number (SCN) for the end point of the recovery.

-timestamp time

The time for the end point of the recovery.

The format is MM/DD/YYYY HH24:MI:SS.

Example

Here is an example of the create recovery subcommand. The name of the recovery job in this example is recovertest. This is an example of a request for a complete database recovery operation. You can use the job ID displayed in the output as input to the raccli describe job command to track the job’s progress.

[opc@example1 ~]$ raccli create recovery -tag recovertest -latest

{
  "joburi" : "http://localhost:7070/dcs/8/responses",
  "requestStatus" : "SUCCESS",
  "jobid" : "8"
}
[opc@example1 ~]$