OCI Function is not linked

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Manan
Posts: 1
Joined: Mon 10 Aug 2009 10:07

OCI Function is not linked

Post by Manan » Mon 10 Aug 2009 10:19

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.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Tue 11 Aug 2009 07:23

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.

Post Reply