Errors after upgrading from 6.25.2.15 to 6.90.0.59

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
borax1974
Posts: 12
Joined: Wed 15 Sep 2010 14:42

Errors after upgrading from 6.25.2.15 to 6.90.0.59

Post by borax1974 » Wed 15 Sep 2010 22:05

Hi,

I have a multi threaded project working for 2 years with many clients and configs without any errors with
Delphi 2007 U3, ODAC 6.25.2.15.

But when I upgraded the ODAC version to 6.90.0.59 I started getting the below errors randomly with diffrerent queries.

OCI_INVALID_HANDLE
ORA-01008: not all variables bound
ORA-01036: illegal variable name/number
ORA-24337: statement handle not prepared

When I switch back to ODAC 6.25.2.15 everything is ok. I'm confused?
I dont use the net option and threadsafety of session is true. Autocommit is set to false.

The program is a multithreaded app with one session created in main thread (and never freed in the lifetime of the exe) and other query, strproc objects created in threads connected using the session in main thread. As I said before the architecture has been stress tested for 2 years and with many clients and worked 7*24.

I want to upgrade to Delphi 2010/XE. But this error prevents me from doing so.

Bora Aydemir

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

Post by AlexP » Fri 17 Sep 2010 12:08

Hello,

Please send me the following information and I will try to reproduce this problem
- the code of the stored procedure where the error occurs;
- the code of the query where the error occurs;
- the parameters of the query and the stored procedure;
- the Delphi code where the error occurs;
- if you can create a small project to demonstrate the problem please send it to me (alexp*devart*com), it'll help us to resolve the problem

borax1974
Posts: 12
Joined: Wed 15 Sep 2010 14:42

Post by borax1974 » Fri 17 Sep 2010 13:04

Hi

The query's are simple for ex:

SELECT Ci.ForceClose FROM CE_INSTRUMENTS Ci WHERE Ci.InstrumentId = :InstrumentId

InstrumentId is set to 74 .....

This query results with a ORA-24337 with odac 6.90.0.59 (As I said before these query's and project work with 6.25 perfectly. Many threads accept and send data simultaneously and interact with oracle)
The source code is big and detailed. I will try to create a demo project from it.

I have another big project with TOraSession and TQuery's in the same thread (the main thread). It has no problems with 6.90 or 6.25.
So I think it must be about threads an orasession and query being in others threads

borax1974
Posts: 12
Joined: Wed 15 Sep 2010 14:42

Post by borax1974 » Fri 17 Sep 2010 19:50

Hi Alex,

I sent a sample project to (alexp*devart*com). Please let me know if you dont receive it or have any problems.

Thanks

Bora Aydemir

borax1974
Posts: 12
Joined: Wed 15 Sep 2010 14:42

Post by borax1974 » Tue 21 Sep 2010 14:40

Any clues or progress?

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

Post by AlexP » Wed 22 Sep 2010 06:30

Hello,

We have reproduced the issue.
We will notify you as soon as we have any results.

bork
Devart Team
Posts: 649
Joined: Fri 12 Mar 2010 07:55

Post by bork » Thu 23 Sep 2010 10:03

Hello

This bug is fixed. This fix will be included in the next ODAC build.

borax1974
Posts: 12
Joined: Wed 15 Sep 2010 14:42

Post by borax1974 » Thu 23 Sep 2010 12:27

Thanks

I think it will be version 7 build, isn't it?

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

Post by AlexP » Thu 23 Sep 2010 12:49

Hello,

Yes it will be fixed in the next build of the current version.

borax1974
Posts: 12
Joined: Wed 15 Sep 2010 14:42

Post by borax1974 » Tue 12 Oct 2010 08:13

Any possible date for the next release?

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

Post by AlexP » Tue 12 Oct 2010 08:23

Hello,

The next build will be released approximately in two weeks.

Milan Bacik
Posts: 28
Joined: Fri 28 Apr 2006 08:59
Location: Czech Republic
Contact:

Version

Post by Milan Bacik » Mon 07 Feb 2011 11:34

Is this problem fixed in last 6.x version 6.90.0.60 ? This release has release date 13-Aug-10, before this topic was closed. In our aplication we got sometime this error and we use multiple threads. We upgraded from 5.x version, were this problem didnt ocured.

bork
Devart Team
Posts: 649
Joined: Fri 12 Mar 2010 07:55

Post by bork » Tue 08 Feb 2011 08:51

Hello

We fixed some multi-thread issues in the 7.0.0.2 ODAC version. Please try to download the latest version and test your application again. If this issue can be reproduced with the latest version, please contact me here and describe the detailed steps to reproduce this issue.

Milan Bacik
Posts: 28
Joined: Fri 28 Apr 2006 08:59
Location: Czech Republic
Contact:

Post by Milan Bacik » Tue 08 Feb 2011 10:34

I cant test 7.0 version as I dont have active subscription(bought upgrade 5-> 6 in 2008, but start using it now after upgrading BDS2006 -> BDS2007). The problem is not reproducable, as it is multi thread releated and ocurs very rarely. I have latest 6 release 6.90.0.60.

bork
Devart Team
Posts: 649
Joined: Fri 12 Mar 2010 07:55

Post by bork » Thu 10 Feb 2011 12:10

Hello

To fix any issue we should reproduce it. Without reproducing it is like to look for a needle in a haystack.

If you don't have active subscription, you can download trial version and check it. If your issue is fixed, you can renew your subscription.

Post Reply