Solved

connectivity between c++ and oracle database

Posted on 2002-04-30
5
189 Views
Last Modified: 2012-05-04
how to connect oracle database through c++ programming.........want some sample code........
0
Comment
Question by:akmak
5 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 6982102
Oracle has available a developers toolkit if you want to make a "native" interface from C++ to Oracle.  

But most developers choose to use the Oracle ODBC driver.

Check with your Oracle sales rep. for the developer product.

You probably got the ODBC driver with your Oracle software.
0
 
LVL 6

Accepted Solution

by:
zebada earned 50 total points
ID: 6982712
0
 

Expert Comment

by:Bobert
ID: 6983478
Depending on what you're trying to do, there are simpler options than OCI.  The Pro C/C++ precompiler is an option that lets you embed SQL in your code, then run it through a program Oracle provides that creates all the OCI code necessary to retrieve that data from the database.

There are also a few OCI wrappers that greatly simplify the task of accessing the database for your typical data retrievals.  Three of them are found at the bottom of this page: http://www.orafaq.com/faqoci.htm.

I recently switched from using straight OCI to the Oracle Template Library (OTL) package mentioned.  I've found it to greatly simplify your typical database accesses.  The page includes docs and over a hundred examples.  

Depending on exactly what you're trying to do, give one of these libraries a try.
0
 
LVL 11

Expert Comment

by:griessh
ID: 7122236
Dear akmak

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "zebada"

comment(s) as an answer.

If you think your question was not answered at all, you can explain here why you want to do this and post a request in Community support (please include this link) to refund your points. The link to the Community Support area is: http://www.experts-exchange.com/commspt/


PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 7138146
Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question