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!

NetCore. OracleCommand. How to abort execution?

dotnetuserDec 27 2019 — edited Dec 30 2019

Hello.

I'm using oracle.manageddataaccess.core.

I can’t specify the timeout or at least interrupt the execution of the command.
The only thing that works for sure

                var m_oracleConnectionImpl = __Get(connection, "m_oracleConnectionImpl");

                var m_marshallingEngine = __Get(m_oracleConnectionImpl,"m_marshallingEngine");

                var m_oracleCommunication = __Get(m_marshallingEngine,"m_oracleCommunication");

                var m_sessionCtx = __Get(m_oracleCommunication, "m_sessionCtx");

                var m_transportAdapter = __Get(m_sessionCtx, "m_transportAdapter");

                var m_client = (TcpClient)__Get(m_transportAdapter, "m_client");

                m_client.Close();

CommandTimeout + oob does not affect anything.

Is there another beautiful solution?

Comments

Post Details

Added on Dec 27 2019
8 comments
437 views