HACMP5.4.1需要使用PATCH 6718715 中的rootpre.sh,只有HACMP5.4才需要该补丁,否则安装完成后跑脚本要报错
节点A
bash-3.00# /u01/app/oracle/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oracle/oraInventory to 775.
Changing groupname of /u01/app/oracle/oraInventory to oinstall.
The execution of the script. is complete
bash-3.00#
bash-3.00#
bash-3.00# /u01/app/oracle/product/crs/root.sh
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured
Checking to see if any 9i GSD is up
/etc/oracle does not exist. Creating it now.
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node
node 1: p61a p61a_priv p61a
node 2: p61b p61b_priv p61b
Creating OCR keys for user 'root', privgrp 'system'..
Operation successful.
Now formatting voting device: /dev/rtcrs_vote_01
Format of 1 voting devices complete.
Startup will be queued to init within 30 seconds.
Adding daemons to inittab
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
p61a
CSS is inactive on these nodes.
p61b
Local node checking complete.
Run root.sh on remaining nodes to start CRS daemons.
节点B
bash-3.00# /u01/app/oracle/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oracle/oraInventory to 775.
Changing groupname of /u01/app/oracle/oraInventory to oinstall.
The execution of the script. is complete
bash-3.00# /u01/app/oracle/product/crs/root.sh
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured
Checking to see if any 9i GSD is up
/etc/oracle does not exist. Creating it now.
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node
node 1: p61a p61a_priv p61a
node 2: p61b p61b_priv p61b
clscfg: Arguments check out successfully.
NO KEYS WERE WRITTEN. Supply -force parameter to override.
-force is destructive and will destroy any previous cluster
configuration.
Oracle Cluster Registry for cluster has already been initialized
Startup will be queued to init within 30 seconds.
Adding daemons to inittab
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
p61a
p61b
CSS is active on all nodes.
Waiting for the Oracle CRSD and EVMD to start
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS stack installed and running under init(1M)
Running vipca(silent) for configuring nodeapps
Invalid node name "P61A" entered in an input argument.
Invalid node name "P61A" entered in an input argument.
需要运行VIPCA重新配置
配置完后检查:
[oracle@P61A:/u01/app/oracle]$crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.p61a.gsd application ONLINE ONLINE p61a
ora.p61a.ons application ONLINE ONLINE p61a
ora.p61a.vip application ONLINE ONLINE p61a
ora.p61b.gsd application ONLINE ONLINE p61b
ora.p61b.ons application ONLINE ONLINE p61b
ora.p61b.vip application ONLINE ONLINE p61b
关闭crs自动启动
bash-3.00# /etc/init.crs disable
Automatic startup disabled for system boot.
10203 p5337014_10203_AIX64-5L.zip
10204 p6810189_10204_AIX5L.zip
安装完成CRS后,需要升级到10204,10204的升级文档指出
If you attempt to install this patch set in an Oracle home directory that does not contain an Oracle Database 10g release 10.2.0.2 or higer installation, Oracle Universal Installer displays a warning dialog with the following error:
OUI-10091: There are no patches that need to be applied from the patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3
The Oracle Universal Installer does not allow the installation to proceed. Click OK, then click Cancel to end the installation.
需要先升级的10204需要先升级到10202或者10203后才能升级到10204
PATCH 6160398 我认为可以不装,装CRS后升级到10203在直接升级到10204,然后应用PATCH 7715304,参见METALINK 405820.1
升级到10204时候,ORACLCE用户需要CAP_NUMA_ATTACH, CAP_BYPASS_RAC_VMM, 和 CAP_PROPAGATE 这些操作系统能力来升级集群件
# /usr/sbin/lsuser -a capabilities crs
# /usr/bin/chuser capabilities=CAP_NUMA_ATTACH CAP_BYPASS_RAC_VMM CAP_PROPAGATE crs
否则在升级完成运行脚本时会报错
root@aadqrdb01cdp:/aadq01/u0001/oracle/product/crs/install ] ./root102.sh
Error : Please change the CRS_ORACLE_USER id
< CAP_PROPAGATE CAP_BYPASS_RAC_VMM CAP_NUMA_ATTACH >
by running command then 'crsctl stop crs' and 'crsctl start crs'.
The CSS daemon, ocssd.bin, will not run in realtime without this change
升级CRS前,需要修改某些对象权限
chmod -R +w CRS_HOME/inventory/Templates/*
升级10203时,遇到如下问题
Relinking some shared libraries.
ld: 0711-224 WARNING: Duplicate symbol: .aio_nwait
ld: 0711-224 WARNING: Duplicate symbol: aio_nwait
ld: 0711-224 WARNING: Duplicate symbol: .aio_nwait_timeout
ld: 0711-224 WARNING: Duplicate symbol: aio_nwait_timeout
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-224 WARNING: Duplicate symbol: .aio_nwait
ld: 0711-224 WARNING: Duplicate symbol: aio_nwait
ld: 0711-224 WARNING: Duplicate symbol: .aio_nwait_timeout
ld: 0711-224 WARNING: Duplicate symbol: aio_nwait_timeout
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-783 WARNING: TOC overflow. TOC size: 67184 Maximum size: 65536
Extra instructions are being generated for each reference to a TOC
symbol if the symbol is in the TOC overflow area.
ld: 0711-224 WARNING: Duplicate symbol: .aio_nwait
ld: 0711-224 WARNING: Duplicate symbol: aio_nwait
ld: 0711-224 WARNING: Duplicate symbol: .aio_nwait_timeout
ld: 0711-224 WARNING: Duplicate symbol: aio_nwait_timeout
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-224 WARNING: Duplicate symbol: .aio_nwait
ld: 0711-224 WARNING: Duplicate symbol: aio_nwait
ld: 0711-224 WARNING: Duplicate symbol: .aio_nwait_timeout
ld: 0711-224 WARNING: Duplicate symbol: aio_nwait_timeout
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-783 WARNING: TOC overflow. TOC size: 67184 Maximum size: 65536
Extra instructions are being generated for each reference to a TOC
symbol if the symbol is in the TOC overflow area.
WARNING: TOC overflow 错误可以忽略。
WARNING: Duplicate symbol相关的问题还没查过,不过升级10204时没出问题,暂时忽略该问题
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8242091/viewspace-591202/ ,如需转载,请注明出处,否则将追究法律责任。