重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3116|回复: 0
打印 上一主题 下一主题

[补丁] Can't locate Switch.pm in @INC的解决

[复制链接]
跳转到指定楼层
楼主
发表于 2017-12-25 22:49:15 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
rhel7.4上对oracle 11.2.0.4打psu,直接就报这个错误:

[root@hisdb1 grid]# /u01/app/grid/product/11.2.0/grid/OPatch/opatch auto /u01/setup/psu/26635745/ -ocmrf /u01/setup/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 2730.
BEGIN failed--compilation aborted at /u01/app/grid/product/11.2.0/grid/OPatch/crs/auto_patch.pl line 2730.
[root@hisdb1 grid]#

这个是perl5.10以上版本的原因,如果是auto打psu,最简单的办法,就是把oracle的perl替换本身的perl,如下:
cp /u01/app/grid/product/11.2.0/grid/perl/lib/5.10.0/Switch.pm /usr/lib64/perl5/.

之后,再去安装psu ,就没有问题了.


[root@hisdb1 perl5]# /u01/app/grid/product/11.2.0/grid/perl/bin/perl /u01/app/grid/product/11.2.0/grid/OPatch/opatch auto /u01/setup/psu/26635745/ -ocmrf /u01/setup/psu/ocm.rsp
Executing /u01/app/grid/product/11.2.0/grid/perl/bin/perl /u01/app/grid/product/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /u01/setup/psu -patchn 26635745 -ocmrf /u01/setup/psu/ocm.rsp -paramfile /u01/app/grid/product/11.2.0/grid/crs/install/crsconfig_params
This is the main log file: /u01/app/grid/product/11.2.0/grid/cfgtoollogs/opatchauto2017-12-25_21-20-02.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/u01/app/grid/product/11.2.0/grid/cfgtoollogs/opatchauto2017-12-25_21-20-02.report.log
2017-12-25 21:20:02: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/grid/product/11.2.0/grid/crs/install/crsconfig_params
Stopping CRS...
Stopped CRS successfully
patch /u01/setup/psu/26635745/26392168  apply successful for home  /u01/app/grid/product/11.2.0/grid
patch /u01/setup/psu/26635745/26609929  apply successful for home  /u01/app/grid/product/11.2.0/grid
patch /u01/setup/psu/26635745/22502505  apply successful for home  /u01/app/grid/product/11.2.0/grid
Starting CRS...
Installing Trace File Analyzer
CRS-4123: Oracle High Availability Services has been started.
opatch auto succeeded.
[root@hisdb1 perl5]#


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-5-2 06:11 , Processed in 0.093605 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表