之后在按照提示运行root.sh的时候,出现了” USM driver install actions failed”错误
SUSE1:~ # /Oracle/app/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /oracle/app/11.2.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
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 script.
Now product-specific root actions will be performed.
Using configuration parameter file: /oracle/app/11.2.0/grid/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer
USM driver install actions failed
/oracle/app/11.2.0/grid/perl/bin/perl -I/oracle/app/11.2.0/grid/perl/lib -I/oracle/app/11.2.0/grid/crs/install /oracle/app/11.2.0/grid/crs/install/rootcrs.pl execution failed
MOS上提供了p17475946_112040_Linux-x86-64.zip补丁解决该问题,先退出图形安装界面,安装17475946补丁
---1、节点1运行opatch auto安装17475946补丁
su - grid
$ORACLE_HOME/OPatch/ocm/bin/emocmrsp <---生成OCM文件缺省是$HOME目录下的grid.rsp
su - root
suse1:/oracle/media/17475946p # ls
17475946 README.html README.txt bundle.xml
suse1:/oracle/media/17475946p # cd ..
suse1:/oracle/media # /oracle/app/11.2.0/grid/OPatch/opatch auto /oracle/media/17475946p -och /oracle/app/11.2.0/grid -ocmrf /home/grid/ocm.rsp <--改用-och,此选项用于CRS未启动的情况
以下是安装补丁期间的输出
Executing /oracle/app/11.2.0/grid/perl/bin/perl /oracle/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /oracle/media -patchn 17475946p -och /oracle/app/11.2.0/grid -ocmrf /home/grid/ocm.rsp -paramfile /oracle/app/11.2.0/grid/crs/install/crsconfig_params
This is the main log file: /oracle/app/11.2.0/grid/cfgtoollogs/opatchauto2016-06-17_19-10-55.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/oracle/app/11.2.0/grid/cfgtoollogs/opatchauto2016-06-17_19-10-55.report.log
2016-06-17 19:10:55: Starting Clusterware Patch Setup
Using configuration parameter file: /oracle/app/11.2.0/grid/crs/install/crsconfig_params
/oracle/app/11.2.0/grid/bin/crsctl query crs activeversion ... failed rc=8 with message:
Oracle Cluster Registry initialization failed accessing Oracle Cluster Registry device: PROC-26: Error while accessing the physical storage ORA-29701: unable to connect to Cluster Synchronization Service
Stopping CRS...
Stopped CRS successfully
patch /oracle/media/17475946p/17475946 apply successful for home /oracle/app/11.2.0/grid <---表示17475946补丁安装成功
Starting CRS...
Installing Trace File Analyzer
CRS-4123: Oracle High Availability Services has been started.
。。。中间隔了大约5分钟
Oracle Grid Infrastructure stack start initiated but failed to complete at /oracle/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 11814.
---安装完成后使用opatch lsinventory能看到该补丁安装成功
Interim patches (1) :
Patch 17475946 : applied on Fri Jun 17 19:15:51 CST 2016
Unique Patch ID: 18978376
Patch description: "ACFS Interim patch for 17475946"
Created on 29 May 2015, 06:35:10 hrs PST8PDT
Bugs fixed:
17475946
---2、节点2运行opatch auto安装17475946补丁
过程及输出同节点1
---3、由于之前配置CRS的过程中遇到了” USM driver install actions failed”报错而半途中断,这里需要重新配置CRS
先deconfig,清理掉上次残留下的配置
节点1、节点2:分别执行deconfig.sh
su - root
/oracle/app/11.2.0/grid/crs/install/rootcrs.pl -deconfig -force -verbose
Successfully deconfigured Oracle clusterware stack on this node <---出现这行表示Deinstall成功
节点1:重新执行config.sh
su - grid
cd $ORACLE_HOME/crs/config
./config.sh
再按照提示分别在node 1、node 2执行
/oracle/app/11.2.0/grid/root.sh <---命令输出如下,这次没有了"USM driver install actions failed"错误,说明17475946补丁确实生效了,但出现了下面这条的错误:
Creation of ASM spfile in disk group failed. Following error occured: ORA-29780: unable to connect to GPnP daemon [CLSGPNP_ERR]
上述错误MOS指出是由执行root.sh的用户设置的GRID_HOME不正确引起的,果然我们看到root用户的环境变量中存在ORA_CRS_HOME、ORA_ASM_HOME两个环境变量,这两变量并非我们人为设置,其它还有ORACLE_SID、ORACLE_BASE、ORACLE_HOME三个变量也不是我们所设置,猜测可能是因为我们在安装OS时选择了安装oracle_server包所致
suse1:/etc # env | grep ORA
ORA_CRS_HOME=/opt/oracle/product/11gR1/crs
ORA_ASM_HOME=/opt/oracle/product/11gR1/asm
ORACLE_SID=orcl
ORACLE_BASE=/opt/oracle
ORACLE_HOME=/opt/oracle/product/11gR1/db
暂时没找到这些环境变量放在那些个系统配置文件里,于是干脆在node 1、node 2两节点的/root/.profile里清空掉这些变量
unset ORA_CRS_HOME
unset ORA_ASM_HOME
unset ORACLE_SID
unset ORACLE_BASE
unset ORACLE_HOME
节点 1:完成上述调整后重新执行root.sh
su - root
/oracle/app/11.2.0/grid/root.sh
这回终于往下走了
。。。省略了部分内容
ASM created and started successfully.
Disk Group DATA mounted successfully.
clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4256: Updating the profile
Successful addition of voting disk 5dcd311cc84b4fe8bfb70fc21cea2d34.
Successful addition of voting disk 076d2279e9ad4fe9bfaf2fcf2d944d20.
Successful addition of voting disk 0f97acb2b7ea4fb1bfc2965317c2a0f2.
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 5dcd311cc84b4fe8bfb70fc21cea2d34 (/dev/asmb) [DATA]
2. ONLINE 076d2279e9ad4fe9bfaf2fcf2d944d20 (/dev/asmc) [DATA]
3. ONLINE 0f97acb2b7ea4fb1bfc2965317c2a0f2 (/dev/asmd) [DATA]
Located 3 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'suse1'
CRS-2676: Start of 'ora.asm' on 'suse1' succeeded
CRS-2672: Attempting to start 'ora.DATA.dg' on 'suse1'
CRS-2676: Start of 'ora.DATA.dg' on 'suse1' succeeded
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
节点 2:同样需要执行root.sh
su - root
/oracle/app/11.2.0/grid/root.sh
执行完后检查Clusterware状态正常,图95

节点1:回到原图形安装界面继续下面的步骤
图96

图97:忽略掉Oracle Cluster Verification Utiliy的Failed,因为”suse-cluster-scan”名称我们是通过本地hosts解析的没有通过DNS所以验证时报错

第八部分:安装DB与建库
---安装DB软件
这里也是把一些主要步骤的截图提供出来,不一一列举了,图98、99、100、101、102、103






在安装DB软件的过程中唯一需要注意的地方是:
oracle用户下的环境变量ORA_NLS10要么不要设置要么设置为$GRID_HOME/nls/data,如果设置为$ORACLE_HOME/nls/data,则在进行到”Prerequisite Checks”阶段时会遇到如下错误:
An internal error occurred within cluster verification framework
Unable to obtain network interface list from Oracle Clusterware PRCT-1011 : Failed to run "oifcfg". Detailed error: null。MOS文档1380183.1对此有记载。可以在DB安装完之后恢复ORA_NLS10参数的设定
