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

Home -> Community -> Usenet -> c.d.o.server -> Re: How to connect C program on SUN Solaris to Oracle 7.3.x Server

Re: How to connect C program on SUN Solaris to Oracle 7.3.x Server

From: Ben Bruhl <bkb3806_at_ok.boeing.com>
Date: 1997/03/06
Message-ID: <331EF0AA.6972@ok.boeing.com>#1/1

oracle wrote:
>
> oks_at_oks.s.eunet.de wrote:
> >
> > Hey,
> >
> > we want to connect a Oracle Database running on NT Server from SUN
 Solaris
> > via a C program. We have heard about the Pro*C product from Oracle
 to do
> > that. What other products do I need ? Is it also possible to compile
 it
> > with gnu c compiler ? Have somebody made experiences and can bring
 light
> > in our darkness ? Please mail me your informations !
> >
> > Thanks a lot
> > Oliver
>
> Pro*C is one way to go. You could also use the OCI libraries and just
> write you own code to connect. I have seen Gnu C work but Oracle of
> course does not support it. I think Pro*C is the best way myself but
> I am sure that other people will disagree.
>
> All you need is Pro*C and sql*net V2 installed to create programs. If
> you want to use the OCI stuff you will have to install the RDBMS as
> well.

I have used both and tend to lean toward the Pro*C solution. If you build your Pro*C functions to accept parameters from the C code, you will have an easy interface to the db in the future.

Just a my thoughts.

-- 
**********************************************
* BenJAMIN Bruhl             | Analysts      *
* Software Engineer &        | International *
* Consultant | International | Corporation   *
* bruhlb_at_seanet.com          |               *
**********************************************
- "My opinions are my own and not my companies."
Received on Thu Mar 06 1997 - 00:00:00 CST

Original text of this message

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