c data base connection

I want to connect oracle 8.0 database into my c program
if you anyone having sample plz mail to my id

Thanking you
arulthayalanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

fsign21Commented:
Are asking for the entire OCI documentation?
Consult your
Oracle Call Interface Programmer's Guide
Oracle Pro*C/C++ Precompiler Programmer's Guide

You can find a lot of examples there.
-----------
Oracle provides code examples illustrating the use of OCI calls.
The demonstration programs are available with your Oracle installation. The location, names, and availability of the programs may vary on different platforms. On a Unix workstation, the programs are installed in the ORACLE_HOME/demo directory. On a Windows NT machine, the programs are located in the ORACLE_HOME\Oci\Samples directory.
-------------

Or do you mean that you need a function to connect to the Oracle database?
Use OCILogon()
--------------
OCILogon()
This function is used to create a simple logon session.

Syntax
sword OCILogon ( OCIEnv          *envhp,
                 OCIError        *errhp,
                 OCISvcCtx       **svchp,
                 CONST text      *username,
                 ub4             uname_len,
                 CONST text      *password,
                 ub4             passwd_len,
                 CONST text      *dbname,
                 ub4             dbname_len );
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tinchosCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by: fsign21

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Tinchos
EE Cleanup Volunteer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.