Before configuring disaster recovery (DR) services, check the database environments of the production end and the DR end where Oracle databases reside, and the storage end environment. If the database environments do not meet requirements, modify database configurations.
The following configuration items must be checked and configured on databases at both the production and DR ends.
When UDEV is used to map disks, the restrictions on disk mapping modes are as follows:
Two UDEV disk mapping modes are available. The following uses SUSE 12SP5 (disks DATA and REDO involved) as an example to describe how to configure both UDEV disk mapping modes:
KERNEL=="sd*",ENV{ID_SERIAL}=="3622334410055667711fc7ffd00000113",SYMLINK+="oracle/redo_102",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*",ENV{ID_SERIAL}=="3622334410055667711fc417d0000010f",SYMLINK+="oracle/data_101",OWNER="grid",GROUP="asmadmin",MODE="0660"
The KERNEL parameter must be specified using wildcards (for example, KERNEL=="sd*1" or KERNEL=="sd?1") and cannot be a fixed device partition name (for example: KERNEL="sda"). Otherwise, UDEV configuration rules cannot take effect.
During the creation of the Oracle protected group, you can specify different authentication modes for different protected objects and RAC hosts. Currently, database authentication and operating system authentication are supported. Table 1 describes the configuration details.
Authentication Mode |
Requirements |
|---|---|
Database authentication |
Authentication modes at the production and DR ends must be the same. |
In a cluster, authentication modes of all hosts must be the same. |
|
During protected group creation, authentication mode specified on the eReplication must be the same as that used by the database. |
|
Operating system authentication |
In an Oracle RAC cluster deployed on ASM, the operating system authentication must be enabled so that the cluster at the DR end can be started normally upon DR. |
For Oracle single-instance databases deployed on ASM, the following requirements must be met: For Unix-like operating systems, operating system authentication must be enabled if the password files of Oracle databases are configured to be saved in the ASM disk group. Alternatively, you can save the password files on the local file system. If neither method is adopted, the recovery plan corresponding to the Oracle protected group cannot be executed for testing, planned migration, and fault recovery. |
Configuration Item |
Description |
|---|---|
OPEN_MODE |
|
By default, OPEN_MODE supported by Agentless is READ ONLY WITH APPLY. To change OPEN_MODE, run the following command (the Agentless configuration of all nodes in the production and DR clusters needs to be modified):
The eReplication Agentless can ensure consistency between Oracle databases only when the databases are running in archive mode.
The following shows the command format and output:
[oracle@rhcs218 ~]$ sqlplus /nolog SQL*Plus: Release 11.2.0.3.0 - Production on Fri Jun 26 10:30:34 2020 Copyright (c) 1982, 2002, Oracl. All rights reserved. SQL> conn sys/oracle@verify as sysdba Connected.
The following shows the command format and output:
SQL> archive log list; Database log mode No Archive Mode Automatic archival Enabled Archive destination +REDO Oldest online log sequence 75 Next log sequence to archive 76 Current log sequence 76
Check that the data files, log files, and control files of a database are stored on LUNs. If those files are not stored on LUNs, DR cannot be performed for the database. You are advised to store temporary tablespaces on the same LUN where data files, log files, or control files resides or store temporary tablespaces a LUN different from the LUNs where other database files are stored.
Check the database environment of the ADG DR end and the test host at the DR end. Table 3 lists the specific environment requirements.
If the database environment of the test host at the DR site is different from that at the production site, ensure that the database environment of the test host at the DR site is the same as that at the production site.
Check Item |
Requirements |
|---|---|
Oracle installation |
Oracle databases on the DR and production ends must run the same operating system and of the same version. |
Versions of Oracle databases on the DR and production ends must be the same. |
|
The installation location of Oracle databases on the DR end must be consistent with that on the production end. |
|
Database |
The database authentication modes on the DR and production ends must be the same. |
Names, user names, and passwords of Oracle databases on the DR and production ends must be the same. |
|
Oracle RAC |
scan name of SCAN-IP on the production end must be consistent with that on the production end. |
In the synchronous replication (SAN) DR scenario, if multiple archive logs are configured for a database, at least one archive log must use storage resources that are configured with remote replication or consistency group. In addition, the consistency group must be a different one from that of data files, control files, and online log files.
Table 4 describes the storage requirements of disaster recovery solutions.
Technology |
Restriction and Requirement |
|---|---|
Synchronous replication (SAN) |
|