Re: OCI Questions: Makefiles, connections.

From: Chris Hafey <chafey_at_ecst.csuchico.edu>
Date: 1996/02/05
Message-ID: <4f5d9e$qp7_at_charnel.ecst.csuchico.edu>#1/1


In article <HANDEL.96Feb1164615_at_login1.engin.umich.edu>, mjh4 <handel_at_engin.umich.edu> wrote:
>Hi!
>
>I'm slowly starting to learn OCI, after some background in ODBC. The
>first thing I'm trying to figure out is if there is a formal makefile
>to run OCI programs. I found one in the distribution that seems to
>work, but it has a lot of targets that seem to re-build the entire
>Oracle server.
>
>The make file seems to work on an HP-UX machine, but the equivalent
>one does not work on a Solaris machine. (this is a multi-platform
>environment I'm in).

I haven't heard of a standard makefile. I wrote my own.

>Additionally, how does one specifiy a database to actually connect to?
>In ODBC, there was a data source name that took care of all of that,
>but I can't figure out how this works in OCI.

You specify which server to connection to when you call orlon(). The example they give in the book is:

text *uid11111111111="SCOTT/TIDER_at_D:KERVMS-V7_R2";

the _at_D:KERVMS-V&_R2 is the server part.

Chris Hafey

-- 
chafey_at_ecst.csuchico.edu    	http://www.ecst.csuchico.edu/~chafey
"One two buckle my shoe take care of me because I might be you"
Received on Mon Feb 05 1996 - 00:00:00 CET

Original text of this message