By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,741 Members | 1,979 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,741 IT Pros & Developers. It's quick & easy.

How to access Oracle from C++?

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
"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

P: n/a

"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

P: n/a
"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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.