All Products
Search
Document Center

Data Management:Cross-cloud or self-managed Oracle physical backup and restore

Last Updated:Aug 27, 2026

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).

Note
  • 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.

    Enable archive mode

    Data Recovery Service (DBS) uses the Oracle RMAN tool for database backups. The archive mode of an Oracle database is disabled by default. You must enable it to perform backups.

    1. Log on to the Oracle database as a user with the sysdba role by using the as sysdba command.

    2. Run the SQL command ARCHIVE LOG LIST to query the current archive status of the database. The following is a sample output:

      Database log mode              No Archive Mode  # No Archive Mode
      Automatic archival             Disabled
      Archive destination            USE_DB_RECOVERY_FILE_DEST  
      Oldest online log sequence     1    
      Current log sequence           2  
      Note

      If the Database log mode parameter returns Archive Mode, archive mode is enabled, the procedure to Enable archive mode is complete, and no further action is required.

    3. If archive mode is not enabled, run the SQL command SHUTDOWN IMMEDIATE to shut down the database. You cannot enable archive mode while the database is in the OPEN state.

      Warning

      Perform this operation during off-peak hours.

    4. Run the SQL command STARTUP MOUNT to start the database in the MOUNT state.

    5. Run the SQL command ALTER DATABASE ARCHIVELOG to enable archive mode.

    6. Run the SQL command ARCHIVE LOG LIST again to check the archive status. The following is a sample output:

      Databaselog mode             Archive Mode # Archive Mode
      Automatic archival           Enabled 
      Archive destination          USE_DB_RECOVERY_FILE_DEST 
      Oldest online log sequence 1
      Next log sequence to archive 2
      Currentlog sequence        2
      Note

      After you enable archive mode, the default log archiving path is the fast recovery area ($ORACLE_BASE/fast_recovery_area). This directory has a default size of only 4 GB and is also the default path for backup files and flashback logs. To prevent database service exceptions caused by insufficient disk space, you can adjust the size of this directory or modify the log archiving path as needed.

    7. Run the SQL command ALTER DATABASE OPEN to start the database.

  • Obtain the Oracle SID.

    Obtain the Oracle SID

    • Linux

      Run the following command to extract the SID from the running Oracle instance's process information:

      ps -ef | grep ora_pmon_ | grep -v grep | awk -F "ora_pmon_" '{print "oracle sid: "$NF }' | grep -v print

      The following sample output indicates that the Oracle SID is orcl:

      oracle sid: orcl
    • Windows

      In the Windows command-line interface, run the following command to quickly obtain the SID and service name of the Oracle database instance:

      sc query type=service | findstr SERVICE_NAME | findstr OracleService

      The following sample output indicates that the SID of the Oracle instance is orcl and the service name is OracleServiceORCL:

      SERVICE_NAME: OracleServiceORCL
  • 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 database program directory

    1. Open a command-line interface and run the su - oracle command to switch to the Oracle user.

    2. Run the echo $ORACLE_HOME command to view the path set for the ORACLE_HOME environment variable.

      The following sample output indicates that the ORACLE_HOME path is /opt/oracle/product/19c/dbhome_1:

      /opt/oracle/product/19c/dbhome_1
  • Obtain the Oracle RAC files.

    Query Oracle RAC files

    Before backing up an Oracle RAC database, you must check its control file, parameter file, data files, archive logs, and redo log files to ensure a successful backup. This check is not required for other architectures.

    • Query redo log files

      SELECT member FROM v$logfile WHERE type='ONLINE';
      SQL> select member from v$logfile where type='ONLINE';
      
      MEMBER
      --------------------------------------------------------------------------------
      +DBSBAKDAT1DG/DB19C/ONLINELOG/group_3.283.1032955371
      +DBSBAKDAT1DG/DB19C/ONLINELOG/group_2.282.1032955371
      +DBSBAKDAT1DG/DB19C/ONLINELOG/group_1.281.1032955371
      +DBSBAKDAT1DG/DB19C/ONLINELOG/group_4.290.1032956211
      +DBSBAKDAT1DG/DB19C/ONLINELOG/group_5.291.1032956213
      +DBSBAKDAT1DG/DB19C/ONLINELOG/group_6.292.1032956213
      
      6 rows selected.

      The value displayed in the MEMBER column starts with a plus sign (+). The Automatic Storage Management (ASM) disk group is DBSBAKDAT1DG.

    • Query archive log files

      SELECT name FROM v$archived_log WHERE DELETED='NO';
      SQL> select name from v$archived_log where DELETED='NO';
      
      NAME
      --------------------------------------------------------------------------------
      +DBSBAKARC1DG/db19c/2_87_1032955370.dbf
      +DBSBAKARC1DG/db19c/2_88_1032955370.dbf
      +DBSBAKARC1DG/db19c/2_89_1032955370.dbf
      +DBSBAKARC1DG/db19c/2_90_1032955370.dbf
      +DBSBAKARC1DG/db19c/2_91_1032955370.dbf
      +DBSBAKARC1DG/db19c/2_92_1032955370.dbf
      +DBSBAKARC1DG/db19c/2_93_1032955370.dbf
      +DBSBAKARC1DG/db19c/2_94_1032955370.dbf
      +DBSBAKARC1DG/db19c/2_95_1032955370.dbf
      +DBSBAKARC1DG/db19c/2_96_1032955370.dbf
      +DBSBAKARC1DG/db19c/2_97_1032955370.dbf
      +DBSBAKARC1DG/db19c/2_98_1032955370.dbf
      +DBSBAKARC1DG/db19c/2_99_1032955370.dbf

      The value displayed in the NAME column starts with a plus sign (+). The ASM disk group is DBSBAKARC1DG.

    • Query data files

      SELECT name FROM v$datafile;
      SQL> select name from v$datafile;
      
      NAME
      ================================================================================
      +DBSBAKDAT1DG/DB19C/DATAFILE/system.276.1032955249
      +DBSBAKDAT1DG/DB19C/DATAFILE/sysaux.277.1032955283
      +DBSBAKDAT1DG/DB19C/DATAFILE/undotbs1.278.1032955299
      +DBSBAKDAT1DG/DB19C/DATAFILE/86B637B62FE07A65E053F706E80A27CA/DATAFILE/system.285.1032955565
      +DBSBAKDAT1DG/DB19C/DATAFILE/86B637B62FE07A65E053F706E80A27CA/DATAFILE/sysaux.286.1032955565
      +DBSBAKDAT1DG/DB19C/DATAFILE/users.279.1032955299
      +DBSBAKDAT1DG/DB19C/DATAFILE/86B637B62FE07A65E053F706E80A27CA/DATAFILE/undotbs1.287.1032955565
      +DBSBAKDAT1DG/DB19C/DATAFILE/undotbs2.289.1032955805
      
      8 rows selected.

      The value displayed in the NAME column starts with a plus sign (+). The ASM disk group is DBSBAKDAT1DG.

    • Query the parameter file

      SHOW parameter spfile;
      SQL> show parameter spfile;
      
      NAME                                 TYPE        VALUE
      ------------------------------------ ----------- ------------------------------
      spfile                               string      +DBSBAKDAT1DG/DB19C/PARAMETERF
                                                       ILE/spfile.293.1032956215

      The value displayed in the VALUE column starts with a plus sign (+). The ASM disk group is DBSBAKDAT1DG.

    • Query the control file

      SHOW parameter control_files;
      SQL> show parameter control_files;
      
      NAME                                 TYPE        VALUE
      ------------------------------------ ----------- ------------------------------
      control_files                        string      +DBSBAKDAT1DG/DB19C/CONTROLFIL
                                                       E/current.280.1032955369

      The value displayed in the VALUE column starts with a plus sign (+). The ASM disk group is DBSBAKDAT1DG.

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.

Note

When you purchase the backup schedule, set Database Type to Oracle and Backup Method to Physical Backup.

Step 2: Configure the backup schedule

  1. Log on to the Data Management Service (DMS) console.

  2. In the top navigation bar, choose Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Backup Plan.

    Note

    If you use the DMS console in simple mode, move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner of the DMS console and choose All Features > Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Backup Plan.

  3. Find the target backup schedule by its Backup Schedule ID, and click Configure Backup Schedule in the Actions column.

  4. 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.

    Note

    You 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 sysdba format.

    Oracle home

    Enter the absolute path of ORACLE_HOME. For more information, see Obtain the database program directory.

    Note

    This 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.

  5. On the Configure Backup Objects page, Back Up Entire Instance is selected by default. Click Next.

    Note

    When you back up an entire database, permissions, stored procedures, and other information are also backed up.

  6. 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.

    Note

    If 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.

    Note

    To 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.

      Note

      Your server must have FUSE installed. Otherwise, the backup will fail.

  7. 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.

  8. After the preceding configurations are complete, click Precheck in the lower-right corner of the page.

  9. 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.

  1. Log on to the Data Management Service (DMS) console.

  2. In the top navigation bar, choose Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Backup Plan.

    Note

    If you use the DMS console in simple mode, move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner of the DMS console and choose All Features > Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Backup Plan.

  3. Find the target backup schedule ID and click Manage in the Actions column.

  4. On the Configure Task page, click Restore Database in the upper-right corner.

  5. 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.

    Note

    You can customize a parameter file based on the SID in the ORACLE_HOME/dbs directory. 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.

    Note

    To 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 Backup Schedules > Backup Schedule List page, click the backup schedule name. On the Backup Tasks > Full Data Backup 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.

  6. On the Configure Objects to Restore page, click Restore Entire Instance, and then click Precheck.

    Note

    Physical backups only support entire instance restores.

  7. Once Precheck Passed is displayed in the Precheck dialog box, click Start Task and wait for the database restore to complete.

    Note

    The 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.

  8. 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.