打补丁的背景:安装好GI和DB后,创建实例前应用的19.24的补丁
# sha256sum p6880880_190000_Linux-x86-64.zip p36522439_190000_Linux-x86-64.zip
BC21C57DF2DDCABD0BC64B5043CCA38B74B9C9B7535C5AEEC7E6E3ACDAFC0F0B p6880880_190000_Linux-x86-64.zip
A3029B3459E393DD9A20F2C4DFFF287DE940605A77C0AF4756176B7BC2CFA57E p36522439_190000_Linux-x86-64.zip
遇到2个问题
告警1:
[root@hydb1 /opt]# /u01/app/19.0.0/grid_1/OPatch/opatchauto apply /patch/36582629 -oh /u01/app/19.0.0/grid_1
Invalid current directory. Please run opatchauto from other than '/root' or '/' directory.
And check if the home owner user has write permission set for the current directory.
opatchauto returns with error code = 2
处理办法: [root@hydb1 /opt]# cd /
告警2:
[root@hydb1 ~]# cd /
[root@hydb1 /]# /u01/app/19.0.0/grid_1/OPatch/opatchauto apply /patch/36582629 -oh /u01/app/19.0.0/grid_1
OPatchauto session is initiated at Sat Jul 27 16:24:36 2024
System initialization log file is /u01/app/19.0.0/grid_1/cfgtoollogs/opatchautodb/systemconfig2024-07-27_04-24-40PM.log.
Session log file is /u01/app/19.0.0/grid_1/cfgtoollogs/opatchauto/opatchauto2024-07-27_04-24-49PM.log
The id for this session is YATX
Shared home /u01/app/19.0.0/grid_1 can only be patched in nonrolling mode.
OPATCHAUTO-72030: Execution mode invalid.
OPATCHAUTO-72030: Cannot execute in rolling mode, as CRS home is shared.
OPATCHAUTO-72030: Execute in non-rolling mode.
OPatchAuto failed.
OPatchauto session completed at Sat Jul 27 16:25:01 2024
Time taken to complete the session 0 minute, 21 seconds
opatchauto failed with error code 42
[root@hydb1 /]#
处理办法: [root@hydb1 ~]#export CV_ASSUME_DISTID=RHEL7.6
log过程如下
[root@hydb1 ~]# cd /
[root@hydb1 /]# export CV_ASSUME_DISTID=RHEL7.6
[root@hydb1 /]# /u01/app/19.0.0/grid_1/OPatch/opatchauto apply /patch/36582629 -oh /u01/app/19.0.0/grid_1
OPatchauto session is initiated at Sat Jul 27 16:29:30 2024
System initialization log file is /u01/app/19.0.0/grid_1/cfgtoollogs/opatchautodb/systemconfig2024-07-27_04-29-34PM.log.
Session log file is /u01/app/19.0.0/grid_1/cfgtoollogs/opatchauto/opatchauto2024-07-27_04-29-42PM.log
The id for this session is 5FLB
Executing OPatch prereq operations to verify patch applicability on home /u01/app/19.0.0/grid_1
Patch applicability verified successfully on home /u01/app/19.0.0/grid_1
Executing patch validation checks on home /u01/app/19.0.0/grid_1
Patch validation checks successfully completed on home /u01/app/19.0.0/grid_1
Performing prepatch operations on CRS - bringing down CRS service on home /u01/app/19.0.0/grid_1
Prepatch operation log file location: /u01/app/grid/crsdata/hydb1/crsconfig/crs_prepatch_apply_inplace_hydb1_2024-07-27_04-30-37PM.log
CRS service brought down successfully on home /u01/app/19.0.0/grid_1
Start applying binary patch on home /u01/app/19.0.0/grid_1
Binary patch applied successfully on home /u01/app/19.0.0/grid_1
Running rootadd_rdbms.sh on home /u01/app/19.0.0/grid_1
Successfully executed rootadd_rdbms.sh on home /u01/app/19.0.0/grid_1
Performing postpatch operations on CRS - starting CRS service on home /u01/app/19.0.0/grid_1
Postpatch operation log file location: /u01/app/grid/crsdata/hydb1/crsconfig/crs_postpatch_apply_inplace_hydb1_2024-07-27_04-38-02PM.log
CRS service started successfully on home /u01/app/19.0.0