Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Pro*C and fork

419791Apr 22 2004
Hi,

I'm having a disconnection problem with a non-multithreaded test program that basically executes select statements in the parent and child processes. The code looks like:

sql_connect();
if( fork() == 0 )
{
sql_connect();
exec_select_stmts();
exit(0);
}
else
{
exec_select_stmts();
}
sql_disconnect();

The parent select statements fail with SQL Error (-3114). How can I make sure that the child's connection does not affect the parent's connection?

Thanks,
Dorothy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 20 2004
Added on Apr 22 2004
0 comments
254 views