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)
radub
Posts: 105
Joined: Sat 10 Jul 2010 18:46

OCI function is not linked

Post by radub » Fri 21 Feb 2014 12:13

Hello,

After upgrading the ODAC today, I received the above exception when trying to connect to oracle server (set Connected:=true in TOraSession).

Is there anything new to set up?

Thank you,
Radu B.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: OCI function is not linked

Post by AlexP » Fri 21 Feb 2014 13:50

Please specify your Oracle client version

radub
Posts: 105
Joined: Sat 10 Jul 2010 18:46

Re: OCI function is not linked

Post by radub » Fri 21 Feb 2014 14:11

Oracle 10g

olhai
Posts: 2
Joined: Wed 30 May 2007 18:52

Re: OCI function is not linked

Post by olhai » Mon 24 Feb 2014 07:14

I have the same issue!

I had to roll back to 9.2.5 -> this version works fine (again).


regards
Oliver

radub
Posts: 105
Joined: Sat 10 Jul 2010 18:46

Re: OCI function is not linked

Post by radub » Mon 24 Feb 2014 09:47

Unfortunately I cannot rollback to a previous version, because I am pending of SDAC as well and previous version of SDAC has its own problems.

I need a quick bugfix on this, taking into account that I was waiting for 1.5 months (from 09.01 to 20.02) to deploy the SDAC version on my clients.
Now I am waiting for ODAC (!!!).

Thank you,
Radu B.

MarkF
Posts: 211
Joined: Thu 02 Mar 2006 14:55

Re: OCI function is not linked

Post by MarkF » Mon 24 Feb 2014 16:05

I can confirm that this happens with the Oracle 10.1.0.4.0 client (the only Oracle 10 client I have on the test machine.) The initial "OCI Function is not linked" error is due to a bug in TOracleHome.DetectOCIClientVersion where the 9.2.6 version uses a different GetProcAddress call which returns @NotLink however tests it against nil (it should either check for @NotLink or go back to the older code which used the Windows API GetProcAddress. I've fixed this in my code and the function now properly sets the version. However I then get:

Project x raised exception class EOCIInitError with message 'Can't initialize OCI. Error -1'.

-Mark Ford
Benthic Software
Last edited by MarkF on Mon 24 Feb 2014 18:00, edited 2 times in total.

radub
Posts: 105
Joined: Sat 10 Jul 2010 18:46

Re: OCI function is not linked

Post by radub » Mon 24 Feb 2014 16:32

Very strange!
This happens since I upgraded from ODAC 6.90 to 9.20 on the same Oracle 10.2g.
On the old version of ODAC everything has worked fine, with no errors.

I insist that is a problem with the DAC not with the Oracle.

Radu B.

dados
Posts: 82
Joined: Thu 18 Aug 2005 14:06

Re: OCI function is not linked

Post by dados » Mon 24 Feb 2014 22:34

I have 10.1.0.4 and 11.2.0.1 clients installed
Just upgraded from 9.2.5 to 9.2.6 and I'm also getting "OCI function is not linked" when using the 10.1.0.4 client, the 11.x client works as it did before the upgrade.

Reg,
Arni Thor

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: OCI function is not linked

Post by AlexP » Tue 25 Feb 2014 09:48

Thank you for the information. We have reproduced the problem on Oracle client versions lower than 10.2 and will upload the fixed build within two days.

radub
Posts: 105
Joined: Sat 10 Jul 2010 18:46

Re: OCI function is not linked

Post by radub » Tue 25 Feb 2014 11:56

Very good news.

Thank you,
Radu B.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: OCI function is not linked

Post by AlexP » Wed 26 Feb 2014 08:29

The new ODAC build is already available at our website for download now

dados
Posts: 82
Joined: Thu 18 Aug 2005 14:06

Re: OCI function is not linked

Post by dados » Wed 26 Feb 2014 10:07

Installed 9.2.7 and it works like a charm

Thanks

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: OCI function is not linked

Post by AlexP » Wed 26 Feb 2014 10:17

You are welcome. Feel free to contact us if you have any further questions about ODAC.

radub
Posts: 105
Joined: Sat 10 Jul 2010 18:46

Re: OCI function is not linked

Post by radub » Wed 26 Feb 2014 12:17

BugFixed.

Case closed.

Thank you,
Radu B.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: OCI function is not linked

Post by AlexP » Fri 28 Feb 2014 11:06

Glad to see that you solved the problem.

Post Reply