Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Link line for compiling OCI code

Re: Link line for compiling OCI code

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: Sun, 05 Sep 1999 09:26:00 -0400
Message-ID: <DW7SN9p6RYf35yUiJxnnnODlUuZL@4ax.com>


A copy of this was sent to Michael Wallach <mtwalla_at_uswest.com> (if that email address didn't require changing) On Tue, 31 Aug 1999 10:06:06 -0600, you wrote:

>Would someone please post/forward me the link line they use to link code
>contianing OCI calls
>on Solaris & Oracle 7.3.4 using the static libraries. I cannot use
>shared libraries because my application
>is being invoked from sendmail and the app hangs when I try to log on to
>the database. I am hoping this
>is the problem.
>
>Mike

statically linking will only fix part of the problem.

Your environment is almost certainly not at all setup when you are being executed. I don't know exactly what you mean "is being invoked from sendmail" but you are probably being run in an environment without a LD_LIBRARY_PATH, ORACLE_HOME, and ORACLE_SID.

to statically link, you can look at $ORACLE_HOME/rdbms/demo/oracle.mk. If you run:

$ make -f oracle.mk cdemo1

that'll statically link the first demo.

But again, you'll have to get the environment setup right. You might consider having sendmail run a shell script that sets up the right environment and then exec's your program.

--
See http://govt.us.oracle.com/~tkyte/ for my columns 'Digging-in to Oracle8i'... Current article is "Part I of V, Autonomous Transactions" updated June 21'st  

Thomas Kyte                   tkyte_at_us.oracle.com
Oracle Service Industries     Reston, VA   USA

Opinions are mine and do not necessarily reflect those of Oracle Corporation Received on Sun Sep 05 1999 - 08:26:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US