General
cancel
Showing results for 
Search instead for 
Did you mean: 

Errors running PA-RISC binary on Itanium

 
Highlighted
Occasional Contributor

Errors running PA-RISC binary on Itanium

Hi All

We are currently on HPUX 11.0 and Oracle 9.2
We use a Uniface application which needs to connect to the database using libclntsh.sl.
The Uniface binary is asv and looks for libclntsh.sl.8.0.

The command file asv returns:
asv: PA-RISC2.0 shared executable dynamically linked -not stripped

I am trying to get the asv binary to work on an Itanium server running HPUX 11.23 and Oracle 10g.

I am getting the following error:

$: asv
/usr/lib/dld.sl: Bad magic number for shared library: /disk1/app/oracle/product/10.2.0/db_1/lib32/libclntsh.sl.8.0
/usr/lib/dld.sl: Exec format error
[HP ARIES32]: Core file for 32 bit PA-RISC application
[HP ARIES32]: /disk1/iris30p/iris33/bin/asv saved to /disk1/iris30p/iris33/bin/core.asv.
Abort(coredump)

SHLIB_PATH is set to $ORACLE_HOME/lib32
I have also set LD_LIBRARY_PATH to $ORACLE_HOME/lib as per recommendations on a previous post here.

I have linked the Oracle client in lib32 as : libclntsh.sl.8.0 -> libclntsh.so.10.1

I have tried to run chatr on the asv binary and obviously enough get the error:
chatr(error): file asv is not a valid ELF file

When I run chatr on asv on the PA-RISC box I get:
asv:
shared executable
shared library dynamic path search:
SHLIB_PATH enabled first
embedded path enabled second :/disk1/uniface/uniface7206/:/disk1/uniface/uniface7206/../lib:/disk1/apps/oracle/product/8.1.7/lib:/usr/dt/lib:.:/usr/lib:/opt/langtools/lib
..................................
..................................

Am I missing something obvious in my setup or am I attempting the impossible ?

Thanks

Mike
4 REPLIES 4
Highlighted
Exalted Contributor

Re: Errors running PA-RISC binary on Itanium

Shalom,

Aries is an awful emulation that does not run all applications and saps 70% of the performance on those it runs.

If you have source code you should recompile.

You should use an oracle client specific to your processor and not try and run cross platform binaries.

I know you won't be happy with that but emulation simply does not match the hype.

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
Highlighted
Honored Contributor

Re: Errors running PA-RISC binary on Itanium

I agree with Steven - get a new version of asv.

Going from 11.0 is a bug step (especially since support dropped last Dec on it) - you really need to force your Application Owners to stay more current - IE - regulary update the OS once a year or 2 at the least.

Seeing how it has taken this long to upgrade 11.0 - why go only to 11.23? Might as well as try 11.31.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Highlighted
Honored Contributor

Re: Errors running PA-RISC binary on Itanium

Yes, I think you are missing something obvious :
1) You simlink a PA-RISC library to an Itanium library. Of course ARIES can't handle this. If you want this to work, you need to have the Oracle 10 PA-RISC client installation on your Itanium system. Remains the quesion if this is a good idea.
2) Oracle does not support the Oracle 8 client to connect to an Oracle 10 database. It is not even sure if both libraries are compatible enough to make it work, so in fact you should get this running first on PA-RISC, and then migrate the same setup to Itanium.

If you want to continue this path anyway, maybe you can install an Oracle 9i R2 client and link libclntsh.sl.8.0 -> libclntsh.sl.9.0
I had to do this in the past, and it works, and Oracle supports the Oracle9 client to an Oracle10 database.
Highlighted
Acclaimed Contributor

Re: Errors running PA-RISC binary on Itanium

You appear to have a PA executable asv but an IPF shlib libclntsh.sl.8.0? You can use file(1) to check.

>I have tried to run chatr on the asv binary and obviously enough get the error:
chatr(error): file asv is not a valid ELF file

The correct way to run the PA chatr(1) on IPF is:
$ SDKROOT=/usr/ccs/pa chatr file