While running the Catalog script of Oracle Database, we have an error while loading the PERL library
Error:
SQL> @$ORACLE_HOME/rdbms/admin/catcdb.sq
SQL> host perl -I &&rdbms_admin &&rdbms_admin_catcdb --logDirectory &&1 --logFilename &&2
Enter value for 1: /tmp
Enter value for 2: create_cdbtest.log
Can't locate Term/ReadKey.pm in @INC (@INC contains: /u01/app/oracle/product/19.3.0/dbhome_1/rdbms/admin /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/oracle/product/19.3.0/dbho me_1/rdbms/admin/catcdb.pl line 37.
BEGIN failed--compilation aborted at /u01/app/oracle/product/19.3.0/dbhome_1/rdbms/admin/catcdb.pl line 37.
As a Solution:
We need to update the Path to load the perl libraries
$ export PATH=$ORACLE_HOME/perl/bin:$PATH
Enjoy!
Pingback: Create an Oracle Database 19c using SQL | Wadhah DAOUEHI