Stored Proc call fails after upgrade from Oracle 12 to Oracle 19

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
clint_silver
Posts: 9
Joined: Mon 24 Feb 2014 15:06

Stored Proc call fails after upgrade from Oracle 12 to Oracle 19

Post by clint_silver » Wed 03 Nov 2021 16:18

Discovered an issue with OCI calls to certain stored procedures from Oracle 18 onwards. We encoutered it after upgrading from 12 to 19. We have many procs that are called and work, the stored proc thats failing accepts arguments of TYPES defined as TYPE table. The error manifests itself as

Code: Select all

{"Cannot describe stored procedure arguments."}
 
        StackTrace  "   at Devart.Data.Oracle.OracleSessionOci.DescribeProcedure(String \u0002, Int32 \u0003, OracleConnection \u0005)\
Which leads us to an introduced change from 18c onwards in PLSQL with which how OCI calls to Oracle procedures work as they refer to ALL_TYPES and ALL_ARGUMENTS dictionary view to asses the object before calling and Im guessing the multiple TYPES are now not returning as expected on the call.

https://docs.oracle.com/en/database/ora ... B8630FC32D

We can get rid of this error by mimicing the previous Oracle 12 version of the ARGUMENTS view by setting events

alter session set events '10946 trace name context forever, level 65536';

(we dont want to apply to entire system so just setting on session for now)

And if we call this before the call to proc and recompile the procedure, it gets it to work.

But this is a workaround. Is this known about in OCI land and is there any plans to fix it?

Curently tested on Devart 9.11.980

DmitryGm
Devart Team
Posts: 152
Joined: Fri 11 Dec 2020 10:27

Re: Stored Proc call fails after upgrade from Oracle 12 to Oracle 19

Post by DmitryGm » Thu 04 Nov 2021 10:04

Please describe in more detail: what steps do we need to take to reproduce this error in our environment? Could you share a dump of the database with your procedures, as well as an example of calling those procedures that causes the error?

Also, note that the latest version of dotConnect for Oracle 9.14.1369 contains some improvements and fixes:
https://www.devart.com/dotconnect/oracl ... story.html

clint_silver
Posts: 9
Joined: Mon 24 Feb 2014 15:06

Re: Stored Proc call fails after upgrade from Oracle 12 to Oracle 19

Post by clint_silver » Thu 04 Nov 2021 10:30

I'll put a test case together so you can replicate

peterk
Posts: 3
Joined: Tue 07 Dec 2021 14:28

Re: Stored Proc call fails after upgrade from Oracle 12 to Oracle 19

Post by peterk » Tue 07 Dec 2021 15:08

I can confirm both
- the problem still exists even with the latest version (9.14.1382)
- the proposed workaround.

Are there any news on this issue?

DmitryGm
Devart Team
Posts: 152
Joined: Fri 11 Dec 2020 10:27

Re: Stored Proc call fails after upgrade from Oracle 12 to Oracle 19

Post by DmitryGm » Wed 08 Dec 2021 12:35

clint_silver wrote: Thu 04 Nov 2021 10:30 I'll put a test case together so you can replicate
peterk wrote: Tue 07 Dec 2021 15:08 Are there any news on this issue?
We are still waiting for the test case to reproduce the issue.

Please describe in more detail: what steps do we need to take to reproduce this error in our environment? Could you share a dump of the database with your procedures, as well as an example of calling those procedures that causes the error?

peterk
Posts: 3
Joined: Tue 07 Dec 2021 14:28

Re: Stored Proc call fails after upgrade from Oracle 12 to Oracle 19

Post by peterk » Wed 05 Jan 2022 11:31

DmitryGm wrote: Wed 08 Dec 2021 12:35 We are still waiting for the test case to reproduce the issue.
I just sent you a mininmal test case per mail.

DmitryGm
Devart Team
Posts: 152
Joined: Fri 11 Dec 2020 10:27

Re: Stored Proc call fails after upgrade from Oracle 12 to Oracle 19

Post by DmitryGm » Wed 05 Jan 2022 13:17

Thank you for your report. We have reproduced the issue (Cannot describe stored procedure arguments) and the investigation is in progress. We shall inform you as soon as we have any results.

peterk
Posts: 3
Joined: Tue 07 Dec 2021 14:28

Re: Stored Proc call fails after upgrade from Oracle 12 to Oracle 19

Post by peterk » Wed 20 Apr 2022 19:07

Hi Dimitry,

any progress on this issue?

Kind regards

Peter

DmitryGm
Devart Team
Posts: 152
Joined: Fri 11 Dec 2020 10:27

Re: Stored Proc call fails after upgrade from Oracle 12 to Oracle 19

Post by DmitryGm » Thu 28 Apr 2022 09:47

the investigation is in progress. We shall inform you as soon as we have any results.

Post Reply