Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Problem by running a successfully precomplied program with Pro*C/C++
Hugo Aparicio Navas wrote:
>
> Hello !
> I precompiled a C++ program with embedded SQL with the Pro*C/C++
> Precomplier from Oracle without any kind of errors (Sun platform Solaris
> 2.5.1, Unix). The problem is that when I run the programm the following
> message appears :
>
> ld.so.1: datenbank: fatal: libclntsh.so.1.0: can't open file: errno=2
> Killed
>
> I have set all these paths in my bashrc_local file : (conforming the
> handbook)
>
> export
> LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/ucblib:/usr/openwin/lib:/usr/dt/lib;
>
> It could lay too in the ottcfg.cfg file (in $ORACLE_HOME/precomp/admin).
> This file is empty and I have no information how to configure it.
>
> I would be very thankful for every help or hints you can give me.
>
> Hugo Navas-Aparicio
> navas_at_ant.uni-hannover.de
libclntsh.so.1.0 should reside in $ORACLE_HOME/lib. Check to see if the the file is present. If it is not present, the library is generated by the $ORACLE_HOME/rdbms/lib/clntsh.mk file. The syntax to create the library is:
make -f clntsh.mk
As a side note Oracle does not need /usr/ucblib in the LD_LIBRARY_PATH variable.
Mike Received on Wed Mar 18 1998 - 00:00:00 CST