如题:
环境:
os:oel 7.0
db:oracle 11.2.0.4 +rac
在 oel 7.0上面安装 oracle psu 11.2.0.4.7,执行自动打补丁,就报错:
[root@rac1 ~]# export PATH=/u01/app/grid/product/11.2.0/grid/OPatch:$PATH
[root@rac1 ~]#
[root@rac1 ~]# cat /etc/*release*
Oracle Linux Server release 7.0
NAME="Oracle Linux Server"
VERSION="7.0"
ID="ol"
VERSI
PRETTY_NAME="Oracle Linux Server 7.0"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:oracle_linux:7.0:GA:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 7"
ORACLE_BUGZILLA_PRODUCT_VERSION=7.0
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
REDHAT_SUPPORT_PRODUCT_VERSION=7.0
Red Hat Enterprise Linux Server release 7.0 (Maipo)
Oracle Linux Server release 7.0
cpe:/o:oracle:oracle_linux:7.0:ga:server
[root@rac1 ~]#
[root@rac1 ~]# opatch auto /u01/psu/20996923 /u01/psu/ocm.rsp
Can't locate Switch.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /u01/app/grid/product/11.2.0/grid/OPatch/crs/auto_patch.pl line 2734.
BEGIN failed--compilation aborted at /u01/app/grid/product/11.2.0/grid/OPatch/crs/auto_patch.pl line 2734.
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]#
手工执行解锁:也报错:
[root@rac1 ~]# /u01/app/grid/product/11.2.0/grid/crs/install/rootcrs.pl -unlock
Can't locate Env.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /u01/app/grid/product/11.2.0/grid/crs/install) at /u01/app/grid/product/11.2.0/grid/crs/install/crsconfig_lib.pm line 703.
BEGIN failed--compilation aborted at /u01/app/grid/product/11.2.0/grid/crs/install/crsconfig_lib.pm line 703.
Compilation failed in require at /u01/app/grid/product/11.2.0/grid/crs/install/rootcrs.pl line 305.
BEGIN failed--compilation aborted at /u01/app/grid/product/11.2.0/grid/crs/install/rootcrs.pl line 305.
metalink上有一篇文章,
和这个类似,原因是:
In Perl 5.10 and above, the Switch module has been is deprecated
The problem has been reported in the following bug:
Bug 18824047 - OPATCH AUTO FAILS "CAN'T LOCATE SWITCH.PM IN @INC "
解决办法:
To workaround the issue, please download and install Switch.pm from www.cpan.org. Then retry opatch auto.
Alternatively, use manual patch apply - refer to the patch Readme for manual instructions.
欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) | Powered by Discuz! X3.2 |