10GR2 Clusterware Simple Installation steps

Source: Internet
Author: User

First, install the operating system (slightly)Note that I use the Oel 5u5 version here because it comes with the environment variable installation package provided by Oracle, so it is easy to install the Oracle software, so it is recommended to use this version
Second, configure local Yum source
--mount the mounting plate to mediamount-t Iso9660/dev/cdrom/media
--Configure repos Add the following vi/etc/yum.repos.d/oel5.repos[oel5]name = Oel 5 Dvdbasurl = File:///media/Servergpgcheck =0enabled = 1--1 means enable this repos
Iii. Configuring Trust Relationships (Oracle users)
--Node 1 and Node 2 are executed separately:ssh-keygen-t RSAssh-keygen-t DSA
--Node 1 execution:cat ~/.ssh/*.pub >> ~/.ssh/authorized_keysssh rac2 cat ~/.ssh/*.pub >> ~/.ssh/authorized_keys SCP ~/.ssh/authorized_keys Rac2:~/.ssh/authorized_keys
In short, the 2-side node information is written to the public key file, and then ssh with each other no longer need the password, because the RAC installation needs to copy files between the nodes
--Authentication Node 1 execution: SSH rac1 datessh rac2 datessh rac1-priv datessh rac2-priv Date
Node 2 execution: SSH rac1 datessh rac2 datessh rac1-priv datessh rac2-priv Date
Multiple authentication several times, until no need to enter the password, here to pay attention to Authorized_keys do not miss S, I have tried for a long time also did not succeed, finally found that the public key file name is wrong, less a s caused by
iv. Configuring shared disks
--Add several block disks and partition FDISK-LFDISK/DEV/SDBFDISK/DEV/SDCFDISK/DEV/SDDFDISK/DEV/SDE

If you encounter the need to restart to identify the partition information, you can use the Linux partporbe command, you can do it without restarting to let kernel recognize the new partition can also perform partprobe-s to view
[Email protected] ~]#FDISK/DEV/SDC
Command (M for help): Ncommand action E Extended P primary partition (1-4) ppartition number (1-4): 1First cylinder (1-12, default 1): Using default value 1Last cylinder or +size or +sizem or +sizek (1-12, default): Using Default Valu e 12
Command (M for help): Wthe partition table have been altered!
Calling IOCTL () to re-read partition table.
warning:re-reading the partition table failed with error 16:device or resource busy.The kernel still uses the old table.The new table is used at the next reboot.Syncing disks. [Email protected] ~]#partprobe-s/dev/sda:msdos partitions 1 2/dev/sdb:msdos partitions 1/dev/sdc:msdos Partitions 1/dev/sdd:msdos Partitions 1/dev/sde:msdos Partitions 1[email protected] install]#

--bound disk for 4.x and 5.x systems, the binding method is different
4.x:# VI/etc/sysconfig/rawdevices
/dev/raw/raw1/dev/sdc1/dev/raw/raw2/dev/sdd1/dev/raw/raw3/dev/sde1
# VI/etc/udev/permissions.d/50-udev.permissions# raw devicesram*:root:disk:0660#raw/*:root:disk:0660raw/*:oracle:dba:0660
5.x:# VI/etc/udev/rules.d/60-raw.rulesaction== "Add", kernel== "/dev/sdb1", run+= "/bin/raw/dev/raw/raw1%N"action== "Add", env{major}== "8", env{minor}== "+", run+= "/bin/raw/dev/raw/raw1%M%M"action== "Add", kernel== "/DEV/SDC1", run+= "/bin/raw/dev/raw/raw2%N"action== "Add", env{major}== "8", env{minor}== ", run+="/bin/raw/dev/raw/raw2%M%M "action== "Add", kernel== "/dev/sdd1", run+= "/bin/raw/dev/raw/raw3%N"action== "Add", env{major}== "8", env{minor}== "$", run+= "/bin/raw/dev/raw/raw3%M%M"action== "Add", kernel== "/dev/sde1", run+= "/bin/raw/dev/raw/raw4%N"action== "Add", env{major}== "8", env{minor}== ", run+="/bin/raw/dev/raw/raw4%M%M "action== "Add", kernel== "raw*", owner= "Oracle", group= "Oinstall", mode= "660 "
Just add the Red section and restart Udev,when configured correctly, the following is displayed:
[email protected] ~]$ Ll/dev/raw
Total 0CRW-RW----1 Oracle Oinstall 162, 1 Jan 22:54 RAW1CRW-RW----1 Oracle Oinstall 162, 2 Jan 22:24 raw2crw-rw- ---1 Oracle oinstall 162, 3 Jan 22:56 RAW3CRW-RW----1 Oracle Oinstall 162, 4 Jan 22:54 Raw4
v. Adding environment variables
Node 1:[email protected] ~]$Vi. bash_profileexport oracle_sid=rac1export Oracle_home=/u01/oracle/10.2.0/db_1export ORA_CRS_HOME=/u01/oracle/ 10.2.0/crs_1export path= $ORACLE _home/bin: $ORA _crs_home/bin: $ORACLE _home/jdk/bin: $PATH
Node 2:[email protected] ~]$Vi. bash_profileexport oracle_sid=rac2export Oracle_home=/u01/oracle/10.2.0/db_1export ORA_CRS_HOME=/u01/oracle/ 10.2.0/crs_1export path= $ORACLE _home/bin: $ORA _crs_home/bin: $ORACLE _home/jdk/bin: $PATH
vi. installation of Clusterware
--Before the pre-installation checkCD./clusterware/cluvfy
./cluvfy.sh-stage Pre crsinst-n Rac1,rac2-verbose
Will list a lot of content, detect whether to meet the conditions of installing clusterware, which need to install a compat_db package separately, oracle-validated package will not install this will also report a few other COMPAT packet detection failure is ignored, Because it's just the wrong version. If you encounter other content that is not passed, you need to deal with it until you pass all but the above errors.
--Start the installation CD./clusterware
./RUNINSTALL-IGNORESYSPREREQS (parameter can ignore case, command does not allow)
Running Oui to the end will require 2 scripts to be executed at 2 nodes, in the order of:Script 1:rac1->rac2Script 2:rac1->rac2The first 3 executions are no problem, to the 4th step, the execution of root.sh on Node 2, will be error:
[Email protected] bin]#/u01/oracle/10.2.0/crs_1/root.sh
Warning:directory '/u01 ' isn't owned by rootchecking to see if the Oracle CRS stack is already configured
Setting the permissions on OCR backup directorysetting up NS directoriesoracle Cluster Registry Configuration upgraded SUC Cessfullywarning:directory '/u01 ' isn't owned by rootclscfg:existing configuration version 3 Detected.clscfg:version 3 is 10G Release 2.assigning default hostname RAC1 for node 1.assigning default hostname RAC2 for node 2.Successfully accum ulated necessary OCR keys. Using ports:css=49895 crs=49896 evmc=49898 and Evmr=49897.node <nodenumber>: <nodename> <private Interconnect name> NO KEYS were written. Supply-force parameter to Override.-force is destructive and would destroy any previous clusterconfiguration. Oracle Cluster Registry for Cluster have already been initializedstartup would be queued to init withinseconds. Adding daemons to inittabexpecting the CRS daemons to being up withinseconds.        CSS is active on these nodes. Rac1 Rac2css is active in all nodes. Waiting for the Oracle CRSD and EVMD to startoracle CRS stack installed and running under init (1M) running VIPCA (silent) fo R Configuring Nodeapps/u01/crs_1/jdk/jre//bin/java:error while loading shared libraries:libpthread.so.0:cannot open Shared object file:n o such file or directory
You need to wait a few minutes (90s+600s), and then an error occurs because of a bug in Oracle on 10.2.0.1, the workaround is toModify $ora_crs_home/bin full VIPCA and Srvctl files, add unset ld_assume_kernel Save at the end of the file, and then re-execute Node 2 root.sh
[Email protected] bin]#/u01/oracle/10.2.0/crs_1/root.shWarning:directory '/u01 ' isn't owned by rootchecking to see if the Oracle CRS stack is already configuredOracle CRS Stack is already configured and would be running under init (1M)[Email protected] bin]#./crs_stat-tCrs-0202:no Resources is registered.
At this time because there is no VIP configured, so no resources are registered, go to any node to run VIPCA (if the node's VIPCA has been modified), if the following error is reported:
[email protected] bin]$ VIPCAError 0 (native:listnetinterfaces:[3])[Error 0 (native:listnetinterfaces:[3])]
Then you need to configure the network card: [[email protected] bin]$./oifcfg iflisteth0 192.168.1.0eth1 10.0.0.0[Email protected] bin]$/oifcfg getif[[email protected] bin]$./oifcfg Setif-global eth0/192.168.1.0:public[Email protected] bin]$./oifcfg Setif-global eth1/10.10.10.1:cluster_interconnect[Email protected] bin]$/oifcfg getifeth0 192.168.1.0 Global Publiceth1 10.10.10.1 Global Cluster_interconnect
Note that you have permission to open the GUI and use the root user to execute VIPCA instead of the Oracle user, otherwise you will be reporting insufficient permissions [[email protected] bin]$ vipcainsufficient privileges. Insufficient privileges.
Then will jump out of the VIP Configuration Assistant Oui interface, start to configure VIP, enter the VIP node alias will automatically fill the VIP IP address (process slightly) run out of VIPCA after the exit, execute Crs_stat again, you will find that the resources have been registered to the CRS [email  protected] bin]#./crs_stat-tname           Type           Target    state     Host        ----------------------------------------------------- -------ORA.RAC1.GSD   Application    online    online   &NBSP;RAC1       &NBS P;ora.rac1.ons   Application    online    online   &NBSP;RAC1        ora . RAC1.VIP   Application    online    online   &NBSP;RAC1       &NBSP;ORA.RAC2 . GSD   Application    online    online   &NBSP;RAC2        ora.rac2.ons   Application    online    online   &NBSP;RAC2       &NBSP;ORA.RAC2.VIP &nbsp ; Application    online   &NBSp;online   &NBSP;RAC2

10gr2 clusterware Simple installation steps

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.