Exforsys
+ Reply to Thread
Results 1 to 3 of 3

Regarding Pro*c

This is a discussion on Regarding Pro*c within the Oracle Database forums, part of the Database category; What is the process to run a c program for database connectivity using Pro*C?...

  1. #1
    subhendu9 is offline Junior Member Array
    Join Date
    Nov 2006
    Answers
    1

    Regarding Pro*c

    What is the process to run a c program for database connectivity using Pro*C?


  2. #2
    vikasv is offline Junior Member Array
    Join Date
    Nov 2006
    Answers
    2
    well
    your ques is not clear....However u can write different function for logging in

    main
    {
    //declare and allocate the context
    //call logon(ctx,username,passwd,connstr);
    }


    int logon(sql_ctx ctx,char username[],char passwrd[],char conn_str[])
    {
    EXEC SQL CONTEXT USE :ctx;
    //copy username passwd and conn_str in oracle variables uid,passwd and connstring
    EXEC SQL CONNECT :uid IDENTIFIED BY asswd USING :connstring;
    //Handle the errors
    return 1;
    }


  3. #3
    sanereddy is offline Member Array
    Join Date
    Nov 2004
    Answers
    85
    take a look at oracle documentation .... now a days not many are using Pro*c or Pro*COBOl.. because of web services...


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...