Vous êtes sur la page 1sur 2

2/16/2020 Document 1915430.

PowerView is Off RTB Team (Available) (0) Contact Us Help

Dashboard Knowledge Service Requests Patches & Updates Community 1915430.1


Patches & Updates > Patch Search Results >
Give Feedback... You have been directed to this document based on an ID match. Alternatively, click here to search on this phrase. Hide

Copyright (c) 2020, Oracle. All rights reserved. Oracle Confidential.

Opatch Auto fails with: Can't locate Switch.pm in @INC (Doc ID 1915430.1) To Bottom

In this Document Was this document helpful?

Symptoms Yes
No
Changes
Cause
Document Details
Solution
References
Type:
PROBLEM
Status:
PUBLISHED
Last Major
19-Feb-2019
Update:
19-Feb-2019
Last Update:
APPLIES TO:

Oracle Database - Enterprise Edition - Version 11.2.0.2 to 11.2.0.4 [Release 11.2] Related Products
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database - Enterprise
Oracle Database Exadata Express Cloud Service - Version N/A and later Edition
Oracle Database Exadata Cloud Machine - Version N/A and later Oracle Database Cloud
Oracle Cloud Infrastructure - Database Service - Version N/A and later Schema Service
Information in this document applies to any platform. Oracle Database Exadata
Express Cloud Service
Oracle Database Exadata
SYMPTOMS Cloud Machine
Oracle Cloud Infrastructure -
Database Service
When attempting to apply a patch, OPATCH AUTO is failing. Show More

Messages similar to the following are seen:


Information Centers

+ [<GI_HOME>/grid/install/bin/install_oracle_patches.sh Information Center: Overview


Start grid installation of patch p17272753_112020_Solaris86-64.zip . Database Server/Client
Please wait ... Installation and
Upgrade/Migration
Can't locate Switch.pm in @INC (you may need to install the Switch module)
[1351022.2]
(@INC contains: /usr/local/perl-5.18.2/lib/site_perl/5.18.2/i86pc-solaris-thread-multi-64
/usr/local/perl-5.18.2/lib/site_perl/5.18.2 /usr/local/perl-5.18.2/lib/5.18.2/i86pc-solaris-thread- Index of Oracle Database
multi-64 /usr/local/perl-5.18.2/lib/5.18.2 .) at <GI_HOME>/OPatch/crs/auto_patch.pl line 2730. Information Centers
BEGIN failed--compilation aborted at /opt/oracle_homes/oracle/grid/11.2.0/OPatch/crs/auto_patch.pl line [1568043.2]
2730.
grep: can't open /tmp/.p17272753_112020_Solaris86-64.log インフォメーション・センタ
+ [<GI_HOME>/grid/install/bin/install_oracle_patches.sh Error in installation of patch ー: データベースおよび
p17272753_112020_Solaris86-64.zip . Check the log file /tmp/.p17272753_112020_Solaris86-64.log for more Enterprise Manager 日本語ド
details. キュメント [1946305.2]
+ Please note: Terminal input characterset is LC_CTYPE=en_US.ISO8859-1, Oracle environment NLS_LANG is
set to AMERICAN_AMERICA.US7ASCII Information Center: Overview
of Database Security Products
[1548952.2]

Platform as a Service (PaaS)


and Oracle Cloud
Infrastructure (OCI)
CHANGES Information Center
[2048297.2]

Perl has been upgraded


Document References
CAUSE
No References available for
this document.
In Perl 5.10 and above, the Switch module has been is deprecated
The problem has been reported in the following bug: Recently Viewed

Opatch Auto fails with:


Bug 18824047 - OPATCH AUTO FAILS "CAN'T LOCATE SWITCH.PM IN @INC " Can&#39;t locate Switch.pm
in @INC [1915430.1]
SOLUTION Rolling Forward a Physical
Standby Using Recover From
Service Command in 12c
To workaround the issue, download and install: [1987763.1]
SRDC - Required diagnostic
# yum install perl-Switch.noarch data collection for RMAN
backup Using TFA Collector
or (Recommended) or Manual
Steps [1671431.1]
Copy the Switch.pm library from Oracle Home (which is having 5.10.0) to Perl Libraries (ensure take backup of the file from the 12c RMAN Operations from
target location (if exist) before copying it and check with system administrator for feasibility of the change in Switch.pm from ASM To Non-ASM Slow
/usr/lib/perl5) Performance [2081537.1]
RDBMS Online Patching Aka
example: cp -p $OH/perl/lib/5.10.0/Switch.pm /usr/lib/perl5/5.18.2/ Hot Patching [761111.1]
Show More
Or

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=18047819247476&id=1915430.1&_adf.ctrl-state=qiomh1zne_132 1/2
2/16/2020 Document 1915430.1
manually download and install Switch.pm from www.cpan.org (http://search.cpan.org/~chorny/Switch-2.17/Switch.pm), then
retry opatch auto.

Alternatively, use manual patch apply - refer to the patch Readme for manual instructions.

REFERENCES

BUG:18824047 - OPATCH AUTO FAILS "CAN'T LOCATE SWITCH.PM IN @INC "


Didn't find what you are looking for? Ask in Community...

Related
Products

Oracle Database Products > Oracle Database Suite > Oracle Database > Oracle Database - Enterprise Edition > Real Application Cluster
Oracle Cloud > Oracle Platform Cloud > Oracle Database Cloud Service > Oracle Database Cloud Schema Service
Oracle Cloud > Oracle Platform Cloud > Oracle Database Cloud Service > Oracle Database Exadata Express Cloud Service
Oracle Cloud > Oracle Infrastructure Cloud > Oracle Cloud at Customer > Oracle Database Exadata Cloud Machine
Oracle Cloud > Oracle Platform Cloud > Oracle Cloud Infrastructure - Database Service > Oracle Cloud Infrastructure - Database Service
Oracle Cloud > Oracle Platform Cloud > Oracle Database Backup Service > Oracle Database Backup Service
Oracle Cloud > Oracle Platform Cloud > Oracle Database Cloud Service > Oracle Database Cloud Exadata Service
Oracle Cloud > Oracle Platform Cloud > Oracle Database Cloud Service > Oracle Database Cloud Service

Keywords
DEPRECATED; OPATCH; PERL

Back to Top
Copyright (c) 2020, Oracle. All rights reserved. Legal Notices and Terms of Use Privacy Statement

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=18047819247476&id=1915430.1&_adf.ctrl-state=qiomh1zne_132 2/2

Vous aimerez peut-être aussi