Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can't locate File/Basename.pm in @INC - 12c Database creation with Scripts

bgalbraithJan 19 2016 — edited Jul 5 2016

When running <<cdb>>.sh after creating scripts using DBCA, I am getting the following error:

SQL> host perl /oracle/product/12.1.0.2/rdbms/admin/catcon.pl -n 1 -l /inst/poc12cct/admin/create -b catalog /oracle/product/12.1.0.2/rdbms/admin/catalog.sql;

Can't locate File/Basename.pm in @INC (@INC contains: /oracle/product/12.1.0.2/rdbms/admin ../lib/site_perl/5.14.1/sun4-solaris-thread-multi-64 ../lib/site_perl/5.14.1 ../lib/5.14.1/sun4-solaris-thread-multi-64 ../lib/5.14.1 .) at /oracle/product/12.1.0.2/rdbms/admin/catcon.pl line 86.

BEGIN failed--compilation aborted at /oracle/product/12.1.0.2/rdbms/admin/catcon.pl line 86.

In my <<cdb>>.sh script – I set the following environment variables to ensure that I am using the Oracle Perl and not the Solaris perl:

PERL5LIB=$ORACLE_HOME/rdbms/admin:$PERL5LIB; export PERL5LIB

ORACLE_SID=<<cdb>>; export ORACLE_SID

PATH=$ORACLE_HOME/perl/bin:$ORACLE_HOME/bin:$PATH; export PATH

I had to add $ORACLE_HOME/perl/bin to the $PATH (I did this based on a note that I found on MOS).  I have even set my PATH prior to executing the <<cdb>>.sh script to ensure that I was using Oracle’s Perl prior to execution and the error remains the same…

I am not finding much in the way of resolutions on MOS and I am getting a little frustrated as I have been going at this for a while (different files that couldn’t be located).


I did a find on Basename.pm from the Oracle Home and it is located in ./perl/lib/5.14.1/File/Basename.pm – this means that it should be found within @INC in the directory marked in RED above.


Can someone please help me out before I open an SR with Oracle?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 2 2016
Added on Jan 19 2016
4 comments
2,921 views