1825764 Members
2018 Online
109687 Solutions
New Discussion

Oracle Apps error

 
SOLVED
Go to solution
DareDevil_1
Advisor

Oracle Apps error

hi all,

am trying to clone Oracle apps 11.5.10 for the first time. when i ran a
adcfgclone.pl appsTier

i got the following error:
Starting: "make -if /vol005/applsgtt/sgttora/iAS/precomp/lib/ins_precomp.mk relink EXENAME=profor"
Linking profor
Completed...

Starting: "make -if /vol005/applsgtt/sgttora/iAS/precomp/lib/ins_precomp.mk relink EXENAME=profor"
Linking profor
/usr/ccs/bin/ld: Can't find library: "clntsh"
chmod: can't access profor
*** Error exit code 1 (ignored)
rm -f /vol005/applsgtt/sgttora/iAS/bin/profor
mv profor /vol005/applsgtt/sgttora/iAS/bin/
mv: profor: cannot access: No such file or directory
*** Error exit code 1 (ignored)
Completed...

Starting: "make -if /vol005/applsgtt/sgttora/iAS/precomp/lib/ins_precomp.mk relink EXENAME=procob18"
Linking procob18
/usr/ccs/bin/ld: Can't find library: "clntsh"
chmod: can't access procob18
*** Error exit code 1 (ignored)
rm -f /vol005/applsgtt/sgttora/iAS/bin/procob18
mv procob18 /vol005/applsgtt/sgttora/iAS/bin/
mv: procob18: cannot access: No such file or directory
*** Error exit code 1 (ignored)
Completed...

Starting: "make -if /vol005/applsgtt/sgttora/iAS/precomp/lib/ins_precomp.mk relink EXENAME=ott"
Linking ott
/usr/ccs/bin/ld: Can't find library: "clntsh"
chmod: can't access ott
*** Error exit code 1 (ignored)
rm -f /vol005/applsgtt/sgttora/iAS/bin/ott
mv ott /vol005/applsgtt/sgttora/iAS/bin/
mv: ott: cannot access: No such file or directory
*** Error exit code 1 (ignored)
Completed...

Starting: "make -if /vol005/applsgtt/sgttora/iAS/precomp/lib/ins_precomp.mk relink EXENAME=proc"
Linking proc
/usr/ccs/bin/ld: Can't find library: "clntsh"
chmod: can't access proc
*** Error exit code 1 (ignored)
rm -f /vol005/applsgtt/sgttora/iAS/bin/proc
mv proc /vol005/applsgtt/sgttora/iAS/bin/
mv: proc: cannot access: No such file or directory
*** Error exit code 1 (ignored)
Completed...

Error found while relinking

If someone knows about this pls pls let me know what to do.

thanks in advance
17 REPLIES 17
Dennis Handly
Acclaimed Contributor

Re: Oracle Apps error

/usr/ccs/bin/ld: Can't find library: "clntsh"

Do you have the oracle database installed? I think that's where libclntsh is built.
DareDevil_1
Advisor

Re: Oracle Apps error

Yes i have the Database. It is erroring our while relinking the IAS_ORACLE_HOME.
Dennis Handly
Acclaimed Contributor

Re: Oracle Apps error

>Yes i have the Database.

Is there someway to tell Oracle apps where you installed libclntsh?
DareDevil_1
Advisor

Re: Oracle Apps error

It searches the SHLIB_PATH and LD_LIBRARY_PATH. all of which have been set.
Dennis Handly
Acclaimed Contributor
Solution

Re: Oracle Apps error

>It searches the SHLIB_PATH and LD_LIBRARY_PATH. all of which have been set.

No, ld searches LPATH. dld searches your paths.
DareDevil_1
Advisor

Re: Oracle Apps error

hi,

Thanks a lot. I seem to have crossed one milestone by setting LPATH and my PATH.

But getting the following error while running adcgfclone.pl appsTier

Error while running adlnkiAS.sh. Please check logfile

.end std out.

.end err out.



StackTrace:
java.lang.Exception: java.lang.NullPointerException
at oracle.apps.ad.clone.ApplyAppsTechStack.runRelinkOH(ApplyAppsTechStack.java:795)
at oracle.apps.ad.clone.ApplyAppsTechStack.(ApplyAppsTechStack.java:371)
at oracle.apps.ad.clone.ApplyAppsTier.(ApplyAppsTier.java:177)
at java.lang.reflect.Constructor.newInstance(Native Method)
at oracle.apps.ad.clone.util.CloneProcessor.run(CloneProcessor.java:68)
at java.lang.Thread.run(Unknown Source)

The make.log just says that there was an error while linking.
Eric Antunes
Honored Contributor

Re: Oracle Apps error

Hi,

Cloning 11i applications requuires at least 5 steps since preparing the source system until the final tasks... So, I recommend you to read Metalink Note 216664.1 to guide you in the entire process.

Best Regards,

Eric Antunes
Each and every day is a good day to learn.
DareDevil_1
Advisor

Re: Oracle Apps error

"Cloning 11i applications requuires at least 5 steps since preparing the source system until the final tasks... So, I recommend you to read Metalink Note 216664.1 to guide you in the entire process."

I have gone thru the process, the first part of cloning the source was done on the clients place.now i have to bring it up in the target system.

I have brought the database up and now its the apps tier for which i ran the
$COMMON_TOP/clone/bin
perl adcfgclone.pl appsTier

Its giving error while trying to link the IAS_ORACLE_HOME.

Please find below the error in make log.


Starting: "make -if /vol005/applsgtt/sgttora/iAS/webcache/lib/ins_calypso.mk install"

- Linking Webcache
rm -f webcached
cc -Wl,+s -Wl,+n -o webcached -L/vol005/applsgtt/sgttora/iAS//lib/ -L/vol005/applsgtt/sgttora/iAS/lib/ main.o li
bwebcachexml.a -lclntst8 -lcore8 -lnls8 -lpthread `cat /vol005/applsgtt/sgttora/iAS/lib/sysliblist` -lm -lpthread -lnsl -ld4r
-L/vol005/applsgtt/sgttora/iAS/JRE/lib/PA_RISC/native_threads -ljava
/usr/ccs/bin/ld: Can't open main.o
/usr/ccs/bin/ld: Permission denied
*** Error exit code 1 (ignored)
mv -f /vol005/applsgtt/sgttora/iAS/webcache/bin/webcached /vol005/applsgtt/sgttora/iAS/webcache/bin/webcached0
mv: /vol005/applsgtt/sgttora/iAS/webcache/bin/webcached: cannot access: No such file or directory
*** Error exit code 1 (ignored)
mv webcached /vol005/applsgtt/sgttora/iAS/webcache/bin/webcached
mv: webcached: cannot access: No such file or directory
*** Error exit code 1 (ignored)
chmod 751 /vol005/applsgtt/sgttora/iAS/webcache/bin/webcached
chmod: can't access /vol005/applsgtt/sgttora/iAS/webcache/bin/webcached
*** Error exit code 1 (ignored)
Make: Don't know how to make libwxd.a. Stop.
Failed...

Dennis Handly
Acclaimed Contributor

Re: Oracle Apps error

>It's giving error while trying to link the IAS_ORACLE_HOME.
/usr/ccs/bin/ld: Can't open main.o
/usr/ccs/bin/ld: Permission denied

Well, you need to be able to read main.o.
DareDevil_1
Advisor

Re: Oracle Apps error

Thank you, I have changed the permissions for main.o.

I ran $IAS_ORACLE_HOME/bin/adlnkiAS.sh

Have attached the make log file.

Please help me to solve the issue.
Dennis Handly
Acclaimed Contributor

Re: Oracle Apps error

>Have attached the make log file.
/usr/ccs/bin/ld: Can't find library: "java"

Well, where is libjava? You need to either add a -L path or add it to LPATH.

And for dbsnmp & oratclsh, etc., you are missing libclntsh.
DareDevil_1
Advisor

Re: Oracle Apps error

thanks a lot for all your help.

I was able to eliminate the Java error but i am still not able to eliminate the compile error.

- Linking Webcache
rm -f webcached
cc -Wl,+s -Wl,+n -o webcached -L/vol005/applsgtt/sgttora/iAS//lib/ -L/vol005/applsgtt/sgttora/iAS/lib/ main.o li
bwebcachexml.a -lclntst8 -lcore8 -lnls8 -lpthread `cat /vol005/applsgtt/sgttora/iAS/lib/sysliblist` -lm -lpthread -lnsl -ld4r
-L/vol005/applsgtt/sgttora/iAS/JRE/lib/PA_RISC/native_threads -ljava
/usr/ccs/bin/ld: Unexpected end of file in main.o
*** Error exit code 1 (ignored)
mv -f /vol005/applsgtt/sgttora/iAS/webcache/bin/webcached /vol005/applsgtt/sgttora/iAS/webcache/bin/webcached0
mv: /vol005/applsgtt/sgttora/iAS/webcache/bin/webcached: cannot access: No such file or directory
*** Error exit code 1 (ignored)
mv webcached /vol005/applsgtt/sgttora/iAS/webcache/bin/webcached
mv: webcached: cannot access: No such file or directory
*** Error exit code 1 (ignored)
chmod 751 /vol005/applsgtt/sgttora/iAS/webcache/bin/webcached
chmod: can't access /vol005/applsgtt/sgttora/iAS/webcache/bin/webcached
*** Error exit code 1 (ignored)
Make: Don't know how to make libwxd.a. Stop.
Failed...

any suggestions??
Eric Antunes
Honored Contributor

Re: Oracle Apps error

Hi,

Assuming that the source is similar to the destination system (same OS version), have you completed the following steps:


On the source system, as db owner:

cd /appsutil/scripts/
perl adpreclone.pl dbTier



On the source system, as apps owner:

cd /admin/scripts/
adpreclone.pl appsTier

Copy the application tier file system

Shut down the application tier server processes;

Copy the following application tier directories from the source node to the target application tier node:




/util
/clone
/_pages (when this directory exists)
<806 ORACLE_HOME>



On the source system, as db owner:

Perform a normal shutdown of the source system database
Copy the database (DBF) files from the source to the target system
Copy the source database ORACLE_HOME to the target system



Finally, start up the source Applications system database and application tier processes.



On the destination system, as db owner:

cd $ORACLE_HOME/appsutil/clone/bin
perl adcfgclone.pl dbTier


On the destination system, as apps owner:

cd $COMMON_TOP/clone/bin
perl adcfgclone.pl appsTier



Best Regards,

Eric Antunes
Each and every day is a good day to learn.
DareDevil_1
Advisor

Re: Oracle Apps error

"Assuming that the source is similar to the destination system (same OS version), have you completed the following steps: "

hi,

i have done all the steps and am in the process of running adcfgclone.pl appsTier. The dbTier is already up. This script is failing while running adlnkiAS.sh . i have already attached the log file.

please help me.
Eric Antunes
Honored Contributor

Re: Oracle Apps error

Hi,

Did you applied the pre-requisite patches on the source (See Metalink Note 230672.1)?

Best Regards,

Eric Antunes
Each and every day is a good day to learn.
DareDevil_1
Advisor

Re: Oracle Apps error

The source is in the clients place, and we are not sure if those things were done there.

any other work around??
Eric Antunes
Honored Contributor

Re: Oracle Apps error

Hi,

There is no workaround for this. You really need to check if those patches were installed on the source. Patches are:

a) OUI22 patch 5035661 (see also Bug No. 5207776)
b) Perl 5.005 or higher
c) JRE 1.1.8 in source db tier
d) JDK 1.3.1 in destination apps tier
e) ZIP 2.3 in all servers (must be in PATH)
f) RapidClone patch 3453499 in both apps tiers
g) Autoconfig template patch 4709948

Best Regards,

Eric Antunes
Each and every day is a good day to learn.