Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
442 posts
|
Hi,
on R12.2.4, DB 11.2.0.4 on AIX After cloning When runing autoconfig on DB tiers, it siplays this: Context Value Management will now update the Context file UnsatisfiedLinkError exception loading native library: njni11 java.lang.UnsatisfiedLinkError: njni11 (No such file or directory) But this message is not registered in autoconfig log file and autoconfig fonishes succefully. This library is available in ORACLE_HOME: /u01/product/oracle/distrib/ora11204/0116/db_1/lib/libnjni11.so I found this note (1400415.1) that asks to verify some variables: $ echo $PERL5LIB /u01/product/oracle/distrib/ora11204/0116/db_1/perl/lib/5.10.0:/u01/product/oracle/distrib/ora11204/0116/db_1/perl/lib/site_perl/5.10.0:/u01/product/oracle/distrib/ora11204/0116/db_1/appsutil/perl echo $LD_LIBRARY_PATH /u01/product/oracle/distrib/ora11204/0116/db_1/lib:/usr/dt/lib:/lib:/usr/lib:/u01/product/oracle/distrib/ora11204/0116/db_1/webdb/lib They seem correct. I suspect that a file point to source system from which we have clonned but coulden't find it. Any idea? Thanks for help. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Administrator
5727 posts
|
Recreate the context file and retry.
That note already says that : Run perl: $ORACLE_HOME/appsutil/bin/adbldxml.pl |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
442 posts
|
This post was updated on Aug 16, 2021; 11:41am.
Thank you.
I will do that. Can we recreate it from current CONTEXT_FILE? For exemple: perl: $ORACLE_HOME/appsutil/bin/adbldxml.p $CONTEXT_FILE Or : I rename current CONTEXT_FILE to dev_server_old. xml I create a new with perl $ORACLE_HOME/appsutil/bin/adbldxml.pl template=[contextfile_template] out=[contextfile_name] And run autoconfig dev_server_old. xml Autoconfig will fill the new CONTEXT file with data from dev_server_old. xml Regards. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Administrator
5727 posts
|
Dont push so hard. I just couldn't %100 get what you are considering to implement.
Backup the current contextfile and then recreate the contextfile.. that is it. Recreate it and then compare the newly created one with the old context file.. Recreating it will probably generate the correct Ld libray path values and that move will probably solve your problem.. If you have any other custom settings in the current/old contextfile, you will do the comparison that I mentioned above and you will modify the newly created context file accordingly. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
442 posts
|
Yes thank you.
I have saved old context_file. If only the LD LIBRARY PATH is important , it is easier to just change it in old context file with the value of new. When running adbldxml.pl I had the same error: java.lang.UnsatisfiedLinkError: njni11 (No such file or directory) Regards. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Administrator
5727 posts
|
Is the LD_LIBRARY_PATH and PERL5LIB environment variable set correctly in the environment of the shell that you are using while executing the adbldxml? (as suggested in MOS note 1400415.1?)
As for you other question, yes you may update the old context file, but you should know what you are doing.. you need to update only the relevant places, where you see ld library path and perl-related library settings.. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
442 posts
|
This post was updated on Aug 16, 2021; 6:58pm.
Hi,
For the shell session I have: $ echo $PERL5LIB /u01/product/oracle/distrib/ora11204/0116/db_1/perl/lib/5.10.0:/u01/product/oracle/distrib/ora11204/0116/db_1/perl/lib/site_perl/5.10.0:/u01/product/oracle/distrib/ora11204/0116/db_1/appsutil/perl echo $LD_LIBRARY_PATH /u01/product/oracle/distrib/ora11204/0116/db_1/lib:/usr/dt/lib:/lib:/usr/lib:/u01/product/oracle/distrib/ora11204/0116/db_1/webdb/lib Which seem correct for me unless if I'm mistaken. How to know if they are really correct? I think that the problem is $PERL5LIB and $LD_LIBRARY_PATH. Because for two different scripts , that is autoconfig.sh and adbldxml.pl we have the same error: njni11 (No such file or directory). Regards. |
Free forum by Nabble | Edit this page |