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!

ExecuteNonQuery hangs when stored proc raises errors

user850293Apr 14 2016 — edited Jul 15 2016

We are using the Managed Driver (version 4.121.2.0) to call some stored procedures. It worked fine until the stored procedure threw exceptions using RAISE_APPLICATION_ERROR. If exceptions were thrown in the stored proc, ExecuteNonQuery would hang. This did not occur with the un-managed driver.

This looks like a bug to me, does anyone know how to get around it in the short term?

Code:

=========================

using Oracle.ManagedDataAccess.Client;

... ...

OracleCommand cmd = new OracleCommand("stored_proc", conn);

cmd.CommandType = CommandType.StoredProcedure;

conn.Open();

cmd.ExecuteNonQuery();          // Hangs if stored_proc RAISE_APPLICATION_ERROR(-20000,'ERROR!!!');

... ...

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 12 2016
Added on Apr 14 2016
11 comments
3,709 views