Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 204
  • Last Modified:

c data base connection

I want to connect oracle 8.0 database into my c program
if you anyone having sample plz mail to my id

Thanking you
0
arulthayalan
Asked:
arulthayalan
1 Solution
 
fsign21Commented:
Are asking for the entire OCI documentation?
Consult your
Oracle Call Interface Programmer's Guide
Oracle Pro*C/C++ Precompiler Programmer's Guide

You can find a lot of examples there.
-----------
Oracle provides code examples illustrating the use of OCI calls.
The demonstration programs are available with your Oracle installation. The location, names, and availability of the programs may vary on different platforms. On a Unix workstation, the programs are installed in the ORACLE_HOME/demo directory. On a Windows NT machine, the programs are located in the ORACLE_HOME\Oci\Samples directory.
-------------

Or do you mean that you need a function to connect to the Oracle database?
Use OCILogon()
--------------
OCILogon()
This function is used to create a simple logon session.

Syntax
sword OCILogon ( OCIEnv          *envhp,
                 OCIError        *errhp,
                 OCISvcCtx       **svchp,
                 CONST text      *username,
                 ub4             uname_len,
                 CONST text      *password,
                 ub4             passwd_len,
                 CONST text      *dbname,
                 ub4             dbname_len );
0
 
tinchosCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by: fsign21

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Tinchos
EE Cleanup Volunteer
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now