how oracle database connectivity done using c lang.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Harish621621
    New Member
    • Sep 2009
    • 1

    how oracle database connectivity done using c lang.

    i want to connection bitween oracle and c language.
    please give example.
    thanks.
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    You use Pro*C from Oracle.

    What you do is write your C code using Pro*C. There are commands in Pro*C to connect to Oracle and to submit queries and retreive cursors.

    When you build, Pro*C has a preprocess that changes these Pro*C commands to C. Then yur file is passed to the normal C pre-processor and from there to the compiler and linker.

    It's pretty easy.

    Comment

    Working...