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: How-to access ORACLE from Ansi-C?

Re: How-to access ORACLE from Ansi-C?

From: Jeffery Cann <jcann_at_fairway.com>
Date: 1998/03/13
Message-ID: <35095ADB.4DF4C1F5@fairway.com>#1/1

In addition to Pro*C, which does support ANSI-C, you can use the Oracle Call Interface (OCI). It does not use a precompiler step, like pro*C, and is a "native interface" to Oracle.

I use pro*c and find it easy to maintain and it works quite well. Others like OCI because it is purported to be faster than Pro*c precompiled code. I don't know if this is true. I do know that the resulting Pro*c precompiled code does not call the same Oracle libraries that the OCI calls. If I remember correctly, the Pro*c calls the same Oracle libraries that Oracle applications calls.

cheers.
jeff

Ilidio Oliveira wrote:
>
> Hi,
>
> I'm working on a small middleware, written in C, which must
> access/interact with an Oracle 7.3 database. I suppose there are
> APIs/libraries which deal with the communications issues. Something like
> an ODBC driver for ANSI-C.
>
> This is a new situation for me, that's why I'd appreciate to hear from
> you. Has anyone done this? Can an ODBC driver be used by C? Which
> libraries are available (from Oracle? Others?)?
>
> Replies welcome. Thanks in advance.
>
> Ilidio
 

-- 
Jeffery C. Cann
Senior Software Engineer
Fairway Systems, Inc.
Received on Fri Mar 13 1998 - 00:00:00 CST

Original text of this message

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