If data or applications in the production center become unavailable due to disasters or faults, you must quickly recover the data or applications from the DR center. Before a fault recovery, at least one recovery plan test must be executed successfully.
If data or applications become unavailable due to disasters or faults in the production center, services will be quickly switched to and started in the DR center. After the production center recovers, the services will be switched back to it by performing planned migration.
You are advised to enable archive log protection. If archive log protection is not enabled, fault recovery may fail. If archive log protection is not enabled, you can choose Protection in the navigation tree, click a protected group, click the Protected Object tab, click Modify Protection Settings, and select Archive Log Protection to enable archive log protection.
If Huawei UltraPath has been installed on the Linux-based DR host, ensure that I/O suspension time is not 0 and all virtual devices generated by UltraPath have corresponding physical devices. For details, see the OceanStor UltraPath for Linux xxx User Guide.
The step to be added must be performed before the step of Checking the ADG environment.
The name of a customized script contains 4 to 32 characters, including only letters, digits, underscores (_), and hyphens (-), and must start with a letter, digit, or underscore (_). The script name extension is .sh.
The script template is stored in /xxxx/Agentless/custom/sample. The name of the script template for restoring the ADG environment is oracle_adg_recovery.sh. xxxx indicates the user-defined Agentless installation directory.
The script is stored in /xxxx/Agentless/custom, where xxxx indicates the user-defined Agentless installation directory.
Run the chown root:root oracle_adg_recovery.sh command to set the script owner to root:root. Run the chmod 550 oracle_adg_recovery.sh command to set the script permission to 550.
xxx indicates the user-defined Agentless installation user.
echo 'xxx1 ALL=(root) NOPASSWD:xxx2' >> /etc/sudoers.d/CUSTOM
xxx1 indicates the customized Agentless installation user, and xxx2 indicates the absolute path of the ADG environment restoration script.
Parameter |
Description |
|---|---|
ORACLE_TYPE |
Oracle deployment mode. Set this parameter to SINGLE for a single-node system and RAC for a cluster. |
ORACLE_PATH |
Oracle installation directory, which is used to store temporary files. |
RAC21 |
hostname of node 1 in the standby cluster. If node 1 is deployed in a single-node system, you do not need to set RAC22. |
RAC22 |
hostname of node 2 in the standby cluster. |
SYS_PASS |
Password of database user sys. |
Primary_TNS |
TNS name of the current active cluster. |
Standby_TNS |
TNS name of the current standby cluster. |
IS_SKIP |
For an RAC cluster, set this parameter to 0 for one node and to 1 for the other node. |
Before clicking Fault recovery, you can click the Procedure tab, click Edit, select Fault recovery, and enable or disable configurable steps as required. The configurable step is Test database connection (Configurable), which is enabled by default.
If the fault recovery fails, you can retry the fault recovery from the failure point.
After the fault recovery is complete, check whether the applications and data are normal. If an application or data encounters an exception, contact Huawei technical support.
After the planned migration is complete, the application system is working in the DR center and protected groups become Invalid. You must perform reprotection to recover the replication status and synchronize the data from the DR center to the production center. Then, the original DR center becomes the new production center.