Problem Applying Patch using OPatch - "Can't locate DBI.pm in @INC..." (Doc ID 987924.1)

Last updated on MARCH 08, 2017

Applies to:

Portal - Version 11.1.1.4.0 and later
Information in this document applies to any platform.
Checked for relevance on 03-Mar-2015


Symptoms

An error is seen  applying patch using OPatch on a Linux environment

....
Executing the Apply pre-patch script (/u01/app/oracle/OraHome_1/4919270/4919270/custom/scripts/pre)...
Can't locate DBI.pm in @INC (@INC contains: /u01/app/oracle/OraHome_1/perl/lib/site_perl/5.6.1/IA64.ARCHREV_0 /u01/app/oracle/OraHome_1/perl/lib/5.6.1/i686-linux /u01/app/oracle/OraHome_1/perl/lib/5.6.1 /project/ias904/src/src_021106/pdc_perl/bin/Linux/Opt/lib/5.6.1/i686-linux /project/ias904/src/src_021106/pdc_perl/bin/Linux/Opt/lib/5.6.1 /project/ias904/src/src_021106/pdc_perl/bin/Linux/Opt/lib/site_perl/5.6.1/i686-linux /project/ias904/src/src_021106/pdc_perl/bin/Linux/Opt/lib/site_perl/5.6.1 /project/ias904/src/src_021106/pdc_perl/bin/Linux/Opt/lib/site_perl .) at opatchutils.pm line 47.
BEGIN failed--compilation aborted at opatchutils.pm line 47.
Compilation failed in require at opatch.pl line 65.
BEGIN failed--compilation aborted at opatch.pl line 65.
PERL5LIB=/u01/app/oracle/OraHome_1/perl/lib/5.6.1:/u01/app/oracle/OraHome_1/4919270/4919270/custom/scripts/perl_modules; export PERL5LIB
/u01/app/oracle/OraHome_1/perl/bin/perl /u01/app/oracle/OraHome_1/4919270/4919270/custom/scripts/pre.pl -apply 4919270 -s portal -p XXXXXXXX -c myserver.mydomain.com:1521:orcl.myserver.mydomain.com

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms