How to connect a C program to Oracle Database?

This is a discussion on How to connect a C program to Oracle Database? within the C Programming forums, part of the General Programming Boards category; Hi guys, I have good experience in the Oracle Database but i have never tried connecting a C program to ...

  1. #1
    Registered User
    Join Date
    Dec 2011
    Posts
    7

    How to connect a C program to Oracle Database?

    Hi guys,

    I have good experience in the Oracle Database but i have never tried connecting a C program to Oracle database or any other kind of database.

    Can anyone help how can I do that? Any ideas?

    Thanks a lot..

  2. #2
    Registered User
    Join Date
    Dec 2011
    Posts
    795
    Use fopen() to open up the database. Before you read and write, you need to find out the way that Oracle files are packed and do all of the i/o in that format. The protocol is probably on Google, and if not, you can open the file itself in a text editor and see if you can figure it out yourself.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,822
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4

  5. #5
    Registered User
    Join Date
    Apr 2006
    Posts
    58
    Depending on your version of Oracle, you can get the documentation from the Oracle web site.

    These are for version Oracle 10
    Pro*C/C++ Getting Started for Microsoft Windows (32-Bit)

    Pro*C/C++ Programmer's Guide

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Connect to a sql database
    By Boy67 in forum C++ Programming
    Replies: 4
    Last Post: 08-28-2008, 04:33 PM
  2. Database connect
    By column in forum C++ Programming
    Replies: 4
    Last Post: 02-14-2006, 03:40 AM
  3. C++ Oracle database programming
    By enhancedmode in forum C++ Programming
    Replies: 1
    Last Post: 11-15-2004, 03:46 PM
  4. oracle database connection
    By blue8173 in forum C Programming
    Replies: 1
    Last Post: 03-16-2004, 04:30 PM
  5. How to connect with Oracle database
    By Jone in forum C++ Programming
    Replies: 1
    Last Post: 10-02-2002, 07:09 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21