This document describes how to fix "Can't locate DBI.pm in @INC" issue while running autoconfig as part of appstuil synchronization.
Issue: Got below error while running autoconfig in DB node as part of appsutil sync process.
Can't locate DBI.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/5.10.0 /usr/lib64/perl5 /usr/share/perl5 . /u01/app/oratest/product/12.1.0.2/dbhome_1/appsutil/perl /u01/app/oratest/product/12.1.0.2/dbhome_1/appsutil/perl /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/oratest/product/12.1.0.2/dbhome_1/appsutil/bin/txkSetADOPPatchSrvName.pl line 39.
BEGIN failed--compilation aborted at /u01/app/oratest/product/12.1.0.2/dbhome_1/appsutil/bin/txkSetADOPPatchSrvName.pl line 39.
Solution:
Issue is adper5lib location is wrong in context file.
1. Take backup of database context file.
2. Make below entry for PERL5LIB in context file.
<PERL5LIB oa_var="s_perl5lib" osd="unix">/u01/app/oraerptst/product/12.1.0.2/dbhome_1/perl/lib/5.14.1:/u01/app/oraerptst/product/12.1.0.2/dbhome_1/perl/lib/site_perl/5.14.1:/u01/app/oraerptst/product/12.1.0.2/dbhome_1/perl/lib/5.14.1/CGI:/u01/app/oraerptst/product/12.1.0.2/dbhome_1/appsutil/perl</PERL5LIB>
3. Export the path variable and confirm perl executable is present in the path as $ORACLE_HOME/perl/bin. Verify the same by executing $echo $PATH
4. Run autoconfig now. It should complete.
Thanks for going through the post.......