Unable to call executable from script

Now I am using the HP-UX11.11 version.
The scripts are runninh in KSH shell.

While I wan to call one executable of any Pro*C file, I have got the following error, however the executable is running fine directly.

testpri Started at 10.05.200923:40
/usr/lib/dld.sl: Bad magic number for shared library: /opt/oracle/product/10.2.0.4/lib/libnnz10.sl
/usr/lib/dld.sl: Exec format error
testpri[33]: 7446 Abort(coredump)
23:40 Database purge failed!!!
testpri Failed at 05102009 23:40

Can any one please suggest how can I solve this issue?

Thanks in advance.

:(:(:(:frowning: