一、实现依据
Oracle 12C开始支持Grid安装前安装PSU补丁:-applyPSU
Oracle 18C/19C支持Grid/Oracle安装前安装RU补丁:-applyRU
通过以上两个参数可以将基础安装包和补丁包进行集成打包。
灵感来源:Linux 7上安装12CR2版本Grid基础包存在很多BUG,需要提前安装补丁修复。可参考:12CR2 RAC安装避坑指南(Redhat7)
集成目的:安装时可以省去安装补丁的步骤,直接解压集成安装包安装即可。
二、实现方式
以下举例12CR2 Grid集成补丁包32540149步骤:
1、上传安装介质
##Grid基础安装包LINUX.X64_12_grid_home.zip##OPatch补丁包p6880880_12_Linux-x86-64.zip##PSU补丁包p32540149_12_Linux-x86-64.zip##Oracle一键配置脚本OracleShellInstall.sh
2、配置主机环境
通过Oracle一键配置脚本配置:
脚本可参考:
/pc-study/InstallOracleshell
cd /soft./OracleShellInstall.sh -i 10.211.55.100 `#Public ip`\-n restart `# hostname`\-o nocdb `# oraclesid`\-gp oracle `# grid user password`\-op oracle `# oracle user password`\-b /oracle/app `# install basedir`\-s AL32UTF8 `# characterset`\-m Y
3、安装补丁
分别解压OPatch补丁包和PSU补丁包:
##解压更新OPatch包unzip -o p6880880_12_Linux-x86-64.zip -d /oracle/app/12.2.0/gridchown -R grid:oinstall /oracle/app/12.2.0/grid/OPatch##解压PSU补丁包unzip p32540149_12_Linux-x86-64.zip /softchown -R grid:oinstall /soft/32540149
Grid安装补丁:
su - grid -c "/oracle/app/12.2.0/grid/gridSetup.sh -applyPSU /soft/32540149"##安装成功后##1.修复bug:##[INS-42505] The installer has detected that the Oracle Grid Infrastructure home software at (/oracle/GRID/12201) is not complete. (Doc ID 2697235.1)mv $ORACLE_HOME/install/files.lst $ORACLE_HOME/install/files.lst.bak
4、压缩home目录
cd /oracle/app/12.2.0/grid/zip -r LINUX.X64_12_grid_home_32540149.zip *mv LINUX.X64_12_grid_home_32540149.zip /soft
至此,基础安装包和补丁包集成成功。
三、安装测试
打开一台新主机进行安装测试:
1、上传集成安装包等介质
##Grid集成安装包LINUX.X64_12_grid_home_32540149.zip##Oracle一键配置脚本OracleShellInstall.sh
2、主机环境初始化配置
##iscsi挂载共享盘iscsiadm -m discovery -t st -p 10.211.55.22iscsiadm -m node -T iqn.-.starwindsoftware:10.211.55.22-lucifer -p 10.211.55.22 -l##重命名安装包mv LINUX.X64_12_grid_home_32540149.zip LINUX.X64_12_grid_home.zip##执行脚本初始化配置cd /soft./OracleShellInstall.sh -i 10.211.55.100 `#Public ip`\-n restart `# hostname`\-o nocdb `# oraclesid`\-gp oracle `# grid user password`\-op oracle `# oracle user password`\-b /u01/app `# install basedir`\-s AL32UTF8 `# characterset`\-dd /dev/sdc `# asm data disk`\-dn DATA `# asm data diskgroupname`\-dr EXTERNAL `# asm data redundancy`\-m Y
3、安装Grid软件
su - gridcd /oracle/app/12.2.0/grid/./gridSetup.sh
如果未安装图形化界面:
yum groupinstall -y "Server With GUI"
执行root.sh前执行:
##2.修复bug:ASMCMD Failing With "KGFNGETCONNDETAILS Requires 4 Parameters at <GI_HOME>/lib/asmcmdbase.pm (Doc ID 2748316.1)export ORACLE_HOME=/u01/app/12.2.0/grid/usr/bin/make -f $ORACLE_HOME/rdbms/lib/ins_rdbms.mk client_sharedlib libasmclntsh12.ohso libasmperl12.ohso ORACLE_HOME=$ORACLE_HOME
安装完毕。
转载至/m0_50546016/article/details/116982168?spm=1001..3001.5501