Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connect to oracle database with C++

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.

like image 452
Dynamikus Avatar asked Sep 07 '11 13:09

Dynamikus


People also ask

Does Oracle use C?

Oracle Database developers have a choice of languages for developing applications—C, C++, Java, COBOL, PL/SQL, and Visual Basic. The entire functionality of the database is available in all the languages. All language-specific standards are supported.

Can you connect to an Oracle Database from Excel?

Connecting to Oracle from Microsoft Excel using ODBC Driver for Oracle. You can use Microsoft Excel to access data from a Oracle database using ODBC connector. With ODBC Driver, you can import the data directly into an Excel Spreadsheet and present it as a table.


2 Answers

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

like image 78
janm Avatar answered Sep 27 '22 15:09

janm


The official Oracle website proposes several resources. Amongst others:

  • Oracle C++ Call Interface
  • Develop C and C++ Applications with Oracle Database 11g Using OCI

Just google, there are really plenty of tutorials around.

like image 41
Barth Avatar answered Sep 27 '22 15:09

Barth