Page 1 of 1

OCI Function is not linked

Posted: Mon 10 Aug 2009 10:19
by Manan
Hello.
I have such a problem:

I use ODAC components with Delphi 6. I try to call DLL from main application and set the connection there by using TSessiotn.AssignConnect.

But after calling TSessiotn.AssignConnect in DLL I receive exception "OCI Function is not linked".
I've made some experiments and found that if I set option UseOCI7 in TSession the exception doesn't raise but when I do disconnect in DLL - TSessiotn.AssignConnect(nil) - I receive another error: "Need Ocacle 8 Call Interface".
Could you tell me the solution ot this problem?

I use Delphi 6 (build 6.240) Update Pack 2, ODAC Prof Edition 6.8.048, Oracle Client 10.2.0.4, Windows XP Prof 2002 SP2.


Thanks.

Posted: Tue 11 Aug 2009 07:23
by Plash
We have fixed the 'OCI functions not linked' error. The fix will be included in the next build of ODAC.

You should not set the UseOCI7 option. As a workaround you should add the OraCall unit to USES in DLL and call the InitOCI procedure before AssignConnect.