Back up an Oracle database
Back up on-premises or ECS-hosted Oracle databases to Cloud Backup and restore them to a specific point in time. Cloud Backup stores the backups in the cloud. You can restore a database to the original instance, to another ECS instance in the same region, or to an on-premises server.
Prerequisites
Cloud Backup is activated. Activating Cloud Backup is free. Using the Cloud Backup database backup feature incurs the following fees:
Backup vault rental fee: First 30 days free per UID, with 100 GB free capacity per vault per month.
Backup storage capacity fee: Charged based on deduplicated and compressed capacity. First 30 days free, then tiered pricing applies.
For pricing details, see Pricing.
The Oracle database is registered in the Cloud Backup console.
For Oracle databases on ECS instances with Cloud Assistant installed (Cloud Backup supports Discover Database): Prepare the database username and password. For instructions, see Register an ECS-hosted Oracle database.
For self-managed on-premises Oracle databases: Install the backup client on the server. For instructions, see Register an on-premises Oracle database.
For Oracle databases on ECS instances, run the precheck to identify unsuitable backup scenarios. The precheck covers OSS connectivity, management network connectivity, Oracle instance status, Oracle database status, and archivelog mode. For instructions, see Precheck an ECS-hosted Oracle database.
Usage notes
The on-premises database server must connect to Alibaba Cloud VPC through a dedicated line or VPN. The following routes must be reachable: 100.64.0.0/10, 100.64.0.0/11, or 100.96.0.0/11. For instructions, see Single-tunnel mode.
Supported database versions, operating systems, and backup features are limited. For more information, see Supported systems and limits.
After you enable the database anti-ransomware feature, Oracle backup becomes unavailable. For more information about anti-ransomware, see Anti-ransomware service.
Oracle backup does not support backing up databases running in containers.
Cloud Backup automatically deletes expired backup data. Do not run Cloud Backup Oracle backups concurrently with third-party backup software (including script-based tools). Cloud Backup may delete data backed up by other software by calling the RMAN command.
When you create a backup plan, choose the backup vault carefully. Back up the same database instance to a single vault. Using multiple vaults for one instance may convert incremental or log backups to full backups, consuming extra vault storage.
If you run full or incremental backups using other backup software or scripts at the same time, the next Cloud Backup incremental backup may be converted to a full backup. This conversion incurs additional backup storage fees. Log backups are unaffected.
Create a backup plan
Incremental backups and log backups depend on a valid full backup to form a complete recovery chain. To ensure that your backup plan can take effect immediately and your data is recoverable, perform a full backup manually immediately after creating the backup plan. This establishes a reliable baseline for future backups.
After you register an Oracle instance, create a backup plan to schedule automatic Cloud Backup backup tasks. The backup runs at the specified start time and interval.
Log on to the Cloud Backup console.
Click , select a region, and then click Oracle. Click the ECS Database Instance or Local Database Instance tab. Find the target Oracle instance. In the Actions column, click Back Up.
In the Create Backup Plan panel, configure the following settings.
Configure the backup content, and then click Next.
Enter a Plan Name.
Select the database instances to back up.
On the Backup Content tab, set the backup plan name and select Archive Log. Important: Cloud Backup automatically deletes expired backup data and does not support concurrent backup with third-party backup software (including script-based tools). Running backups concurrently may cause Cloud Backup to delete data backed up by other software.
Configure the backup plan, and then click Next.
Parameter
Description
Recommended Plan
A recommended backup strategy. Cloud Backup provides the following preset strategies. Choose a strategy based on your needs, or customize one.
Typical Plan: Enables Full Backup and Incremental Backup.
Critical Application: Enables Full Backup, Incremental Backup, and Log Backup.
Customize: Customize the backup types. Select incremental or real-time backup, and set the start time and backup interval.
Full Backup
Performs a full backup of database files on the operating system. You can restore only to the specific backup point in time.
You can run a one-time backup immediately or at a scheduled time, or configure a recurring backup by hour, day, week, or month.
Incremental Backup
Backs up only the incremental portion of database files on the operating system. You can restore only to the specific backup point in time.
You can run a one-time backup immediately or at a scheduled time, or configure a recurring backup by hour, day, week, or month.
ImportantIncremental backups depend on the most recent full backup for recovery. The corresponding full backup is retained until all dependent incremental backups expire. Configure the backup schedule and retention period appropriately. For more information, see How does Cloud Backup clear expired database backup files?.
Log Backup
Backs up database logs at a fixed interval.
You can run a one-time backup immediately or at a scheduled time, or configure a recurring backup by hour, day, week, or month.
ImportantLog backups depend on the most recent full backup for recovery. The corresponding full backup is retained until all dependent log backups expire. Configure the backup schedule and retention period appropriately. For more information, see How does Cloud Backup clear expired database backup files?.
Realtime Backup
Backs up database log data in real time.
A full backup must be completed before you enable real-time backup. After real-time backup is enabled, database log data is backed up continuously under normal conditions. This enables recovery to a point in time with second-level RPO. Real-time backup is free during the free trial period. After the free trial ends, Cloud Backup immediately charges based on real-time backup storage usage. For pricing details, see Pricing.
ImportantYou can create only one backup plan that includes real-time backup per Oracle database instance.
Configure the backup options, and then click Next.
Parameter
Description
Concurrent Threads
The number of concurrent threads used to back up data.
Retry Time
The interval, in minutes, at which the backup client reconnects to the database after a disconnection.
Speed Limit
The maximum backup data throughput, in MB/s. A value of 0 means no speed limit.
If Keep Archive Logs
The retention policy for backed-up archive logs. The default retention period is 24 hours.
Do Not Keep: Delete all backed-up archive logs after the backup completes.
Keep All: Retain archive logs without deletion.
Keep: Retain archive logs for N hours, then delete them.
Configure the backup vault, and then click OK.
ImportantAn instance can only be backed up to a single backup vault. Backing up to multiple vaults is not supported.
Parameter
Description
Backup Vault
Select a backup vault to store backups.
Create Vault: Enter a name for the new backup vault. If left blank, a random name is assigned.
Select Vault: Choose an existing backup vault from the drop-down list.
ImportantAfter a backup vault is created, the backup vault rental fee is charged regardless of whether backup data is generated. For more information, see Billing methods and billable items.
The system automatically selects the redundancy type based on regional support. In regions that support zone-redundant storage (ZRS), an Archive Storage Vault with ZRS is created by default. In other regions, an Archive Storage Vault with locally redundant storage (LRS) is created. You do not need to manually select the redundancy type.
Vault Name
Specify a name for the backup vault.
Backup Retention Period
The backup retention period. Available units: days, weeks, months, years.
You can change the retention period on the Vault Management page. The change applies to all new backups created in the vault.
ImportantIncremental and log backups depend on the most recent full backup for recovery. The corresponding full backup is retained until all dependent incremental and log backups expire. Configure the backup schedule and retention period appropriately. For more information, see How does Cloud Backup clear expired database backup files?.
Verify the backup
After you create a backup plan, the Backup Plans tab shows detailed information about the plan. This includes the next run time and backup interval for Full Backup, Incremental Backup, and Log Backup. Cloud Backup runs Oracle backup tasks at the specified start time and interval.
At the scheduled backup time, Cloud Backup starts the backup plan. The backup is complete when the task Status is Idle and the Next Run time is displayed.
The backup plan details page also displays the Backup Content, such as oracle://orcl and oracle://orcl/archivelog, the Backup Options (channel count, retry interval, speed limit, and archive log retention), and the associated Backup Vault name and ID.
Troubleshooting
If the recovery task fails for an Oracle Data Guard standby database, the instance activation may have used password-free login. In the Actions column of the target database, click ⋮ > Reactivate, and then reactivate the instance using the database username and password.
FAQ
More operations
On the Backup Plan tab, find the target backup plan. In the Actions column, you can perform the following actions.
Edit backup plan
Click Edit to modify the backup plan.
Alert settings
In the Actions column, click ⋮ > Alert Settings, and then select an alert method.
Alert method
Description
Disabled
The client no longer sends alert notifications.
Same as Backup Vault
The client uses the same alert method as the backup vault.
Notify Alibaba Cloud Account
Backup alert notifications are sent to the Alibaba Cloud account by email.
Custom
Select one or more contacts or contact groups. After configuration, the client sends backup alerts to the selected contacts or groups.
Delete backup plan
Deleting a backup plan interrupts any ongoing backup or recovery tasks.
In the Actions column, click ⋮ > Delete Backup to delete a backup plan that is no longer needed.
What's next
References
For information about the benefits, how it works, workflow, and limitations of database backup, see ECS database backup and On-premises database backup.