Before configuring DR services, check the database and storage environments at the production end where Oracle databases reside. If any environment does not meet requirements, modify its configurations.
The following configuration items must be checked and configured on databases at the production end.
Run the rpm -qa | grep sysfsutil command to check whether the systool software has been installed on the hosts.
Red Hat Linux 6.3 for x86_64 and the systool software package sysfsutils-2.1.0-6.1.el6.x86_64.rpm are used as examples. The installation command is subject to the actual environment.
The eReplication Agent starts to protect the data consistency of an Oracle database only after you have configured environment variables for the Oracle database. Configure environment variables prior to the installation of the eReplication Agent. Otherwise, restart the eReplication Agent after you configure environment variables to make them effective. For detailed operations, see System Maintenance > System Maintenance Commands > Starting the eReplication Agent in the OceanStor BCManager 8.2.0 eReplication User Guide.
Right-click My Computer and choose Properties from the drop-down list. On the Advanced tab page, click Environment Variables. If environment variables have been configured, a dialog box similar to Figure 1 is displayed. Check whether the PATH variable is the bin directory of the Oracle database.
oracle@linux:~> echo $ORACLE_BASE /u01/app/oracle
oracle@linux:~> echo $ORACLE_HOME /u01/app/oracle/product/12.1.0/dbhome_1
oracle@linux:~> echo $PATH /u01/app/oracle/product/12.1.0/dbhome_1/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin
grid@linux:~> echo $ORACLE_HOME /u01/app/12.1.0/grid/
In Oracle 11g R2 or later, environmental variable ORACLE_HOME must be configured f user grid.
grid@linux:~> echo $PATH /u01/app/12.1.0/grid//bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin
The shell type can be bash, ksh, or csh. Table 1 describes configuration files that need to be modified based on shell types of operating systems.
Before configuring environment variables, check the default shell type of user rdadmin on the eReplication Agent. If the shell type is bash, modify the .profile or .bash_profile file under the rdadmin home directory. If the shell type is csh, modify the .cshrc file under the rdadmin home directory. This document uses shell type bash as an example.
Operating System |
Shell Type |
Configuration File |
Configuration Approach |
|---|---|---|---|
Linux |
sh/bash (default, recommended) |
|
export name=value |
csh |
.cshrc |
setenv name value |
|
ksh |
.profile |
export name=value |
|
AIX/Solaris |
sh/ksh (default, recommended) |
.profile |
export name=value |
csh |
.cshrc |
setenv name value |
|
bash |
.profile |
export name=value |
|
HP-UX |
sh/POSIX Shell (default, recommended) |
.profile |
export name=value |
csh |
.cshrc |
setenv name value |
|
ksh |
.profile |
export name=value |
|
bash |
.profile |
export name=value |
Set xxx based on the site requirements.
ORA_CRS_HOME=/opt/oracle/product/10g/cluster PATH=$PATH:/bin:/sbin:/usr/sbin export ORA_CRS_HOME PATH
Name |
Value |
Description |
|---|---|---|
ORA_CRS_HOME |
/opt/oracle/product/10g/cluster |
Indicates the installation directory for the CRS software of an Oracle database. This environment variable needs to be configured only when the version of the RAC environment is earlier than Oracle 11g R2 and Clusterware has been installed. |
PATH |
PATH=$PATH:/bin:/sbin:/usr/sbin |
Indicates the command directory of the operating system on the host where the Oracle database resides. |
When udev is used to map disks, the restrictions on disk mapping modes are as follows:
Two mapping modes are available. The following uses SUSE Linux 10 (disks asm1 and asm2 involved) as an example to describe how to configure both mapping modes:
KERNEL=="sd*1", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s /block/$parent", RESULT=="36200bc71001f375519f5d2c0000000f9", NAME="asm1", OWNER="oracle", GROUP="dba", MODE="0660"
KERNEL=="sd*1", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s /block/$parent", RESULT=="36200bc71001f375519f5d2c0000000f9", SYMLINK+="asm1", OWNER="oracle", GROUP="dba", MODE="0660"
The value of the KERNEL parameter must contain wildcards (for example, 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 3 describes the configuration details.
Authentication Mode |
Requirements |
|---|---|
Database authentication |
In a cluster, authentication modes of all hosts must be the same. |
In a protected group, authentication modes of protected objects 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 single-instance Oracle databases deployed on ASM, the following requirements must be met:
|
The eReplication Agent can ensure consistency between Oracle databases only when the databases are running in archive mode. Perform the following steps to check the running mode of a database.
The following shows the command format and output:
C:\Documents and Settings\Administrator>sqlplus /nolog SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 3 26 18:09:00 2020 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. SQL> conn sys/abc@db01 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 G:\oracle10g\product\10.2.0\db_1\RDBMS Oldest online log sequence 7 Current log sequence 9
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, Oracle. 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 /oracle/archive Oldest online log sequence 7793 Next log sequence to archive 7795 Current log sequence 7795
Check whether 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 LUN where data files, log files, or control files reside or store temporary them on a LUN different from the LUNs where other database files are stored.