Search Blog Post

Monday, October 14, 2013

Error: can't find libjava.so when running adcfgclone.pl appsTier

Hi All,

Description
Recently I met the above issue while performing Oracle Applications Cloning for Release 11i environment on Red Hat Enterprise 5.4 64-bit O.S.

Running,
perl adcfgclone.pl appsTier
Enter the APPS password [APPS]: <Password>


First Creating a new context file for the cloned system.
The program is going to ask you for information about the new system:

Error: can't find libjava.so.
ERROR: context creation not completed successfully.
Please check /tmp/adcfgclone_28635.err file for errors


In  /tmp/adcfgclone_28635.err file
/app/oracle/testcomn/clone/bin/../jre/bin/java[18]: /usr/bin/basename: not found [No such file or directory]
/app/oracle/testcomn/clone/bin/../jre/bin/java[19]: /usr/bin/uname: not found [No such file or directory]
 


Workaround:

1. As applmgr user, run which java
[applmgr@tfnvlskp01 ]$ which java
/usr/bin/java

2. Go to java directory where it is installed on applications node
[applmgr@tfnvlskp01 ]$ cd $COMMON_TOP/clone/jre/bin
 
[applmgr@tfnvlskp01 bin]$ ls
awt_robot  ControlPanel  java  keytool  Policytool  rmid  rmiregistry  sparc  tnameserv

3. Rename java folder.
[applmgr@tfnvlskp01 bin]$ mv java jav_old

 4. Create a soft link with the location of which java from Step 1
[applmgr@tfnvlskp01 bin]$ ln -s /usr/bin/java java
[applmgr@tfnvlskp01 bin]$ ls -l
total 68
-rwxr-xr-x 1 applmgr dba 34456 Sep  2  2009 awt_robot
-rwxr-xr-x 1 applmgr dba  1304 Sep  2  2009 ControlPanel
lrwxrwxrwx 1 applmgr dba    13 Oct 14 05:09 java -> /usr/bin/java
-rwxr-xr-x 1 applmgr dba  2505 Sep  2  2009 jav_old
-rwxr-xr-x 1 applmgr dba  2505 Sep  2  2009 keytool
-rwxr-xr-x 1 applmgr dba  2505 Sep  2  2009 Policytool
 
5. Run perl adcfgclone.pl appsTier again

1 comment: