Connect to oracle database using C ++

I am looking for a way to connect remote oracles to a database and read some data from a table in a C ++ console application. Can someone give me some hints. Thnx.

+7
source share
6 answers

soci, http://soci.sourceforge.net , is a fairly modern C ++ interface that uses the Oracle call interface. It can also connect to other databases ...

+8
source

The official Oracle site offers several resources. Among others:

Just Google, there really are a lot of tutorials.

+5
source

You can either use the Oracle C ++ Call Interface (native API) , or Open the database connection API . If you need a higher-level shell, libraries have even more convenient interfaces, such as Qt .

+1
source

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 what you are going to use for it. You should find a lot of information about the advantages / disadvantages of the various APIs through Google.

+1
source

If this does not study the purpose or strict requirement with ORACLE DB, I would suggest you work with generic classes / services provided using various Microsoft Framework.

+1
source

You can try: CODBC . This is the API for Pro*C Pro*C is a very decent way to connect Oracle and C ++.

+1
source

All Articles