Restoring With Point In Time Restore Feature
You can restore data from a DB system to a new DB system using the point in time restore feature. You can either select the latest available point in time or a specific point in time.
To restore from a point in time, enable the feature on the backup plan of the DB system. See Editing a Backup Plan. The point in time restore feature provides a Recovery Point Objective (RPO) of approximately five minutes while the daily backup provides you a RPO of 24 hours. You can restore to any specific point in time within the earliest and the latest time window. The earliest and the latest time window is displayed in the Console under the Select a specific point in time option. Enabling or disabling of the point in time feature does not impact the DB system. Also, DB system operations such as stop, start, restart, or upgrade does not impact the point in time restore operation. The retention period of binary logs is same as the retention period of automatic backups.
You cannot create a DB system that has the same IP address as a running DB system. You can let Oracle select an unused IP address from the subnet or define a new IP address for the new DB system using the IP Address field on the Networking tab of the Advanced Options. See Advanced Option: Networking. If you delete the DB system, it disables the point in time restore feature.
When you create a new DB system from an existing DB system at a point in time, it retains the administrator credentials of the original DB system.
Using the Console
Use the Console to restore from a DB system at a point in time to a new DB system.
- Open the navigation menu and select Databases. Under MySQL, click DB Systems.
- Choose your compartment from the List Scope.
- Do one of the following:
- Choose the Restore to a new DB system from the Actions menu on the same line as your DB system.
- Click the name of the DB system to open the DB System Details page. Click More Actions and then click Restore to new DB system.
- In the Restore to a new DB system panel, select Restore from DB system a point in time.
- Select one of the following options:
- Use the latest available point in time: Restores the DB system to a new DB system using the latest available point in time.
- Select a specific point in time: Restores the DB system to a new DB system using the specified date and time. Select the date and time to restore the DB system.
- Provide DB System information:
- Create in compartment: If you want to launch the DB system in a compartment other than the current compartment, select the required compartment from the list. If you do not select a different compartment, the current compartment is used.
- Name: (Optional) Specify a user-friendly display name for the DB system. The name does not need to be unique. An Oracle Cloud Identifier (OCID) uniquely identifies the DB system.
- Description: (Optional) Specify a user-friendly description of the DB system and its purpose.
- The type of DB System: You cannot change the type of the DB system when restoring from a backup. For example, if the original DB system was Standalone, your new DB system will also be Standalone.
- Configure networking:
- Virtual Cloud Network: Select the VCN in which to launch the DB system.
- Subnet: Select the required subnet of the selected VCN.
- Configure placement:
- Availability Domain: You can change the availability domain, but not the region.
- Choose a Fault Domain: Choose this option to enable you to select a fault domain. If you do not choose a fault domain, Oracle chooses one for you. See Fault Domains.
- Configure hardware:
- Select a Shape: Click Change Shape. In the
Browse All Shapes panel, do the following:
- Select the checkbox to choose the relevant shape. See Supported Shapes.
- Click Select a Shape. If you want to use a shape which is smaller than the shape used by the parent DB System, ensure the selected shape defines resources appropriate to your DB System's resource requirements.
- Data Storage Size (GB): Specify the amount of block
storage, in GB, to allocate to the DB system. The value should be greater
than 50 and less than 65536.
Note
The storage value has an impact on your ability to update storage later. See Increasing the Storage of a DB System. Also, if you are importing data, ensure you specify sufficient data storage.
- Select a Shape: Click Change Shape. In the
Browse All Shapes panel, do the following:
- Configure Backup Plan:
- Enable Automatic Backups: Select the option to enable automatic backups. If you do not select automatic backups, manage your backups manually. It is recommended to enable automatic backups.
- Backup Retention Period: Specify how may days you want to retain the backup. By default, the DB system retains the backup for seven days.
- Enable point in time restore: Select the option to enable you to restore a DB system at a point in time to a new DB system.
- Select Backup Window: Select the option to enable you to select the backup window start time.
- Window Start Time: Specify the time (in UTC timezone) when you want to start the backup of your DB system. Your backup starts within 30 minutes following the window start time.
- Show backup windows per region: Click to see the default window start time of your region.
- Show Advanced Options: Click to open a group of tabs that enable you to further configure your DB system. See Advanced Options.
- Click Restore.
Using the CLI
Use the command-line interface to restore from a DB system to a new DB system at a point in time .
- A DB system Oracle Cloud Identifier (OCID).
- A properly configured CLI installation and the requisite SSH keys. See Command Line Interface.
Limitations
There are certain limitations of restoring from a DB system at a point in time.
- Point in time restore does not support high availability DB systems.
- You cannot restore from a non high availability DB system to a high availability DB system.
- You cannot disable or delete automatic backups on a DB system that has point in time restore feature enabled.
- An automatic backup failure can impact the time taken by the point in time restore operation. For example, if Backup retention period is set to two days, and Monday backup was successful while Tuesday backup has failed, then point in time restore to any time on Tuesday requires roll forward from Monday's backup. Hence, the point in time restore operation requires more time to restore.
- You cannot select a value (in the Select a specific point in time field) earlier than the oldest successful automatic backup after the point in time restore feature was enabled. For example, if Backup retention period is set to three days and Monday, Tuesday backup have failed, and Wednesday backup has succeeded, then the oldest point in time restore is Wednesday.
- You cannot disable the point in time restore feature on a DB system while point in time restore operation is going on.