首页 > 数据库 > Oracle > 10gRAC安装-Clusterware安装
Clusterware安装
启动Xmanager - Passive,使用secureCRT登陆到系统
使用root用户执行
xhost +
使用oracle用户执行
export DISPLAY=172.24.45.105:0.0
解压安装包
[oracle@rac1 setup]$ unzip 10201_clusterware_linux32.zip
进入到解压后目录
[oracle@rac1 setup]$ cd clusterware
运行runinstaller进行安装
[oracle@rac1 clusterware]$ ./runInstaller -ignoreSysPrereqs
确定path为环境变量中CRS_HOME设置的路径
这里出现的警告是系统版本的问题,如果使用redhat 4则没有该问题,这里我们选择忽略即可
这里点击ADD添加节点2 rac2
选择网卡类型
选择OCR的磁盘,这里我们使用外部冗余策略
选择votingdisk磁盘
执行脚本
[root@rac1 ~]# /s01/app/oracle/oraInventory/orainstRoot.sh
Changing permissions of /s01/app/oracle/oraInventory to 770.
Changing groupname of /s01/app/oracle/oraInventory to oinstall.
The execution of the script is complete
[root@rac1 ~]# /s01/app/oracle/product/10.2.0/crs/root.sh
WARNING: directory '/s01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/s01/app/oracle/product' is not owned by root
WARNING: directory '/s01/app/oracle' is not owned by root
WARNING: directory '/s01/app' is not owned by root
WARNING: directory '/s01' is not owned by root
Checking to see if Oracle CRS stack is already configured
/etc/oracle does not exist. Creating it now.
Setting the permissions on OCR backup directory
Setting up NS directories
Failed to upgrade Oracle Cluster Registry configuration
处理
[root@rac1 logs]# chown root:oinstall /dev/raw/raw*
[root@rac1 logs]# chmod 775 /dev/raw/raw*
[root@rac1 logs]# ll /dev/raw/raw*
crwxrwxr-x 1 root oinstall 162, 1 Feb 18 16:16 /dev/raw/raw1
crwxrwxr-x 1 root oinstall 162, 2 Feb 18 15:43 /dev/raw/raw2
[root@rac1 logs]# clsfmt ocr /dev/raw/raw1
clsfmt: Received unexpected error 4 from skgfifi
skgfifi: Additional information: -2
Additional information: 629145600
遇到一个bug啊,呜呜
p4679769_10201_LINUX.zip
# To apply the patch, unzip the PSE container file:
#
#
#
# p4679769_10201_LINUX.zip
#
#
#
# Set your current directory to the directory where the patch
#
# is located:
#
#
#
# % cd 4679769
#
#
#
# Copy the clsfmt.bin binary to the $ORACLE_HOME/bin directory where
#
# clsfmt is being run:
#
#
#
# % cp $ORACLE_HOME/bin/clsfmt.bin $ORACLE_HOME/bin/clsfmt.bin.bak
#
# % cp clsfmt.bin $ORACLE_HOME/bin/clsfmt.bin
#
#
#
# Ensure permissions on the clsfmt.bin binary are correct:
#
#
#
# % chmod 755 $ORACLE_HOME/bin/clsfmt.bin
[root@rac1 setup]# cp $CRS_HOME/bin/clsfmt.bin $CRS_HOME/bin/clsfmt.bin.bak
[root@rac1 4679769]# cp clsfmt.bin $CRS_HOME/bin
cp: overwrite `/s01/app/oracle/product/10.2.0/crs/bin/clsfmt.bin'? y
[root@rac1 4679769]# chmod 775 $CRS_HOME/bin/clsfmt.bin
[root@rac1 4679769]# clsfmt ocr /dev/raw/raw1
clsfmt: successfully initialized file /dev/raw/raw1
[root@rac1 4679769]# dd if=/dev/zero of=/dev/raw/raw1 bs=10M count=10
10+0 records in
10+0 records out
104857600 bytes (105 MB) copied, 0.580968 seconds, 180 MB/s
[root@rac1 4679769]# /s01/app/oracle/product/10.2.0/crs/root.sh
WARNING: directory '/s01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/s01/app/oracle/product' is not owned by root
WARNING: directory '/s01/app/oracle' is not owned by root
WARNING: directory '/s01/app' is not owned by root
WARNING: directory '/s01' is not owned by root
Checking to see if Oracle CRS stack is already configured
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/s01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/s01/app/oracle/product' is not owned by root
WARNING: directory '/s01/app/oracle' is not owned by root
WARNING: directory '/s01/app' is not owned by root
WARNING: directory '/s01' is not owned by root
assigning default hostname rac1 for node 1.
assigning default hostname rac2 for node 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: rac1 rac1-priv rac1
node 2: rac2 rac2-priv rac2
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Now formatting voting device: /dev/raw/raw2
Format of 1 voting devices complete.
Startup will be queued to init within 90 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
rac1
CSS is inactive on these nodes.
rac2
Local node checking complete.
Run root.sh on remaining nodes to start CRS daemons.
节点2:
进入$CRS_HOME/bin/目录, 用vi来修改vipca 和 srvctl 2个命令
then
# LD_ASSUME_KERNEL=2.4.19
# export LD_ASSUME_KERNEL
echo -- 这里一定要加上,不然返回会报错
fi
#End workaround
[root@rac2 4679769]# /s01/app/oracle/product/10.2.0/crs/root.sh
WARNING: directory '/s01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/s01/app/oracle/product' is not owned by root
WARNING: directory '/s01/app/oracle' is not owned by root
WARNING: directory '/s01/app' is not owned by root
WARNING: directory '/s01' is not owned by root
Checking to see if Oracle CRS stack is already configured
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/s01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/s01/app/oracle/product' is not owned by root
WARNING: directory '/s01/app/oracle' is not owned by root
WARNING: directory '/s01/app' is not owned by root
WARNING: directory '/s01' is not owned by root
assigning default hostname rac1 for node 1.
assigning default hostname rac2 for node 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: rac1 rac1-priv rac1
node 2: rac2 rac2-priv rac2
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Now formatting voting device: /dev/raw/raw2
Format of 1 voting devices complete.
Startup will be queued to init within 90 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
rac1
rac2
CSS is active on all nodes.
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS stack installed and running under init(1M)
Running vipca(silent) for configuring nodeapps
/s01/app/oracle/product/10.2.0/crs/bin/vipca: line 123: syntax error near unexpected token `fi'
/s01/app/oracle/product/10.2.0/crs/bin/vipca: line 123: ` fi'
启动vipca来处理这个问题
[root@rac1 ~]# vipca
/s01/app/oracle/product/10.2.0/crs/jdk/jre//bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
[root@rac1 ~]#
# vi $ORA_CRA_HOME/crs_1/bin/vipca
JREDIR=/oracle/product/10.2.0/crs/jdk/jre/ #把最后/的去掉,改为:
JREDIR=/oracle/product/10.2.0/crs/jdk/jre
注释
# if [ "$arch" = "i686" -o "$arch" = "ia64" ]
# then
# LD_ASSUME_KERNEL=2.4.19
# export LD_ASSUME_KERNEL
# fi
完成
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21980353/viewspace-1873215/ ,如需转载,请注明出处,否则将追究法律责任。