Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

UDTs and .net custom types are not supported in Oracle managed driver

User_E8CJBAug 16 2021

Hi Team,
I have upgraded to Oracle managed driver(Oracle.ManagedDataAccess.Client) for my .net applicaton but here I see the UDT and .net custom type is not supported . Could you please let us know the alternative for it ?
We have procedures which accepts the record type as input parameter and I am unable to find the custom types for it.
Thanks
Sukanta

Comments

Alex Keh-Oracle

Managed ODP.NET 21.3 supports UDTs and .NET custom types. You can download this version from NuGet.
https://www.nuget.org/packages/Oracle.ManagedDataAccess/

User_E8CJB

Hello,
Thanks for the solution. There are so many dependencies need to be installed with Oracle.ManagedDataAccess 21.3.0 .
System.Text.Json (>= 5.0.2)
and to install System.Text.Json need to install below dependencies:
Microsoft.Bcl.AsyncInterfaces (>= 5.0.0)
System.Buffers (>= 4.5.1)
System.Memory (>= 4.5.4)
System.Numerics.Vectors (>= 4.5.0)
System.Runtime.CompilerServices.Unsafe (>= 5.0.0)
System.Text.Encodings.Web (>= 5.0.1)
System.Threading.Tasks.Extensions (>= 4.5.4)
System.ValueTuple (>= 4.5.0)
and many more.

Alex Keh-Oracle

.NET (Core) is much more modular than .NET FW. That's good for customizing the runtime and reducing deployment size.
The design also means when a piece of functionality exists in another dependency, which itself can have dependencies, all those libraries have to be included.
System.Text.Json is needed to process JSON data types. ODP.NET 21c has added the ability to use binary JSON and further capabilities to manipulate JSON, which is what necessitated the requirement.

1 - 3

Post Details

Added on Aug 16 2021
3 comments
284 views