OPatch Auto fails with “Bareword “ValidateCRSCTL” not allowed while “strict subs” in use” error
While applying a patch on 11.2.0.2.0 version of GRID HOME or DATABASE HOME, “opatch auto” command fails with the below error:
Bareword ValidateCRSCTL not allowed while strict subs in use at /u01/app/oracle/product/11.2.0/grid/crs/install/crspatch.pm line 101. Bareword ValidateCRSCTL not allowed while strict subs in use at /u01/app/oracle/product/11.2.0/grid/crs/install/crspatch.pm line 112.
Here is a snippet of the error.
[root@ora1-3 ~]# export PATH=$PATH:/u01/app/oracle/product/11.2.0/db1/OPatch [root@ora1-3 ~]# opatch version OPatch Version: 11.2.0.3.11 OPatch succeeded.
[root@ora1-3 ~]# opatch auto /u03/11202_psu_patch/ -oh /u01/app/oracle/product/11.2.0/db1,/u01/app/oracle/product/11.2.0/grid -ocmrf /home/oracle/ocm.rsp Executing /u01/app/oracle/product/11.2.0/grid/perl/bin/perl /u01/app/oracle/product/11.2.0/db1/OPatch/crs/patch11203.pl -patchdir /u03 -patchn 112029_patch -oh /u01/app/oracle/product/11.2.0/db1,/u01/app/oracle/product/11.2.0/grid -ocmrf /home/oracle/ocm.rsp -paramfile /u01/app/oracle/product/11.2.0/grid/crs/install/crsconfig_params Bareword ValidateCRSCTL not allowed while strict subs in use at /u01/app/oracle/product/11.2.0/grid/crs/install/crspatch.pm line 101. Bareword ValidateCRSCTL not allowed while strict subs in use at /u01/app/oracle/product/11.2.0/grid/crs/install/crspatch.pm line 112. Compilation failed in require at /u01/app/oracle/product/11.2.0/db1/OPatch/crs/patch11203.pl line 422. BEGIN failed--compilation aborted at /u01/app/oracle/product/11.2.0/db1/OPatch/crs/patch11203.pl line 422. [root@ora1-3 ~]#
The OPATCH version is 11.2.0.3.11 which is the latest version. In order to fix the above issue, we need to use the option “olderver” along with “OPATCH AUTO” command. This needs to be used for GI or DB versions with 11.2.0.2 and not for the later releases.
[root@ora1-3 ~]# opatch auto /u03/11202_psu_patch/ -oh /u01/app/oracle/product/11.2.0/db1,/u01/app/oracle/product/11.2.0/grid -ocmrf /home/oracle/ocm.rsp -olderver Executing /u01/app/oracle/product/11.2.0/grid/perl/bin/perl /u01/app/oracle/product/11.2.0/db1/OPatch/crs/patch11202.pl -patchdir /u03 -patchn 112029_patch -oh /u01/app/oracle/product/11.2.0/db1,/u01/app/oracle/product/11.2.0/grid -ocmrf /home/oracle/ocm.rsp -paramfile /u01/app/oracle/product/11.2.0/grid/crs/install/crsconfig_params INC is /u03/112029_patch/13696242/files/crs/install /u01/app/oracle/product/11.2.0/grid/crs/install /u01/app/oracle/product/11.2.0/grid/perl/lib/5.10.0/x86_64-linux-thread-multi /u01/app/oracle/product/11.2.0/grid/perl/lib/5.10.0 /u01/app/oracle/product/11.2.0/grid/perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi /u01/app/oracle/product/11.2.0/grid/perl/lib/site_perl/5.10.0 /u01/app/oracle/product/11.2.0/grid/perl/lib/5.10.0/x86_64-linux-thread-multi /u01/app/oracle/product/11.2.0/grid/perl/lib/5.10.0/x86_64-linux-thread-multi /u01/app/oracle/product/11.2.0/grid/perl/lib/5.10.0 /u01/app/oracle/product/11.2.0/grid/perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi /u01/app/oracle/product/11.2.0/grid/perl/lib/site_perl/5.10.0 /u01/app/oracle/product/11.2.0/grid/perl/lib/site_perl . opatch auto log file location is : /u01/app/oracle/product/11.2.0/db1/OPatch/crs/../../cfgtoollogs/opatchauto2015-08-15_11-05-01.log Detected Oracle Restart install Using configuration parameter file: /u01/app/oracle/product/11.2.0/grid/crs/install/crsconfig_params Stopping RAC /u01/app/oracle/product/11.2.0/db1 ... Stopped RAC /u01/app/oracle/product/11.2.0/db1 successfully patch /u03/112029_patch/13696242/custom/server/13696242 apply successful for home /u01/app/oracle/product/11.2.0/db1 patch /u03/112029_patch/14727315 apply successful for home /u01/app/oracle/product/11.2.0/db1 Stopping CRS... Stopped CRS successfully patch /u03/112029_patch/13696242 apply successful for home /u01/app/oracle/product/11.2.0/grid patch /u03/112029_patch/14727315 apply successful for home /u01/app/oracle/product/11.2.0/grid ACFS-9300: ADVM/ACFS distribution files found. ACFS-9312: Existing ADVM/ACFS installation detected. ACFS-9314: Removing previous ADVM/ACFS installation. ACFS-9315: Previous ADVM/ACFS components successfully removed. ACFS-9307: Installing requested ADVM/ACFS software. ACFS-9308: Loading installed ADVM/ACFS drivers. ACFS-9321: Creating udev for ADVM/ACFS. ACFS-9323: Creating module dependencies - this may take some time. ACFS-9327: Verifying ADVM/ACFS devices. ACFS-9309: ADVM/ACFS installation correctness verified. Starting CRS... CRS-4123: Oracle High Availability Services has been started. Starting RAC /u01/app/oracle/product/11.2.0/db1 ... Started RAC /u01/app/oracle/product/11.2.0/db1 successfully opatch auto succeeded. [root@ora1-3 ~]#
I was now able to apply the PSU patch successfully using the “-olderver” version.
Here we go !!
COPYRIGHT
© Shivananda Rao P, 2012 to 2018. Unauthorized use and/or duplication of this material without express and written permission from this blog’s author and/or owner is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to Shivananda Rao and http://www.shivanandarao-oracle.com with appropriate and specific direction to the original content.
DISCLAIMER
The views expressed here are my own and do not necessarily reflect the views of any other individual, business entity, or organization. The views expressed by visitors on this blog are theirs solely and may not reflect mine.
Leave a Reply