Oracle 11 to Oracle 12 upgrade

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
mikeho
Posts: 41
Joined: Thu 11 Nov 2004 21:23
Location: Middle Tennessee USA

Oracle 11 to Oracle 12 upgrade

Post by mikeho » Wed 19 Apr 2017 14:51

Any good lessons learned or best practices when using ODAC and upgrading from Oracle 11 to Oracle 12?

Any settings within ODAC that should be looked at?

Any Delphi coding changes that should be considered?

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

Re: Oracle 11 to Oracle 12 upgrade

Post by AlexP » Thu 20 Apr 2017 08:00

Helllo,

If the database structure has not been changed, no additional changes will be required in ODAC or in your code.

mikeho
Posts: 41
Joined: Thu 11 Nov 2004 21:23
Location: Middle Tennessee USA

Re: Oracle 11 to Oracle 12 upgrade

Post by mikeho » Tue 06 Jun 2017 23:02

Testing after upgrade to Oracle 12 and getting a type mismatch error for a field. Expecting integer Actual: float. Why would that be coming up now? The field length for the field in question is Number(9).

The same query works fine in Oracle 11.

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Oracle 11 to Oracle 12 upgrade

Post by MaximG » Wed 07 Jun 2017 14:06

We tested ODAC work according to the description and found no problems. We used the table with the NUMBER(9) type field in Oracle 11 and Oracle 12 and got the same results when working with both DBMS.
For further problem investigation, please provide DDL script to create the table which you are using in your project, as well as the snippet causing the described error.

mikeho
Posts: 41
Joined: Thu 11 Nov 2004 21:23
Location: Middle Tennessee USA

Re: Oracle 11 to Oracle 12 upgrade

Post by mikeho » Wed 07 Jun 2017 14:16

That will be impossible to do with the size of our DB, but I can provide you the scenario.

TOraTable with Wave field number(9) (Data comes back fine)

TOraQuery Master that pulls from a view, Master Source is TOraTable with Wave parameter supplied by table. (Data comes back fine)

TOraQuery Child that pulls from another view, master source is Master with Wave parameter supplied by Master. This is the one that gets the mismatch error.

mikeho
Posts: 41
Joined: Thu 11 Nov 2004 21:23
Location: Middle Tennessee USA

Re: Oracle 11 to Oracle 12 upgrade

Post by mikeho » Thu 08 Jun 2017 15:11

Update. Seems to be an known Oracle 12c issue.

https://community.oracle.com/thread/4014403

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Oracle 11 to Oracle 12 upgrade

Post by MaximG » Fri 09 Jun 2017 08:00

We are glad that you could identify the problem. Contact us on any questions concerning ODAC usage.

mikeho
Posts: 41
Joined: Thu 11 Nov 2004 21:23
Location: Middle Tennessee USA

Re: Oracle 11 to Oracle 12 upgrade

Post by mikeho » Mon 12 Jun 2017 17:35

Our DBAs applied the Oracle patch, but that did not resolve the issue. I sent the information via the Devart Request Support Contact Form along with an attachment. I am hoping your system received it, because requested a copy of the email be sent to me, but I never received a copy. Can you confirm receipt?

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Oracle 11 to Oracle 12 upgrade

Post by MaximG » Tue 13 Jun 2017 07:10

We received the problem description via Devart Request Support Contact Form and started to investigate it.

mikeho
Posts: 41
Joined: Thu 11 Nov 2004 21:23
Location: Middle Tennessee USA

Re: Oracle 11 to Oracle 12 upgrade

Post by mikeho » Wed 14 Jun 2017 13:31

Sent further information via email. Can you confirm receipt?

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Oracle 11 to Oracle 12 upgrade

Post by MaximG » Thu 15 Jun 2017 09:37

We received your message via email, however we could not get the mentioned ZIP file

mikeho
Posts: 41
Joined: Thu 11 Nov 2004 21:23
Location: Middle Tennessee USA

Re: Oracle 11 to Oracle 12 upgrade

Post by mikeho » Thu 15 Jun 2017 09:51

Maxim I sent one directly to your email, Did that not have the zip file either?

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Oracle 11 to Oracle 12 upgrade

Post by MaximG » Thu 15 Jun 2017 14:07

Thank you for the description. We received your sample and started to investigate the problem. We will inform you about the results in the nearest time

mikeho
Posts: 41
Joined: Thu 11 Nov 2004 21:23
Location: Middle Tennessee USA

Re: Oracle 11 to Oracle 12 upgrade

Post by mikeho » Thu 15 Jun 2017 14:14

FYI, testing with TCP/IP Direct connection gives some strange results:
Adding the fields to the Fields editor, the Wave field comes back as TIntegerField at design time. However, at runtime with Direct connection, still get the Type mismatch error.

mikeho
Posts: 41
Joined: Thu 11 Nov 2004 21:23
Location: Middle Tennessee USA

Re: Oracle 11 to Oracle 12 upgrade

Post by mikeho » Fri 23 Jun 2017 20:15

For any others having similar issues, this was resolved with an Oracle setting:
alter session set "_optimizer_reduce_groupby_key"=false;

Post Reply