5、安装grid 11.2.0.4
5.1安装rpm包
在节点1 grid安装目录下的rpm目录下有cvuqdisk-1.0.9-1.rpm的安装包。
cd /soft/grid/rpm
rpm -ivh cvuqdisk-1.0.9-1.rpm
拷贝cvuqdisk-1.0.9-1.rpm到节点2
scp cvuqdisk-1.0.9-1.rpm 10.1.200.121:/soft/
节点2安装
cd /soft/
rpm -ivh cvuqdisk-1.0.9-1.rpm
5.2检查安装条件是否满足
节点1运行以下脚本进行检查
su - grid
cd /soft/grid/
./runcluvfy.sh stage -pre crsinst -n rac1-11g,rac2-11g -fixup -verbose
在NTP、DNS、pdksh报错,可以忽略。
5.3图形化安装GRID
节点1用grid用户开启vncserver或xmanager,然后用vnc登录
vncserver
下图点击ADD添加节点2
以下4个报错可忽略
在2个节点上分别在root用户下,按照顺序运行2个脚本。完成后点击OK。
图形化安装最后一步有报错可跳过。
6、添加ASM磁盘组
用asmca命令,可视化添加。
安装以下创建磁盘组
DG名称 DISKGROUP冗余模式 DG容量
MESDG1 external 2T
MESDG2 external 1T
ARCHDG1 external 0.5T
7、升级grid到最新PSU
以下操作2个节点都要操作,节点1做完再做节点2.
7.1更新opatch
将最新版opatch文件解压缩,上传到grid用户的oracle_home路径下(原opatch文件要备份)。
用root用户:
[root@whepi1 11.2.0.4]# mv /u01/grid/11.2.0.4/OPatch/ /u01/grid/11.2.0.4/OPatch_bk20180430/
[root@whepi1 11.2.0.4]# cd /soft/
[root@whepi1 soft]# unzip opatch-p6880880_112000_Linux-x86-64.zip
[root@whepi1 soft]# cp -R OPatch/ /u01/grid/11.2.0.4/
[root@whepi1 11.2.0.4]# chown -R grid:oinstall /u01/grid/11.2.0.4/OPatch
7.2创建OCM响应文件
grid用户
[grid@mes1 bin]$ $ORACLE_HOME/OPatch/ocm/bin/emocmrsp -no_banner -output /u02/ocm.rsp
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name:
You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: yes
The OCM configuration response file (/u02/ocm.rsp) was successfully created.
7.3检查 Inventory有效性
[grid@mes1 bin]$ $ORACLE_HOME/OPatch/opatch lsinventory -detail -oh $ORACLE_HOME
7.4安装PSU
上传、解压缩PSU补丁文件。
如果有开启EM的话,暂停em
su – oracle
echo $ORACLE_UNQNAME
emctl status dbconsole
$ORACLE_HOME/bin/emctl stop dbconsole
补丁解压缩赋权:
[grid@whepi1 ~]$ cd /soft/
[grid@whepi1 soft]$ unzip grid_psu_p26610246_112040_Linux-x86-64.zip
[grid@whepi1 soft]$ chown -R grid:oinstall /soft/26610246/
用root用户运行
[root@mes1 ~]# cd /u01/grid/11.2.0.4/OPatch
[root@mes1 OPatch]#./opatch auto /soft/26610246/ -oh /u01/grid/11.2.0.4 -ocmrf /u02/ocm.rsp
7.5检查打补丁情况
[root@whepi1 OPatch]# su - grid
[grid@whepi1 ~]$ cd /u01/grid/11.2.0.4/OPatch
[grid@whepi1 OPatch]$ ./opatch lsinventory