Data Recovery Service (DBS) supports physical backups of Oracle databases running on Windows or Linux operating systems. You can back up Oracle databases of various architectures, including single-instance, Oracle Data Guard Physical Standby, and Oracle Real Application Cluster (RAC) databases.
This topic describes how to perform a physical backup of an Oracle database. For information about logical backups, see Logical Backup and Restore for Cross-Cloud or Self-Managed Oracle Databases.
Supported Oracle architectures
Single-instance, single-instance with Automatic Storage Management (ASM), Oracle Data Guard Physical Standby, and Oracle Real Application Cluster (RAC).
-
To ensure a successful backup, you must check the Oracle control file, parameter file, data files, archive logs, and redo log files before the backup. For more information, see Query Oracle RAC files.
-
To back up an entire RAC database, you only need to deploy a backup gateway on one of the RAC instance hosts and enter that host's Oracle SID.
Prerequisites
-
Enable archive mode for the Oracle database.
-
Obtain the Oracle SID.
-
A backup gateway has been added on the server where the Oracle database is deployed. For more information, see Install a backup gateway.
-
Obtain the database program directory.
-
Obtain the Oracle RAC files.
Limitations
Because Oracle physical backups in Data Recovery Service (DBS) rely on RMAN and control files to manage backup metadata, you must be aware of the following limitations to ensure the reliability of backups and restores when you use DBS to perform an Oracle physical backup or restore:
-
Configuring multiple backup schedules for the same Oracle database may cause restore failures.
-
When performing a point-in-time restore, do not delete the latest full backup set that precedes the restore point.
Step 1: Create a backup schedule
For more information, see Create a backup schedule.
When you purchase the backup schedule, set Database Type to Oracle and Backup Method to Physical Backup.
Step 2: Configure the backup schedule
-
Log on to the Data Management Service (DMS) console.
-
In the top navigation bar, choose .
NoteIf you use the DMS console in simple mode, move the pointer over the
icon in the upper-left corner of the DMS console and choose . -
Find the target backup schedule by its Backup Schedule ID, and click Configure Backup Schedule in the Actions column.
-
On the Configure Backup Source and Destination page, configure the backup source and destination, and then click Next.
In the Backup Destination Information section, set Backup Storage Type to DBS Storage (Recommended) and Storage Mode to Encrypted Storage.
Section
Parameter
Description
N/A
Backup schedule name
Data Recovery Service (DBS) automatically generates a name. Specify a descriptive name for easy identification. The name does not need to be unique.
Backup source
Backup method
The default value is the backup method that you selected when you created the backup schedule. This topic uses physical backup as an example.
Instance region
Select the region where your instance is located.
Backup gateway
Select the backup gateway for the source database. For information about how to add a backup gateway, see Add a backup gateway.
Database type
The default value is Oracle.
SID
Enter the Oracle SID of the source database. For more information, see Obtain the Oracle SID.
Database logon
Enter the SQL*Plus command to log on to the database in the format
<username>/<password>@<instance_name> as sysdba. Example:sys/password@orcl as sysdba.NoteYou can also enter
/ as sysdba. However, if your database environment has disabled operating system authentication, the logon will fail. In this case, you must use the<username>/<password>@<instance_name> as sysdbaformat.Oracle home
Enter the absolute path of ORACLE_HOME. For more information, see Obtain the database program directory.
NoteThis parameter is optional.
Data cross-border compliance commitment
Read and select the compliance commitment checkbox.
Backup destination
Backup storage type
The type of storage for the backup destination. Valid values:
-
DBS Storage (Recommended): Data is automatically stored in DBS Storage. No separate storage space is required. Charges are based on the amount of data stored in DBS. For more information about the billing, see Storage fees.
-
OSS For User: You must create a bucket in OSS in advance. For more information, see Create a bucket.
Note-
This example uses DBS Storage. If you select User OSS, you must also configure the Object Storage Service (OSS) Bucket Name parameter. Only the OSS Standard storage class is supported.
-
For large data volumes, purchasing a subscription DBS storage plan is more cost-effective for DBS Storage than pay-as-you-go billing.
Storage mode
The storage mode. Valid values:
-
Encrypted (Recommended): Encrypts data at rest by using the industry-standard AES-256 algorithm.
OSS supports server-side encryption. OSS encrypts the object upon upload and saves the encrypted version. When you download the object, OSS automatically decrypts it before returning it. For more information, see Server-side encryption.
-
Non-encrypted: Encryption is not enabled.
-
-
On the Configure Backup Objects page, Back Up Entire Instance is selected by default. Click Next.
NoteWhen you back up an entire database, permissions, stored procedures, and other information are also backed up.
-
On the Configure Backup Time page, configure the backup time and other settings, and then click Next.
Parameter
Description
Full backup frequency
Select Periodic Backup or Single Backup as required.
Full backup period
The days of the week on which DBS runs the backup schedule. You can select one or more days of a week. Select at least one day of the week.
Full backup start time
The start time of the backup. We recommend that you specify a point in time during off-peak hours. Example: 01:00.
NoteIf a previous full data backup is not finished at the start time of the next backup, DBS skips the next backup.
Incremental backup
Specifies whether to enable incremental backup.
NoteTo enable this parameter, ensure that archive mode is enabled for the source database. For more information, see Prerequisites.
This parameter is displayed only when Full Backup Frequency is set to Periodic Backup.
Maximum number of parallel threads for full backup
The maximum number of concurrent threads that are available for a full backup. You can configure this parameter to adjust the backup speed. For example, you can reduce the number of backup threads to minimize impacts on the database.
Backup network speed limit
The limit on the network bandwidth. You can specify the limit based on your business requirements. Default value:
0, which indicates that the network bandwidth is not limited.Incremental backup interval
The interval at which incremental backup is performed. DBS performs incremental backup based on your configurations. If you set the interval to 10 minutes, DBS performs an incremental backup every 10 minutes.
Delete logs after successful backup
Specifies whether to delete the successfully backed-up archive logs from the self-managed database. Valid values:
-
Yes: After a successful backup, the system deletes archive logs that are older than a specific number of days. You must also configure the Delete Archive Logs Older Than (Days) parameter. The default value is 7 days, which means that after a successful backup, the system deletes archive logs older than 7 days from the self-managed database.
-
No: Does not delete archive logs from the self-managed database.
Enable compression
Specifies whether to enable compression. Valid values:
-
Enable: recommended. Data is compressed during backup to reduce storage space.
-
Disable: Data is not compressed during backup.
Backup set mode
Select a backup mode. Valid values:
-
Non-intrusive streaming backup: Performs backups by using the Oracle SBT (backup set) method. Data is streamed to the cloud through a virtual tape interface. This method is non-intrusive to the source database and uses less storage space.
-
Sandbox instance mount backup: Performs an Image Copy backup by using RMAN. Backup data is backed up to OSS through the FUSE file protocol. Data is streamed to OSS without being written to local disks during the backup. If the sandbox feature is enabled, backup data can be mounted in seconds.
NoteYour server must have FUSE installed. Otherwise, the backup will fail.
-
-
On the Edit Lifecycle page, enter the retention period for full backup data in DBS Storage.
If you enabled Incremental Backup in the previous step, you must also configure the retention period for incremental backup data. For more information about the backup data lifecycle, see Manage the lifecycle of backup data.
-
After the preceding configurations are complete, click Precheck in the lower-right corner of the page.
-
In the precheck dialog box, after the precheck passes, click Start Now.
Note-
The backup schedule is successfully configured once its Status changes to Running.
-
If an exception or error occurs with the backup schedule, troubleshoot and fix the issue promptly. For more information, see Fix an abnormal backup schedule. If the issue persists, contact customer support (DingTalk group ID: 35585947).
-
Data restore
Data Recovery Service (DBS) supports restoring data to a different server (an out-of-place restore), to a different location on the original server, or to the original location.
-
Log on to the Data Management Service (DMS) console.
-
In the top navigation bar, choose .
NoteIf you use the DMS console in simple mode, move the pointer over the
icon in the upper-left corner of the DMS console and choose . -
Find the target backup schedule ID and click Manage in the Actions column.
-
On the Configure Task page, click Restore Database in the upper-right corner.
-
On the Set Time Restored To page, configure the following information, and then click Next.
Section
Parameter
Description
N/A
Task Name
A task name is automatically generated. Specify a descriptive name for easy identification. The name does not need to be unique.
Set Time Restored To
Recoverable time range
The time range from the point in time when the first full backup set is created to the point in time when the latest full backup set is created. The database can be restored to a point in time within the time range.
Selected restore time point
Select a restore point. The time must be within the Recoverable Time Range.
Note-
If incremental log backup is enabled, you can restore to any point in time within the recoverable range.
-
If incremental backup is not enabled, you can only restore to the completion time of a full backup.
Restore destination database
Instance region
Select the region where the destination backup gateway is located.
Backup gateway
Select the backup gateway for the restore destination. For information about how to add a backup gateway, see Install a backup gateway.
Database type
The default value is Oracle.
Connection address
The connection address of the destination database. The default value is
localhost.Port
The connection port of the destination database. The default value is
1521.SID
Enter the SID of the destination database.
NoteYou can customize a parameter file based on the SID in the
ORACLE_HOME/dbsdirectory. If a parameter file is not created, the system automatically creates a minimal parameter file for restoring the Oracle database.Database restore directory
Enter the database restore directory.
NoteTo ensure that you have enough space for recovery, we recommend setting the Storage Space (GB) to at least 1.3 times the size of the original instance or 5 to 6 times the size of the full backup set (because backups are compressed).
Log on to the console. On the page, click the backup schedule name. On the page, view the size of the full backup set. For more information, see View backup schedule details.
Database program directory
Enter the absolute path of
ORACLE_HOME.Data cross-border compliance commitment
Read and select the compliance commitment checkbox.
-
-
On the Configure Objects to Restore page, click Restore Entire Instance, and then click Precheck.
NotePhysical backups only support entire instance restores.
-
Once Precheck Passed is displayed in the Precheck dialog box, click Start Task and wait for the database restore to complete.
NoteThe time required to restore the database depends on the backup schedule specifications and the database size. Higher specifications result in faster restores. For more information, see Performance testing for logical and physical backups.
-
Optional: Connect to the restored database and run the following SQL statement to open it.
ALTER DATABASE OPEN RESETLOGS;
You have now restored the Oracle database.
FAQ
Q: Can I back up an Oracle database to different regions simultaneously for multi-region storage?
A: The backup feature of Data Recovery Service (DBS) is managed by RMAN, and RMAN's metadata structure does not support this configuration. Therefore, you cannot back up a database to different regions simultaneously.