dbTalk Databases Forums  

Why is OCI discouraged and where can I find some simple demo programs?

comp.databases.oracle.tools comp.databases.oracle.tools


Discuss Why is OCI discouraged and where can I find some simple demo programs? in the comp.databases.oracle.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Charles T. Smith
 
Posts: n/a

Default Why is OCI discouraged and where can I find some simple demo programs? - 05-24-2007 , 06:53 AM






I need to add an Oracle database to a C program. It's great that Oracle
makes 10g available for free. But I've spent hours looking for
information and tutorials for a C API and it's unproportionally difficult
compared to similar products (e.g. solaris) for find anything.

In fact, I finally identified OCI and some simple demo programs - like
cdemo81.c (from
http://download-uk.oracle.com/docs/c...em.htm#i459676)
.... but it's in the 8.1 release. In my 10g release, I only find demos for
special facilities. There is no access to the files from that web site.
Also not on the Oracle web site. Also not on the net.

So, it looks like there was reasonable documentation, and it has been
removed from the distribution.

What does Oracle have against C?

Reply With Quote
  #2  
Old   
sybrandb
 
Posts: n/a

Default Re: Why is OCI discouraged and where can I find some simple demo programs? - 05-24-2007 , 07:09 AM






On May 24, 1:53 pm, "Charles T. Smith" <cts.priv... (AT) yahoo (DOT) com> wrote:
Quote:
I need to add an Oracle database to a C program. It's great that Oracle
makes 10g available for free. But I've spent hours looking for
information and tutorials for a C API and it's unproportionally difficult
compared to similar products (e.g. solaris) for find anything.

In fact, I finally identified OCI and some simple demo programs - like
cdemo81.c (fromhttp://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14250/oci...)
... but it's in the 8.1 release. In my 10g release, I only find demos for
special facilities. There is no access to the files from that web site.
Also not on the Oracle web site. Also not on the net.

So, it looks like there was reasonable documentation, and it has been
removed from the distribution.

What does Oracle have against C?
Oracle doesn't have anything against C.
Originally there was (and probably still is) pro*C and OCI.
Pro*C is a so-called Host Language Interface, which takes away from
you the chores of setting up a cursor.
If you compare OCI to Pro*C, OCI is only the raw materials, where
Pro*C provides building blocks.
There are Pro*C demos in 9i (look for files ending in .pcc in proc
directories), I don't think Oracle has obsoleted Pro*C.
There also is a C++ interface, called OCCI, which is discussed at
http://www.oracle.com/technology/sam...cci/index.html

I admit this is hard to find, but it is there!

Hth
--
Sybrand Bakker
Senior Oracle DBA




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.