Saturday, March 17, 2012

adclonectxt.pl failed at the time of creating contextfile with Perl Issue.

Here is the below command for creating a context file under RAC environment, while creating the context file i have faced the below PERLissue and did the below workaround to fix the issue.

[oracle@hostname bin]$ perl adclonectx.pl \
> contextfile=/u01/app/oracle/product/11.1.0/db_1/appsutil/orp1_pmnalx1091.xml \
> template=/u01/app/oracle/product/11.1.0/db_1/appsutil/template/adxdbctx.tmp \
> pairsfile=/u01/app/oracle/product/11.1.0/db_1/appsutil/clone/pairsfile.txt \
> initialnode
Can't locate strict.pm in @INC (@INC contains: /ade/aime_perl58_amd64/perl58/bin/Linux/Opt/lib/5.8.3/x86_64-linux-thread-multi

/ade/aime_perl58_amd64/perl58/bin/Linux/Opt/lib/5.8.3 /ade/aime_perl58_amd64/perl58/bin/Linux/Opt/lib/site_perl/5.8.3/x86_64-linux-thread-multi

/ade/aime_perl58_amd64/perl58/bin/Linux/Opt/lib/site_perl/5.8.3 /ade/aime_perl58_amd64/perl58/bin/Linux/Opt/lib/site_perl .) at adclonectx.pl line 29.
BEGIN failed--compilation aborted at adclonectx.pl line 29.

Solution:
----------
[oracle@hostname db_1]$ pwd
/u2490/app/oracle/product/11.1.0/db_1

[oracle@hostname 5.8.3]$ echo $PERL5LIB

[oracle@hostname 5.8.3]$ export PERL5LIB=$ORACLE_HOME/perl/lib/5.8.3

[oracle@hostname 5.8.3]$ echo $PERL5LIB
/u2490/app/oracle/product/11.1.0/db_1/perl/lib/5.8.3

Now you can try again for creating the contextfile I hope the above workaround will solve the issue.


No comments:

Post a Comment