Operating System - HP-UX
1745814 Members
3800 Online
108722 Solutions
New Discussion юеВ

Error Application 32-bits Over Oracle 64-bits

 
lydi
Occasional Contributor

Error Application 32-bits Over Oracle 64-bits

Hello everybody,

The following issue exists over HP-UX 11

I try to run an application called Broadvision Enterprise 6.0. This is a 32-bit application.

Database is running over Oracle 9i.

When starting broadvision, always sends the following message:


/usr/lib/dld.sl: Bad magic number for shared library: /opt/oracle/product/9206/lib/libclntsh.sl
/usr/lib/dld.sl: Exec format error



I have investigated that is necessary to call library lib32; although i have change variable SHLIB_PATH,LD_LIBRARY_PATH on .profile, bv1to1.conf.sh, bv1to1.conf, /etc/SHLIB_PATH; Always is calling to /opt/oracle/product/9206/lib/libclntsh.sl

Which another variable can i change, so oracle takes lib32?, or, Where else can i change those variables?


Any suggestion will be really appreciated.

Thanks

5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Error Application 32-bits Over Oracle 64-bits

Shalom,

I have a few ideas:

1) Confirm at that /usr/lib and /opt/oracle/product/9206/lib/

Are both in the SHLIB_PATH of the database startup script AND the application startup script. It needs to be in both.

2) Perhaps relinking oracle will help ( metalink.oracle.com )

3) What does the broadvision manual say, because these errors don't seem to deal with lib32.

4) lib32 does exist on your system? If so where?

This might help you put it together.

It is quite possible to run a 64 bit database with a 32 bit application. I did that for years in the US.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dennis Handly
Acclaimed Contributor

Re: Error Application 32-bits Over Oracle 64-bits

>I have investigated that is necessary to call library lib32

Where does the string lib32 come from? It isn't in the error message.

Or is this some generic shorthand description of what you think is wrong?? Don't use that, tell us exactly what lib you want it to use.

What does this show?
file /opt/oracle/product/9206/lib/libclntsh.sl

>SEP: 3) What does the broadvision manual say, because these errors don't seem to deal with lib32.

Right, the string lib32 is coming out of the blue.
whiteknight
Honored Contributor

Re: Error Application 32-bits Over Oracle 64-bits


Lydi,

If you can access to Oracle metalink
please check Doc ID: Note:360845.1

Cause
SHLIB_PATH set incorrectly.
SHLIB_PATH needs to point to the 32bit libraries, not to the 64 bit versions in $ORACLE_HOME/lib.


WK

p/s: please assign points
Problem never ends, you must know how to fix it
Volker Borowski
Honored Contributor

Re: Error Application 32-bits Over Oracle 64-bits

Hi,

I think you'd require to install a 32 Bit client to a seperate directory and set
ORA_NLS33 and SHLIBPATH accordingly.

That was the way it was set up for SAP in the early days of 64Bit databases.

If your application is compiled without the option to get shared libs from the environment, it might get complicated.

you can check with

ldd binary_application_file

from where the libs are loaded and if that changes with setting SHLIB_PATH to diffrent directories.

Volker
Srimalik
Valued Contributor

Re: Error Application 32-bits Over Oracle 64-bits

Try setting SHLIB_PATH to include $ORACLE_HOME/lib32 before the path to 64 bit libs if u have 64 bit libs path in SHLIB_PATH.

ideally $ORACLE_HOME/lib should not be in SHLIB_PATH.

Try this

export SHLIB_PATH=$ORACLE_HOME/lib32:$SHLIB_PATH


where ORACLE_HOME=/opt/oracle/product/9206/


Sri
abandon all hope, ye who enter here..