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!

ManagedData Access Core throws exception on Merge statement

user2256623Mar 27 2019 — edited Mar 28 2019

Having an issue with ManagedData Access for .Net Core driver.

if I use a MERGE statement, the action happens, but then the driver also throws a Oracle exception 12537 (ORA number). 

since the merge seems to work, i'm catching this error and swallowing it, but it does seem like something we shouldn't have to do.  Any thoughts?

Is there anything special about how a merge statement should be called that's different from inserts or updates that seem to work fine?

This post has been answered by user2256623 on Mar 27 2019
Jump to Answer

Comments

unknown-7404
Answer

It looks like in Java it is preferred to have the connection pool set up on the server (tomcat).

Not quite - the connection pool (and any other Java code) will be 'set up' within the JVM instance. That will be on whatever machine you execute 'java.exe' on.

So my question is if I deployed 5 distinct applications on to a tomcat web server each (referencing their own UCP java and OJDBC jar) when the application's startup, do each application create its own separate connection pool?

See my first comment above.

1. you use 'java.exe' to create a JVM - a JVM is a container - it does NOT interact with anything outside that container unless you write code to do so.

2. you run ONE APPLICATION on that JVM

3. that application can create as many connection pools as it wants in that JVM

4. that application can be multi-threaded so each thread can do whatever it wants/needs to do including creating pools (see #3)

5. multiple applications launch their own JVMs running a single app so for each app just go back and see #2, #3 and #4

Marked as Answer by mlov83 · Sep 27 2020
mlov83

Thanks for the response RP0428, that makes a ton of sense, just to make sure I understand in Tomcat I wouldn't execute a java.exe are you referring to .net in your above reply? follow up question, do you think tomcat would do the same? The reason I ask is because I've been reading a lot about class loaders and how if I have to projects with the same exact class names they will clash. Sorry , If I'm confusing apples and oranges here, I'm just trying to be thorough and make sure I understand.

unknown-7404

Tomcat is launching the JVM and creating multi-threaded 'apps' within it. Each of those 'apps' can have its own connection pool and there won't be any crosstalk/access between the apps.

1 - 3

Post Details

Added on Mar 27 2019
4 comments
238 views