Page 1 of 2
OCI function is not linked
Posted: Fri 21 Feb 2014 12:13
by radub
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.
Re: OCI function is not linked
Posted: Fri 21 Feb 2014 13:50
by AlexP
Please specify your Oracle client version
Re: OCI function is not linked
Posted: Fri 21 Feb 2014 14:11
by radub
Oracle 10g
Re: OCI function is not linked
Posted: Mon 24 Feb 2014 07:14
by olhai
I have the same issue!
I had to roll back to 9.2.5 -> this version works fine (again).
regards
Oliver
Re: OCI function is not linked
Posted: Mon 24 Feb 2014 09:47
by radub
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.
Re: OCI function is not linked
Posted: Mon 24 Feb 2014 16:05
by MarkF
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
Re: OCI function is not linked
Posted: Mon 24 Feb 2014 16:32
by radub
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.
Re: OCI function is not linked
Posted: Mon 24 Feb 2014 22:34
by dados
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
Re: OCI function is not linked
Posted: Tue 25 Feb 2014 09:48
by AlexP
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.
Re: OCI function is not linked
Posted: Tue 25 Feb 2014 11:56
by radub
Very good news.
Thank you,
Radu B.
Re: OCI function is not linked
Posted: Wed 26 Feb 2014 08:29
by AlexP
The new ODAC build is already available at our website for download now
Re: OCI function is not linked
Posted: Wed 26 Feb 2014 10:07
by dados
Installed 9.2.7 and it works like a charm
Thanks
Re: OCI function is not linked
Posted: Wed 26 Feb 2014 10:17
by AlexP
You are welcome. Feel free to contact us if you have any further questions about ODAC.
Re: OCI function is not linked
Posted: Wed 26 Feb 2014 12:17
by radub
BugFixed.
Case closed.
Thank you,
Radu B.
Re: OCI function is not linked
Posted: Fri 28 Feb 2014 11:06
by AlexP
Glad to see that you solved the problem.