oracle 11gR2 RAC 安装
?
不用 OCR voting 分區(qū)
安裝文檔參照了 http://www.oracle-base.com/articles/11g/OracleDB11gR2RACInstallationOnOEL5UsingVMwareServer2.php 。
rpm -q binutils \
?????? compat-libstdc++ \
?????? elfutils-libelf \
?????? elfutils-libelf-devel \
?????? gcc \
?????? gcc-c++ \
?????? glibc \
?????? glibc-common \
?????? glibc-devel \
?????? glibc-headers \
?????? ksh \
?????? libaio \
?????? libaio-devel \
?????? libgcc \
?????? libstdc++ \
?????? libstdc++-devel \
?????? make \
?????? sysstat \
?????? unixODBC \
?????? unixODBC-devel
??????
# 安裝所需包
??????
cd /media/cdrom/Server
rpm -Uvh binutils-2.*
rpm -Uvh compat-libstdc++-33*
rpm -Uvh elfutils-libelf-0.*
rpm -Uvh elfutils-libelf-devel-*
rpm -Uvh gcc-4.*
rpm -Uvh gcc-c++-4.*
rpm -Uvh glibc-2.*
rpm -Uvh glibc-common-2.*
rpm -Uvh glibc-devel-2.*
rpm -Uvh glibc-headers-2.*
rpm -Uvh ksh-2*
rpm -Uvh libaio-0.*
rpm -Uvh libaio-devel-0.*
rpm -Uvh libgcc-4.*
rpm -Uvh libstdc++-4.*
rpm -Uvh libstdc++-devel-4.*
rpm -Uvh make-3.*
rpm -Uvh sysstat-7.*
rpm -Uvh unixODBC-2.*
rpm -Uvh unixODBC-devel-2.*
?
cat >> /etc/hosts << EOF
127.0.0.1 localhost.localdomain localhost
# Public
192.168.1.101 rac1.localdomain rac1
192.168.1.102 rac2.localdomain rac2
# Private
192.168.0.101 rac1-priv.localdomain rac1-priv
192.168.0.102 rac2-priv.localdomain rac2-priv
# Virtual
192.168.1.111 rac1-vip.localdomain rac1-vip
192.168.1.112 rac2-vip.localdomain rac2-vip
# SCAN
192.168.1.201 rac-scan.localdomain rac-scan
EOF
??????
cat >> /etc/sysctl.conf << EOF??????
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586??????
EOF
???????
#內(nèi)核生效??????
/sbin/sysctl -p
??????
cat >> /etc/security/limits.conf << EOF??????
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
EOF
?
cat >> /etc/pam.d/login << EOF
session required pam_limits.so
EOF
?
#確認(rèn)/etc/selinux/config 的 SELINUX=disabled
#不要 ntpd
service ntpd stop
chkconfig ntpd off
mv /etc/ntp.conf /etc/ntp.conf.org
rm /var/run/ntpd.pid
#創(chuàng)建 oracle 用戶(hù)
groupadd -g 1000 oinstall
groupadd -g 1200 dba
useradd -u 1100 -g oinstall -G dba oracle
passwd oracle
#設(shè)定,修改密碼
passwd oracle
mkdir -p /oracle/grid
mkdir -p /oracle/oraInventory
mkdir -p /oracle/app/ora11g
chown -R oracle:oinstall /oracle
chmod -R 775 /oracle
vi /home/oracle/.bash_profile
???????
TMP=/tmp;???????????????????????? export TMP
TMPDIR=$TMP;????????????????????? export TMPDIR
ORACLE_HOSTNAME=rac1.localdomain; export ORACLE_HOSTNAME
ORACLE_UNQNAME=oradb;???????????? export ORACLE_UNQNAME
ORACLE_BASE=/oracle/app;????????? export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/ora11g;? export ORACLE_HOME
ORACLE_SID=oradb1;??????????????? export ORACLE_SID
ORACLE_TERM=xterm;??????????????? export ORACLE_TERM
PATH=/usr/sbin:$PATH;???????????? export PATH
PATH=$ORACLE_HOME/bin:$PATH;????? export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLA????? SSPATH
if [ $USER = "oracle" ]; then
? if [ $SHELL = "/bin/ksh" ]; then
??? ulimit -p 16384
??? ulimit -n 65536
? else
??? ulimit -u 16384 -n 65536
? fi
fi
?????
?????
查找內(nèi)核,下載相應(yīng)的asm 的rpm?
uname -a
??????
http://www.oracle.com/technology/software/tech/linux/asmlib/rhel5.html
oracleasm-2.6.18-194.el5-2.0.5-1.el5.i686.rpm
oracleasmlib-2.0.4-1.el5.i386.rpm
oracleasm-support-2.1.3-1.el5.i386.rpm
#安裝oracle asm lib
rpm -ivh oracleasm*
#配置asm
/etc/init.d/oracleasm configure
Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver:???????????????????? [? OK? ]
Scanning the system for Oracle ASMLib disks:?????????????? [? OK? ]
?
#增加一個(gè)磁盤(pán)sdb,分區(qū),但不格式化
fdisk /dev/sdb
#--------------------------
Command (m for help): n
Command action
?? e?? extended
?? p?? primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-2610, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-2610, default 2610):
Using default value 2610
Command (m for help): w
#---------------------------
#創(chuàng)建asm磁盤(pán)
/etc/init.d/oracleasm createdisk DISK1 /dev/sdb1
附加oracleasm的其他命令。
-------------------------------------------------
更新一下
/etc/init.d/oracleasm update-driver
查詢(xún)磁盤(pán)是否被使用
/etc/init.d/oracleasm querydisk /dev/sda1
顯示asm磁盤(pán)
/etc/init.d/oracleasm listdisks
刪除磁盤(pán)
/etc/init.d/oracleasm deletedisk DISK1
--------------------------------------------------
安裝 grid
/mnt/cdrom/runInstaller
install and configure grid infrastructure for a cluster
next
typical installation
next
scan name : rac-scan
add 節(jié)點(diǎn)2 hostname ,virtual IP name
SSH connectivity setup
test
next
oracle base : /oracle/app
software location : /oracle/grid
選DISK1
next
#檢查配置
Finished 開(kāi)始安裝
安裝到65%時(shí)自動(dòng)將/oracle/grid copy 到 rac2
?
最后執(zhí)行 /grid/root.sh 時(shí)發(fā)生錯(cuò)誤
Failure with signal 11 from command: /grid/bin/ocrconfig -local -upgrade oracle oinstall
Failed to create or upgrade OLR
CRS-2106:The OLR location /oracle/grid/cdata/rac1.olr is inaccessible. Details in /oracle/grid/log/rac1/client/ocrconfig_7927.log.
網(wǎng)上很少這個(gè)問(wèn)題的答案,有說(shuō)firewall引起的也有說(shuō)selinux引起的。
但我確信這兩個(gè)都是關(guān)閉的。
也有說(shuō)硬件部以致引起的。我的虛擬機(jī)copy的,完全一模一樣。
也有說(shuō)以下的方法
刪除節(jié)點(diǎn)注冊(cè)資源
/oracle/grid/crs/install/roothas.pl -delete -force -verbose
chcon -t texrel_shlib_t /oracle/grid/lib/libclntsh.so.11.1
/oracle/grid/perl/bin/perl -I /oracle/grid/perl/lib -I /oracle/grid/crs/install /oracle/grid/crs/install/roothas.pl -delete -force
/oracle/grid/perl/bin/perl -I /oracle/grid/perl/lib -I /oracle/grid/crs/install /oracle/grid/crs/install/roothas.pl
?make -f //oracle/grid/rdbms/lib/ins_rdbms.mk rac_on ioracle
但還是解決不了。
oracle-base上有說(shuō)32bit的有這個(gè)問(wèn)題,64位沒(méi)問(wèn)題。
困擾了3、4天,系統(tǒng)重裝,asm新建,都處理不了。
裝個(gè)64位的試試吧。一樣的操作步驟,還真得很順利
[root@rac1 ~]# /oracle/oraInventory/orainstRoot.sh
Changing permissions of /oracle/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /oracle/oraInventory to oinstall.
The execution of the script is complete.
[root@rac1 ~]# /oracle/grid/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
??? ORACLE_OWNER= oracle
??? ORACLE_HOME=? /oracle/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
?? Copying dbhome to /usr/local/bin ...
?? Copying oraenv to /usr/local/bin ...
?? Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2010-06-07 19:51:10: Parsing the host name
2010-06-07 19:51:10: Checking for super user privileges
2010-06-07 19:51:10: User has super user privileges
Using configuration parameter file: /oracle/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
? root wallet
? root wallet cert
? root cert export
? peer wallet
? profile reader wallet
? pa wallet
? peer wallet keys
? pa wallet keys
? peer cert request
? pa cert request
? peer cert
? pa cert
? peer root cert TP
? profile reader root cert TP
? pa root cert TP
? peer pa cert TP
? pa peer cert TP
? profile reader pa cert TP
? profile reader peer cert TP
? peer user cert
? pa user cert
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
ADVM/ACFS is not supported on centos-release-5-5.el5.centos
?
CRS-2672: Attempting to start 'ora.gipcd' on 'rac1'
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac1'
CRS-2676: Start of 'ora.gipcd' on 'rac1' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac1'
CRS-2676: Start of 'ora.gpnpd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac1'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'
CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac1'
CRS-2676: Start of 'ora.ctssd' on 'rac1' succeeded
ASM created and started successfully.
DiskGroup DATA created successfully.
clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-2672: Attempting to start 'ora.crsd' on 'rac1'
CRS-2676: Start of 'ora.crsd' on 'rac1' succeeded
CRS-4256: Updating the profile
Successful addition of voting disk 48db7efdcad74fa1bf826bfa35ebf1f6.
Successfully replaced voting disk group with +DATA.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
##? STATE??? File Universal Id??????????????? File Name Disk group
--? -----??? -----------------??????????????? --------- ---------
?1. ONLINE?? 48db7efdcad74fa1bf826bfa35ebf1f6 (ORCL:DISK1) [DATA]
Located 1 voting disk(s).
CRS-2673: Attempting to stop 'ora.crsd' on 'rac1'
CRS-2677: Stop of 'ora.crsd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'rac1'
CRS-2677: Stop of 'ora.asm' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac1'
CRS-2677: Stop of 'ora.ctssd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'rac1'
CRS-2677: Stop of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac1'
CRS-2677: Stop of 'ora.cssd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac1'
CRS-2677: Stop of 'ora.gpnpd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac1'
CRS-2677: Stop of 'ora.gipcd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac1'
CRS-2677: Stop of 'ora.mdnsd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac1'
CRS-2676: Start of 'ora.mdnsd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'rac1'
CRS-2676: Start of 'ora.gipcd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac1'
CRS-2676: Start of 'ora.gpnpd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac1'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'
CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac1'
CRS-2676: Start of 'ora.ctssd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac1'
CRS-2676: Start of 'ora.asm' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'rac1'
CRS-2676: Start of 'ora.crsd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'rac1'
CRS-2676: Start of 'ora.evmd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac1'
CRS-2676: Start of 'ora.asm' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.DATA.dg' on 'rac1'
CRS-2676: Start of 'ora.DATA.dg' on 'rac1' succeeded
rac1???? 2010/06/07 19:57:32???? /oracle/grid/cdata/rac1/backup_20100607_195732.olr
Preparing packages for installation...
cvuqdisk-1.0.7-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
Updating inventory properties for clusterware
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB.?? Actual 3760 MB??? Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /oracle/oraInventory
'UpdateNodeList' was successful.
#---------------------------------------------------------
RAC2
在RAC1還在執(zhí)行root.sh中的時(shí)候,在rac2執(zhí)行
[root@rac2 ~]# /oracle/grid/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
??? ORACLE_OWNER= oracle
??? ORACLE_HOME=? /oracle/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
?? Copying dbhome to /usr/local/bin ...
?? Copying oraenv to /usr/local/bin ...
?? Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2010-06-07 19:47:06: Parsing the host name
2010-06-07 19:47:06: Checking for super user privileges
2010-06-07 19:47:06: User has super user privileges
Using configuration parameter file: /oracle/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
? root wallet
? root wallet cert
? root cert export
? peer wallet
? profile reader wallet
? pa wallet
? peer wallet keys
? pa wallet keys
? peer cert request
? pa cert request
? peer cert
? pa cert
? peer root cert TP
? profile reader root cert TP
? pa root cert TP
? peer pa cert TP
? pa peer cert TP
? profile reader pa cert TP
? profile reader peer cert TP
? peer user cert
? pa user cert
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
ADVM/ACFS is not supported on centos-release-5-5.el5.centos
?
CRS-2672: Attempting to start 'ora.gipcd' on 'rac2'
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac2'
CRS-2676: Start of 'ora.mdnsd' on 'rac2' succeeded
CRS-2676: Start of 'ora.gipcd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac2'
CRS-2676: Start of 'ora.gpnpd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac2'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac2'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac2'
CRS-2676: Start of 'ora.diskmon' on 'rac2' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac2'
CRS-2676: Start of 'ora.ctssd' on 'rac2' succeeded
Disk Group DATA already exists. Cannot be created again
Configuration of ASM failed, see logs for details
Did not succssfully configure and start ASM
CRS-2500: Cannot stop resource 'ora.crsd' as it is not running
CRS-4000: Command Stop failed, or completed with errors.
Command return code of 1 (256) from command: /oracle/grid/bin/crsctl stop resource ora.????????????????????????? crsd -init
Stop of resource "ora.crsd -init" failed
Failed to stop CRSD
CRS-2500: Cannot stop resource 'ora.asm' as it is not running
CRS-4000: Command Stop failed, or completed with errors.
Command return code of 1 (256) from command: /oracle/grid/bin/crsctl stop resource ora.????????????????????????? asm -init
Stop of resource "ora.asm -init" failed
Failed to stop ASM
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac2'
CRS-2677: Stop of 'ora.ctssd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'rac2'
CRS-2677: Stop of 'ora.cssdmonitor' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac2'
CRS-2677: Stop of 'ora.cssd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac2'
CRS-2677: Stop of 'ora.gpnpd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac2'
CRS-2677: Stop of 'ora.gipcd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac2'
CRS-2677: Stop of 'ora.mdnsd' on 'rac2' succeeded
Initial cluster configuration failed.? See /oracle/grid/cfgtoollogs/crsconfig/rootcrs_r????????????????????????? ac2.log for details
[root@rac2 ~]# /oracle/grid/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
??? ORACLE_OWNER= oracle
??? ORACLE_HOME=? /oracle/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin.? Overwrite it? (y/n)
[n]:
The file "oraenv" already exists in /usr/local/bin.? Overwrite it? (y/n)
[n]:
The file "coraenv" already exists in /usr/local/bin.? Overwrite it? (y/n)
[n]:
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2010-06-07 19:50:31: Parsing the host name
2010-06-07 19:50:31: Checking for super user privileges
2010-06-07 19:50:31: User has super user privileges
Using configuration parameter file: /oracle/grid/crs/install/crsconfig_params
CRS is already configured on this node for crshome=0
Cannot configure two CRS instances on the same cluster.
Please deconfigure before proceeding with the configuration of new home.
#---------------------------------------------------
這個(gè)顯示怪怪的,決定再次執(zhí)行root.sh,先刪除節(jié)點(diǎn)注冊(cè)資源
[root@rac2 ~]# /oracle/grid/crs/install/roothas.pl -delete -force -verbose
2010-06-07 19:51:31: Checking for super user privileges
2010-06-07 19:51:31: User has super user privileges
2010-06-07 19:51:31: Parsing the host name
Using configuration parameter file: /oracle/grid/crs/install/crsconfig_params
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Stop failed, or completed with errors.
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Delete failed, or completed with errors.
CRS-4133: Oracle High Availability Services has been stopped.
ADVM/ACFS is not supported on centos-release-5-5.el5.centos
ACFS-9201: Not Supported
Successfully deconfigured Oracle Restart stack
#-----------------------------------------------------------
等rac1 的root.sh結(jié)束后
[root@rac2 ~]# /oracle/grid/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
??? ORACLE_OWNER= oracle
??? ORACLE_HOME=? /oracle/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin.? Overwrite it? (y/n)
[n]: y
?? Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin.? Overwrite it? (y/n)
[n]: y
?? Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin.? Overwrite it? (y/n)
[n]: y
?? Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2010-06-07 19:52:01: Parsing the host name
2010-06-07 19:52:01: Checking for super user privileges
2010-06-07 19:52:01: User has super user privileges
Using configuration parameter file: /oracle/grid/crs/install/crsconfig_params
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
ADVM/ACFS is not supported on centos-release-5-5.el5.centos
?
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node rac1, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac2'
CRS-2676: Start of 'ora.mdnsd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'rac2'
CRS-2676: Start of 'ora.gipcd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac2'
CRS-2676: Start of 'ora.gpnpd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac2'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac2'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac2'
CRS-2676: Start of 'ora.diskmon' on 'rac2' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac2'
CRS-2676: Start of 'ora.ctssd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac2'
CRS-2676: Start of 'ora.asm' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'rac2'
CRS-2676: Start of 'ora.crsd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'rac2'
CRS-2676: Start of 'ora.evmd' on 'rac2' succeeded
rac2???? 2010/06/07 20:03:52???? /oracle/grid/cdata/rac2/backup_20100607_200352.olr
Preparing packages for installation...
cvuqdisk-1.0.7-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
Updating inventory properties for clusterware
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB.?? Actual 4000 MB??? Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /oracle/oraInventory
'UpdateNodeList' was successful.
返回安裝
configure oracle grid infrastructure for a cluster failed
oracle cluster verification utility failed.
其他都successful
next
The installation of oracle grid infrastructure for a cluster was successful,but some configuration assistants failed ,were cancelled or skipped.
close
#繼續(xù)安裝數(shù)據(jù)庫(kù)軟件
/mnt/cdrom/runInstaller
第一個(gè)畫(huà)面部輸入email地址,有警告信息,跳過(guò)
僅安裝軟件
選擇Real application clusters database installation
選擇rac1,rac2.(rac1默認(rèn)選擇)
test ssh connectivity
next
selected language:english
next
next
oracle base :/oracle/app
software location /oracle/app/ora11g
next
next
#檢查配置
clock synchronization failed
打開(kāi)終端 執(zhí)行 vmware-toolbox 同步系統(tǒng)時(shí)間。
還是這個(gè)錯(cuò)誤
date -s '21'
/oracle/grid/inventory/Templates/bin/cluvfy comp clocksync -verbose
PRVF-9661 : Time offset is NOT within the specified limits on the following nodes:"[rac2]"
如果這樣做還不行,則修改文件:C:\Documents and Settings\All Users\Application Data\VMware\VMware Server\config.ini
添加如下三行:
host.cpukHz = "2800000"
host.noTSC = "TRUE"
ptsc.noTSC = "TRUE"
其中:host.cpukHz要根據(jù)你的cpu的實(shí)際主頻修改,例子中表示CPU主頻是2.8G。
/etc/sysconfig/ntpd???????
還是失敗,vmware 能調(diào)時(shí)間的都調(diào)過(guò)了。沒(méi)辦法。最終放棄。
使用ntp吧。
If you are using NTP, you must add the "-x" option into the following line in the "/etc/sysconfig/ntpd" file.
vi /etc/sysconfig/ntpd
OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"??
恢復(fù)之前的
mv /etc/ntp.conf.org /etc/ntp.conf
service ntpd start
驗(yàn)證??????????????????????????????????????????????
/oracle/grid/bin/crsctl check ctss????????????
/oracle/grid/bin/cluvfy comp clocksync -n all?
/oracle/grid/bin/cluvfy comp clocksync -verbose
雖然有提示時(shí)間補(bǔ)償失敗
PRVF-5413 : Node "rac1" has a time offset of -41698.0 that is beyond permissible limit of 1000.0 from NTP Time Server "209.81.9.7"
? rac1????????? -41698.0????????????????? failed
但最終還是
Result: Clock synchronization check using Network Time Protocol(NTP) passed
Oracle Cluster Time Synchronization Services check passed
Verification of Clock Synchronization across the cluster nodes was successful.
好了,數(shù)據(jù)庫(kù)軟件繼續(xù)安裝。
安裝中....等待....
[root@rac2 ~]# /oracle/app/ora11g/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
??? ORACLE_OWNER= oracle
??? ORACLE_HOME=? /oracle/app/ora11g
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin.? Overwrite it? (y/n)
[n]: y
?? Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin.? Overwrite it? (y/n)
[n]: y
?? Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin.? Overwrite it? (y/n)
[n]: y
?? Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
數(shù)據(jù)庫(kù)安裝完了,測(cè)試一下,嗯,開(kāi)心
[oracle@rac1 ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 8 20:54:04 2010
Copyright (c) 1982, 2009, Oracle.? All rights reserved.
SQL> exit
創(chuàng)建數(shù)據(jù)庫(kù)
dbca
選擇集群安裝,其他跟單機(jī)版差不多。就沒(méi)記下來(lái)了。
2010-6-8 21:04 開(kāi)始創(chuàng)建數(shù)據(jù)庫(kù),現(xiàn)在22點(diǎn),還只是43% 。暈...
待續(xù)
?????????????????????????????????????????????????????????????
?
轉(zhuǎn)載于:https://www.cnblogs.com/abenz/archive/2010/06/08/1754328.html
與50位技術(shù)專(zhuān)家面對(duì)面20年技術(shù)見(jiàn)證,附贈(zèng)技術(shù)全景圖總結(jié)
以上是生活随笔為你收集整理的oracle 11gR2 RAC 安装的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: SQL开发好助手—SQL Assista
- 下一篇: 树与二叉树的深度优先与广度优先算法(递归