refresh, reopen error

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: refresh, reopen error

Post by AlexP » Tue 22 Sep 2015 08:24

In the latest ODAC versions, on an attempt to insert equal values to a unique field, both in Direct and OCI modes, a correct error message is displayed.

Valgardur
Posts: 165
Joined: Tue 24 Nov 2009 19:33

Re: refresh, reopen error

Post by Valgardur » Fri 09 Oct 2015 12:48

(After monitoring, debugging whenever I found time..- DB monitor offers no information, and Delphi's debugger does not catch anything)

My best guess is that the database connection gets lost, but OnConnectionLost event is not triggered.

At least, calling "refresh" every 15 minutes seems to be enough to avoid this..

But not an acceptable solution.

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

Re: refresh, reopen error

Post by AlexP » Tue 20 Oct 2015 14:44

Please check whether the EXPIRE_TIME parameter is set on your server (in the sqlnet.ora file) and to what value.

Valgardur
Posts: 165
Joined: Tue 24 Nov 2009 19:33

Re: refresh, reopen error

Post by Valgardur » Tue 20 Oct 2015 17:16

I'll ask the DB admin, I don't have access to this..

But why would that make a difference? This problem did occur in ODAC version 9.5.18 with Delphi XE8.. building in 9.4.14 and Delphi XE2 solved this and this was never a problem... I have been using ODAC in this environment for years.

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

Re: refresh, reopen error

Post by AlexP » Wed 21 Oct 2015 08:04

We have encountered a problem in the latest ODAC version when using EXPIRE_TIME, and are now fixing this behavior. If you use this parameter, then the problem is most likely the same. So please check server settings, and if the parameter is used, we will send you a fixed build as soon as we fix the issue.

Valgardur
Posts: 165
Joined: Tue 24 Nov 2009 19:33

Re: refresh, reopen error

Post by Valgardur » Thu 22 Oct 2015 11:35

Hi, it was set to 15 minutes on our production database, but not set in our test or development database, explaining why it was difficult to replicate..

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

Re: refresh, reopen error

Post by AlexP » Fri 23 Oct 2015 07:46

We have already fixed the problem, and we can send you a night build in order for you to check this case on your sample. For this, please send your license number to alexp*devart*com .

Valgardur
Posts: 165
Joined: Tue 24 Nov 2009 19:33

Re: refresh, reopen error

Post by Valgardur » Fri 23 Oct 2015 09:08

thanks, I already circumvented this by having a timer that calls the database, I could not possibly have waited this long.. so for now, I will just wait for the build... I'll send my license number anyway

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

Re: refresh, reopen error

Post by AlexP » Fri 23 Oct 2015 10:38

Thank you. I have received your letter. Your subscription is active. Please specify the IDE version - and I will send you a fixed version.

Valgardur
Posts: 165
Joined: Tue 24 Nov 2009 19:33

Re: refresh, reopen error

Post by Valgardur » Fri 23 Oct 2015 10:48

Thanks, Delphi 10 Seattle

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

Re: refresh, reopen error

Post by AlexP » Fri 23 Oct 2015 11:47

I have sent you a link to the fixed version via email.

Valgardur
Posts: 165
Joined: Tue 24 Nov 2009 19:33

Re: refresh, reopen error

Post by Valgardur » Fri 23 Oct 2015 13:15

great thanks

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

Re: refresh, reopen error

Post by AlexP » Mon 26 Oct 2015 08:44

Please let us know whether the problem is solved in the version we sent you.

Valgardur
Posts: 165
Joined: Tue 24 Nov 2009 19:33

Re: refresh, reopen error

Post by Valgardur » Mon 26 Oct 2015 09:19

No, as I explained in an e-mail I got serious error message when opening Delphi after installing.

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

Re: refresh, reopen error

Post by AlexP » Mon 26 Oct 2015 10:04

I have received your email. Such error may occur if you haven't removed the previous version of ODAC completely or if you have the other DAC products installed.

Post Reply