Using RCP to replicate the standby database

Source: Internet
Author: User
Tags dba

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.