Jeffery takes you step-by-step to install Oracle_rac Step:two

Source: Internet
Author: User

Description: Because the picture is too much no one by one, also hope everyone forgive me. 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0017.gif "alt=" j_0017.gif "/>3, the installation of the clustered Oracle Grid Infrastructure:

The required Oracle software is as follows:

o Oracle Database for Linux g 2nd edition Grid Infrastructure (11.2.0.1.0)

o Oracle Database for Linux g 2nd edition (11.2.0.1.0)

o Oracle Database g 2nd edition Examples (optional)

Installing the Cvuqdisk package for Linux

Install the operating System Package Cvuqdisk on two Oracle RAC nodes. If there is no cvuqdisk, the cluster verification utility cannot discover the shared disk, and you receive an error message when you run the Cluster validation utility (either manually or automatically at the end of the Oracle Grid Infrastructure installation): "The package Cvuqdisk not Installed ". Use Cvuqdisk RPM that applies to your hardware architecture (for example, x86_64 or i386).

Cvuqdisk rpm is included in the RPM directory on the Oracle Grid Infrastructure installation media.

3.1 Installing Cvuqdisk

Set the environment variable cvuqdisk_grp so that it points to the group that is the owner of the Cvuqdisk (this article is Oinstall):

[Email protected] ~]# Cvuqdisk_grp=oinstall; Export Cvuqdisk_grp[[email protected] ~]# cvuqdisk_grp=oinstall; Export CVUQDISK_GRP

in the directory where Cvuqdisk RPM is saved in , install the Cvuqdisk package on two Oracle RAC nodes using the following command:

[[email protected] rpm]# pwd/data/grid/rpm[[email protected] rpm]# RPM-IVH cvuqdisk-1.0.7-1.rpm[[email protected] rpm]# RPM-IVH cvuqdisk-1.0.7-1.rpm


Using CVU to verify that the Oracle cluster components requirements are met

remember to run as a grid user on the node (RACNODE1) that will perform the Oracle installation. In addition, you must configure SSH connectivity for the grid user that is implemented by user equivalence .

Run the following command in the grid software directory:

[email protected] grid]# $./runcluvfy.sh stage-pre crsinst-n Oceani,oceanv -fixup -verbose

Verifying hardware and operating system settings using CVU

[email protected] grid]# ./runcluvfy.sh stage-post hwos-n Oceani,oceanv -verbose

View CVU Report . The result report for all other checks performed by CVU should be "passed" before the installation of the Oracle Grid Infrastructure can proceed.

3.2, install the Oracle Grid Infrastructure for the cluster:
Su-grid#./runinstaller


N-MAP is omitted here .....

When the script is ejected, you must first local node and then remote node to remember not to block tiles


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5D/E1/wKiom1UmC42TEVHgAAYRcSkpxEk636.jpg "title=" Picture 1.jpg "alt=" Wkiom1umc42tevhgaayrcskpxek636.jpg "/>

3.3, verify cluster installation is successful

1. Check the node status in the cluster

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/5D/DC/wKioL1UmDObB8pFsAANMRGWnrp0864.jpg "title=" Picture 2.jpg "alt=" Wkiol1umdobb8pfsaanmrgwnrp0864.jpg "/>

2. Check whether the scan is generated, whether it can ping

3. Check the status of all services

4. Check the status of the ASM instance

4.installationDatabase Soft & Database4.1,CreateAsm_group
Su-gridasmca


4.2, using Oracle user invoke graphical interface to install Oracle Database
$./runinstaller

4.3, using Oracle user Invoke DBCA to create a database
$dbca


4.4, view the entire cluster status
#crs_stat-T


Other precautions:

1. When you create ASM for Votedisk and OCR, you need 3 ASM disk if you choose Normal mode.

2. The Oracle_home directory that installs Oracle Grid infrastructure cannot have dependencies with the Oracle_base directory, and the oracle_home that installs Oracle database must be in Oracle_ The base directory.


5.Partial error collation:

Error 1:

The first node executes the root.sh times error:

Error while loading shared Libraries:libcap.so.1:cannot open Shared object file:no such file or directory

Workaround:

Make sure the LIBCAP package is installed

R P m-q Libcap

Find/-name ' *libcap* '-print

Create a link

Ln-s/lib64/libcap.so.2.16/lib64/libcap.so.1

Remove the root.sh configuration:

. /roothas.pl-deconfig-verbose-force

Run root.sh again.

Error 2:

This error occurs when the ORACLE11GR2 11.2.0.1 RAC is installed on the redhat6.x/centos6.x.

The first node executes the root.sh times error (This problem occurs with each node):

Adding Daemon to Inittab

Crs-4124:oracle High Availability Services startup failed.

Crs-4000:command Start failed, or completed with errors.

Workaround: (temporary)

After generating the file/var/tmp/.oracle/npohasd file, use ROOT to execute the following command immediately:

/bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1

If you are too lazy to see if NPOHASD is generated, use the following command to automate it

Watch-n 0.5/bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1

Error 3:

By DBCA, the following error is reported when building a library based on ASM storage:

Ora-12547:tns:lost Contact

Reason:

In environment where listener home (including SCAN listener which resides in Grid Infrastructure/asm home) and database Ho  Me is owned by different OS user, ORA-12537 could happen when connecting through listener, when creating database through DBCA, or when installing database software and creating a database in Runinstaller. Job Role Separation is a typical example as SCAN and local grid home listener is owned differently than database.

Workaround:

Check that the grid-installed scan Listener directory and the Oracle database directory owner are the same. If not, change to the same or set the directory to 770 permissions.

This article from "Jeffery blog" blog, declined reprint!

Jeffery takes you step-by-step to install Oracle_rac Step:two

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.