Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Using Pro*C in a Windows DLL
Keith Bloom wrote:
>>>I've been able to get the library to compile with minor changes as a >>>Windows DLL, and when the client program calls the connect function
>>>DLL makes the connection. However, any function called after that >>>returns an ORA-01012 "not connected" error. Auditing sessions in the >>>database shows that the connection persists while the program >>>continues to run. So the connection is there, but the DLL is unable >>>to find it again.
>>>Is there some way to get this to work on Windows?
>>Include a connect statement in your Pro*C code and reconsider what you >>are doing. Sessions aren't shared between Winblows threads
Interesting, with those connect statements you would need to test dbname for every SQL you performed to know whether or not to use AT POLREPO. If you connect AT POLREPO and then EXEC SQL AT somewhere_else (no AT statement implies a default), which isn't connected, then you would get ORA-1012 errors.
Dave. Received on Mon Feb 28 2005 - 06:27:42 CST