
- Forum
- Database
- Oracle Database
- Regarding Pro*c
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?...
-
Regarding Pro*c
What is the process to run a c program for database connectivity using Pro*C?

-
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;
}
-
take a look at oracle documentation .... now a days not many are using Pro*c or Pro*COBOl.. because of web services...
-
Sponsored Ads

Reply With Quote





