Ronald J Kimball wrote:
> On Thu, Nov 08, 2001 at 04:10:49PM +0800, CHEN SEI-LIM wrote:
> >
> > Jonathan Leffler wrote:
> >
> > > If you use DBD::Informix, it won't work reliably, if at all. One detail that
> > > a child process does not inherit is the PID - its PID is different from its
> > > parent's PID. This means that some forms of synchronization won't work.
> > > You can also run into problem with two processes sending messages at one
> > > time, with the server managing to disentangle them, but the child gets the
> > > response to the parent's request, or vice versa.
> > >
> > > Assume that each process has to make its own connection, regardless of any
> > > theory suggesting otherwise.
> >
> > DBI should be independent from OS's specific.
> > Especially without PID will cause some forms of synchronization error.
> > If Informix does have this problem. It means IT IS NOT A GOOD DATABASE.
> > I have to let you know sharing $dbh IS NOT IMPOSSIBLE.
> > If you have a good mutex handle. Processes can share the same $dbh very well.
>
> Gee, I guess Oracle is not a good database either, because you definitely
> can't share a DBD::Oracle handle after forking.
>
> Ronald
How could you know DBD::Oracle can't be shared after forking?
How could you prove it?
Have you made a program to try it?
If you have not, try it then please tell me the result.