Configure Oracle Autonomous Recovery Service in OCI

Introduction

This tutorial shows you the step by step process to configure Oracle Database Autonomous Recovery Service in OCI. It also shows how to set up real-time data protection, monitor automated backups, and perform restore/recovery of the database using existing backups with different recovery points.

Recovery Service is a fully-managed service based on the on-premises Oracle Zero Data Loss Recovery Appliance technology which offers modern cyber-security protection for Oracle Databases of any size.

The Recovery Service provides the following unique advantages over Object Storage backups while keeping costs the same:

Objectives

Prerequisites

Considerations

Configuration Steps

Task 1: Create Users, Groups, and Assign Recovery Service Permissions

As a tenancy administrator, create the Oracle Cloud Infrastructure IAM users and groups to manage Recovery Service related tasks.

  1. As a tenancy administrator, create a OCI IAM user which will be used to manage Recovery Service.

  2. Create a IAM group to add the user, to be used to manage Recovery Service.
  3. Add these policies for the group to provide permissions to manage Recovery Service:
     Allow group {group name} to manage recovery-service-policy in compartment {location}

     Allow Group {group name} to manage recovery-service-subnet in compartment {location} 
  1. Add the user created in step 1 to the group.

Task 2: Configure Private Backup Subnet

The Recovery Service requires a private subnet in the same virtual cloud network (VCN) where your database resides. The private subnet must include security rules to control the backup network between your database and Recovery Service.

Recommendations for Recovery Service Subnets in the Database VCN

  1. Add a private subnet in the database VCN to be used for Recovery Service.

  2. Add the ingress rules to allow destination ports 8005 and 2484.

  3. Add an NSG with egress rules to allow ports 2484 and 8005.

    image

Task 3: Register Recovery Service Subnet

After creating a private subnet in the database VCN, you need to register that subnet as the “Recovery Service Subnet” which will be used for the transfer of backups from the database subnet to the Recovery Service appliance.

Task 4: Review Protection Policy

Task 5: Enable Automatic Backups to Recovery Service

You can enable automatic database backups while provisioning a new database, and select the backup destination as Autonomous Recovery Service.

You can also enable these parameters while enabling automatic backups:

Task 6: Monitor Automatic Backups

You can view protected database backups from the OCI console as shown below:

image

You can also monitor database backup health using the console:

image

Task 7: Perform Restore or Recovery of the Database

The database can be recovered by using automatic backups taken by Recovery Service. It offers three restore points while recovering the database:

  1. Restore to latest
    • Restores the database to the last known good state with the least possible data loss.
  2. Restore to a timestamp
    • Restores the database to the timestamp specified.
  3. Restore to SCN
    • Restores the database using the System Change Number (SCN) specified.

    image

    Acknowledgments

More Learning Resources

Explore other labs on docs.oracle.com/learn or access more free learning content on the Oracle Learning YouTube channel. Additionally, visit education.oracle.com/learning-explorer to become an Oracle Learning Explorer.

For product documentation, visit Oracle Help Center.