How to access Oracle from C++?

P

pembed2003

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!
 
P

Pete C.

pembed2003 said:
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
 
P

pembed2003

Pete C. said:
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!
 
A

Alex Vinokur

pembed2003 said:
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/scripts/ShowCode.asp?txtCodeId=3537&lngWId=3
 
P

pankaj tiwary

Pete C. said:
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.
 
D

Default User

pembed2003 said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,171
Messages
2,570,935
Members
47,472
Latest member
KarissaBor

Latest Threads

Top