Exforsys

Online Training

Regarding Pro*c

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


Go Back   Exforsys > Articles and Tutorials > Oracle Tutorials

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-21-2006, 04:09 AM
Junior Member
 
Join Date: Nov 2006
Posts: 1
subhendu9 is on a distinguished road
Regarding Pro*c

What is the process to run a c program for database connectivity using Pro*C?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-29-2006, 12:16 PM
Junior Member
 
Join Date: Nov 2006
Posts: 2
vikasv is on a distinguished road
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;
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-30-2006, 06:51 PM
Senior Member
 
Join Date: Nov 2004
Posts: 177
sanereddy is an unknown quantity at this point
take a look at oracle documentation .... now a days not many are using Pro*c or Pro*COBOl.. because of web services...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:59 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.