answersLogoWhite

0


Best Answer

You can then add a new C source file and replace it with this content. Using the ODBC APIs SQLAllocHandle, SQLSetConnectAttr, and SQLDriverConnect, you should be able to initialize and establish a connection to your database.

To learn more about data science please visit- Learnbay.co

User Avatar

Learn bay

Lvl 8
2y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

You can use Oracle Call Interface or nested SQL with Pro*C precompiler. Of course you have to use the documentation (available on-line).

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How to connect c program with oracle?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you connect oracle with c?

You'll have to get the object code to link in some of the utilities.


How to connect database in C programming language c?

It depends on the database (eg Oracle, MySql, Postgresql), obviously.


What is difference between c and pro c?

C is the computer language bases on K&R's language that has evolved over the years. It includes C++, as extended by Stroustroup.. Pro*C is an Oracle precompiler that will read a C or C++ program, detect Oracle extensions to it, and convert it to native code for subsequent processing by the C or C++ compiler. This involves building the data structures and function calls needed to use Oracle while passing the non-Oracle C or C++ code through intact. The amalgamated code is then processed by the C or C++ compiler and it now works with Oracle.


What has the author David C Kreines written?

David C. Kreines has written: 'Oracle data dictionary pocket reference' -- subject(s): Database management, Oracle (Computer file) 'Oracle database administration' -- subject(s): Oracle (Computer file), Relational databases, SQL (Computer program language)


How do you connect oracle to java?

Connecting to Java from within a Oracle database is not possible. However, if you want to connect to an Oracle database from Java, you can use JDBC for the same. JDBC stands for Java DataBase Connectivity which is the framework that helps Java applications connect to databases like Oracle


What is oracle certification?

The Oracle Certification Program is a professional certification program offered by the Oracle Corporation. There are three levels of Oracle Certification in several disciplines: Oracle Certified Associate (OCA), Oracle Certified Professional (OCP), and Oracle Certified Master(OCM). Wikipedia


How is Oracle connected with C or C plus plus?

Need to find out the Oracle Connecting driver's that work for C or C++. e.g. Java uses JDBC-ODBC driver to connect to Oracle data base ..... (4 different types of JDBC drivers are available) There should be such drivers for C or C++ language as well ..... Google on C++ Oracle driver .... You can use the Oracle precompiler (Pro*C) or the Oracle Call Interface (OCI). OCILIB is an open source and cross platform Oracle Driver that delivers really fast and reliable access to Oracle databases.


Where can I find an Oracle database certificate program?

You can find an oracle database cirtification program from the education.oracle.com website. There you will also find other educational resources for oracle.


Connect c language to internet database?

Yes, you can write a program in C language which connects to a database.


What is an oracle program?

Oracle is a company; they produce several programs (notably Oracle, a database program, and, since they bought out Sun Microsystems, Solaris and Java). The programming language used in the Oracle database is mainly PL/SQL.


How do you connect oracle database in javascript?

By using ODBC


IS Oracle a database program?

Includes Oracle NoSQL Database, Oracle Multitenant, Oracle Real Application Clusters, Oracle Partitioning, Oracle Advanced Compression, Oracle OLAP, Oracle Machine Learning, Spatial and Graph, Database Lifecycle Management Pack, Oracle Enterprise Manager Control, and more To learn more about data science please visit- Learnbay.co.