When we install a dual-machine hot standby database, there is no need to install a database on 2 machines, we simply copy all the files under the app to the standby in RCP mode after a single database host is installed. The following are the main installation steps:
1. Adjust the host kernel parameters on a machine (10.203.1.1 db_01), set up DBA Group and Oracle user, install database software, and install database software only, create DB can be created by hand. Note that after an Oracle user is established here, a password needs to be set for Oracle, otherwise there will be a problem with the trust mechanism.
2. If there is a need for version upgrade, after installing the database software, stop Lsnr, stop DBSNMP, run the upgrade Runinstaller. Since we didn't build the library before, we don't have to run $oracle_home/rdbms/admin/catpatch scripts here.
3. Establish DBA Group and Oracle users on the B-machine (10.203.1.2 db_02) and adjust host parameters, noting the need to ensure consistency between the GID and UID and a machine due to the requirement to build dual-machine hot standby.
4. Add to the/etc/hosts file on machine A:
10.203.1.2 db_02
Add the/etc/hosts file on the B-machine:
10.203.1.1 db_01
5. Establish a trust mechanism to create a. rhosts file in the home directory of a machine
Db_02
Establish the. rhosts file in the home directory of the B machine
Db_01