473,405 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How to access Oracle from C++?

Hi all,
I have to write a C++ application to access some data from an Oracle
database. I will be using gcc running on Solaris. Can you tell me how
to do this if it's possible? Some sample code or how-to will be
useful.

Thanks!
Jul 22 '05 #1
5 1577
pembed2003 wrote:
Hi all,
I have to write a C++ application to access some data from an Oracle
database. I will be using gcc running on Solaris. Can you tell me how
to do this if it's possible? Some sample code or how-to will be
useful.

Thanks!


Sorry, C++ does not provide any facilities to do so.

- Pete
Jul 22 '05 #2
"Pete C." <x@x.x> wrote in message news:<2N*****************@newsread2.news.pas.earth link.net>...
pembed2003 wrote:
Hi all,
I have to write a C++ application to access some data from an Oracle
database. I will be using gcc running on Solaris. Can you tell me how
to do this if it's possible? Some sample code or how-to will be
useful.

Thanks!


Sorry, C++ does not provide any facilities to do so.

- Pete


Hi Pete,
Do you know of any open source C++ libraries that I can use to access
Oracle? If my question is OT in this group, can you kindly point me to
the right group for my question?

Thanks!
Jul 22 '05 #3

"pembed2003" <pe********@yahoo.com> wrote in message news:db*************************@posting.google.co m...
Hi all,
I have to write a C++ application to access some data from an Oracle
database. I will be using gcc running on Solaris. Can you tell me how
to do this if it's possible? Some sample code or how-to will be
useful.

Thanks!


Look at C++-Wrapper around Oracle
* http://groups.google.com/groups?th=ff043117b474f920
* http://alexvn.freeservers.com/s1/download.html (Click on "C++-wrapper around Oracle ")
* http://www.codearchive.com/list.php?go=0705
* http://www.planet-source-code.com/vb...=3537&lngWId=3
--
Alex Vinokur
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn
Jul 22 '05 #4
"Pete C." <x@x.x> wrote in message news:<2N*****************@newsread2.news.pas.earth link.net>...
pembed2003 wrote:
Hi all,
I have to write a C++ application to access some data from an Oracle
database. I will be using gcc running on Solaris. Can you tell me how
to do this if it's possible? Some sample code or how-to will be
useful.

Thanks!


Sorry, C++ does not provide any facilities to do so.

- Pete


C++ does not have the capability to do any database activity but
Oracle gives you the tools for this very purpose. They have a
precompiler that can be downloaded from the oracle site for
development. This tools aka Pro*C/C++ is basically a pre-compiler
which converts your Pro*C/C++ code into sqllib calls and the output is
corresponding C/C++ file. This file can then be compiled with the
appropriate compiler and converted to the final binary. For more
information you can refer to "Pro*C/C++ programmers guide" at oracle
documentation website.

Hope this hepls.
Jul 22 '05 #5
pembed2003 wrote:
Do you know of any open source C++ libraries that I can use to access
Oracle? If my question is OT in this group, can you kindly point me to
the right group for my question?

I'd start with comp.databases.


Brian Rodenborn
Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: sedefo | last post by:
I ran into this Microsoft Patterns & Practices Enterprise Library while i was researching how i can write a database independent data access layer. In my company we already use Data Access...
3
by: Jon Ole Hedne | last post by:
My Access 2002-application need to work with tables from both Oracle and Access. To solve this, I want to run some querys on three views in Oracle and import the results into temporary...
10
by: Andrea M. Segovia | last post by:
Hello, I am a newbie to Oracle databases.... We have a visualization front-end tool connected to an Oracle back-end database on a Tru64 UNIX server. We also have clients with MS access...
13
by: BigDaDDY | last post by:
Um yeah....In case you haven't figured it out, Microsoft sucks. I'm going to be kicked back in my chair eating popcorn and watching football 10 years from now, while all you clowns are scrambling...
1
by: Andrew Arace | last post by:
I scoured the groups for some hands on code to perform the menial task of exporting table data from an Access 2000 database to Oracle database (in this case, it was oracle 8i but i'm assuming this...
11
by: Rosco | last post by:
Does anyone have a good URL or info whre Oracle and Access are compared to one another in performance, security, cost etc. Before you jump on me I know Oracle is a Cadillac compared to Access the...
5
by: premmehrotra | last post by:
I am using Microsoft Access 2000 and Oracle 9.2.0.5 on Windows 2000. When I export a table from Access to Oracle using ODBC I get error: ORA 972 identifier too long I think the error is because...
2
by: egoldthwait | last post by:
I need to convert a 17mb access 2000 db to Oracle and house it in a Citrix farm. The issue: we have never converted an Access Db to Oracle but can probably use Oracle's Workbench to assist with...
12
by: zwasdl | last post by:
Hi, I'm using MS Access to query against Oracle DB via ODBC. Is it possible to use HINT in Access? Thanks, Wei
5
by: jonceramic | last post by:
Hi All, I started developing in Access, and people took notice and so we're starting to migrate into our corporate's bigger Oracle system. I'll still be using my developed Access front ends,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.