While running adcfgclone.pl as a part of database Tier clone, the below
mentioned error occurs:
-bash-3.00$ perl adcfgclone.pl dbTechStack
Can't locate strict.pm in @INC
(@INC contains:
/ade/smayer_perl58_main_linux/perl58/bin/Linux/Opt/lib/5.8.3/i686-linux-thread-multi
/ade/smayer_perl58_main_linux/perl58/bin/Linux/Opt/lib/5.8.3
/ade/smayer_perl58_main_linux/perl58/bin/Linux/Opt/lib/site_perl/5.8.3/i686-linux-thread-multi
/ade/smayer_perl58_main_linux/perl58/bin/Linux/Opt/lib/site_perl/5.8.3
/ade/smayer_perl58_main_linux/perl58/bin/Linux/Opt/lib/site_perl .) at
adcfgclone.pl line 26.
BEGIN failed--compilation aborted
at adcfgclone.pl line 26.
As indicated in the above error message, this is due to the PERL
setting. We dint have the PERL5LIB set :
-bash-3.00$ echo $PERL5LIB
-bash-3.00$ which perl
/d02/oradev/devdb/10.2.0/perl/bin/perl
Resolution: $PERL5LIB was set to resolve the issue:
Contents under $ORACLE_HOME/perl :
-bash-3.00$ ls -ltr /d02/oradev/devdb/10.2.0/perl
total 16
drwxr-x--- 2 oradev dba 4096
Feb 9 04:33 include
drwxr-x--- 2 oradev dba 4096
Feb 9 04:33 bin
drwxr-x--- 4 oradev dba 4096
Feb 9 04:33 lib
drwxr-x--- 4 oradev dba 4096
Feb 9 04:33 man
Contents under $ORACLE_HOME/perl/lib:
-bash-3.00$ ls -ltr /d02/oradev/devdb/10.2.0/perl/lib
total 8
drwxr-x--- 3 oradev dba 4096
Feb 9 04:33 site_perl
drwxr-x--- 44 oradev dba 4096
Feb 9 04:33 5.8.3
-bash-3.00$ PERL5LIB=/d02/oradev/devdb/10.2.0/perl/lib/5.8.3
-bash-3.00$ export PERL5LIB
-bash-3.00$ id
uid=500(oradev) gid=502(dba) groups=502(dba)
-bash-3.00$ echo $PERL5LIB
/d02/oradev/devdb/10.2.0/perl/lib/5.8.3
Note: The same error might also occur while running
adpreclone.pl on DB tier, if the PERL settings are not in place.
No comments:
Post a Comment