博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Can't locate Switch.pm in INC的解决
阅读量:7251 次
发布时间:2019-06-29

本文共 2155 字,大约阅读时间需要 7 分钟。

hot3.png

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 ( 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]#

转载于:https://my.oschina.net/u/3635497/blog/2967509

你可能感兴趣的文章
Kali Linux 2019.1 发布,Metasploit 更新到 5.0 版本
查看>>
【mysql的设计与优化专题(1)】ER图,数据建模与数据字典
查看>>
Jibo’s Name: How did we pick it?
查看>>
device's media capture mechanism,利用input:file调用设备的照相机/相册、摄像机、录音机...
查看>>
BroadLink:三款新品力求无障碍人机交互,三大平台分三期对外开放 ...
查看>>
掌门1对1获3.5亿美元E-1轮融资,华人文化产业基金、中金甲子基金等投资 ...
查看>>
Unity中的通用对象池
查看>>
ORA-00600: internal error code, arguments: [16703], [1403], [28], [...
查看>>
忆芯科技发布新一代国产主控芯片STAR1000P!4月完成量产版本 ...
查看>>
如何用条码标签打印软件实现商品价签制定会员价 ...
查看>>
如何轻松实现个性化推荐系统
查看>>
Mysql高级查询 内连接和外连接详解
查看>>
基于AWS的电子商务网站架构——Web前端
查看>>
基于险企传统资源优势的“一核三环”规划——互联网平台建设
查看>>
社交网络:有意义的不仅是邓巴数
查看>>
MySQL优化案例
查看>>
02 贝叶斯算法 - 案例一 - 鸢尾花数据分类
查看>>
场景数据互为表里!畅想2027,保险行业发展愿景
查看>>
hibernate4整合spring3出现java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition;...
查看>>
港科大教授权龙:三维视觉重新定义人工智能安防
查看>>