Reputation: 2958
I am looking for a way to connect to an remote oracle database and read some data from table within a c++ console application. Can some one give me some hints. Thnx.
Upvotes: 6
Views: 31558
Reputation: 4695
Currently (2021) actively developed is also OCILIB, I was able to setup the test example in short time.
Upvotes: -1
Reputation: 5496
You can try: CODBC
. It is an API for Pro*C
. Pro*C
is a very decent way to connect Oracle and C++.
Upvotes: 1
Reputation: 8709
You can use OCCI: http://www.oracle.com/technetwork/database/features/oci/index-090820.html
or OCI: http://www.oracle.com/technetwork/database/features/oci/index.html
or one of many other APIs available.. It really depends on the type of thing you're going to use it for.. You should find a lot of information about the pros/cons of the various APIs through google..
Upvotes: 1
Reputation: 11110
Unless it's study purpose or strict requirement with ORACLE DB, I'd suggest you to work with generic classes/services provided with various Microsoft Framework.
Upvotes: 1
Reputation: 45239
You can either use the Oracle C++ Call Interface (native API) or the Open DataBase Connectivity API. If you want a more high-level wrapper, there are some more convenient interfaces in libraries such as Qt.
Upvotes: 1
Reputation: 15715
The official Oracle website proposes several resources. Amongst others:
Just google, there are really plenty of tutorials around.
Upvotes: 5
Reputation: 18339
soci, http://soci.sourceforge.net, is a reasonably modern C++ interface that uses the Oracle call interface. And can also connect to other databases ...
Upvotes: 9