Skip to Main Content

SQL & PL/SQL

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!

stored procedure(without parameter) slow when called from vb.net(odp.net) program, fast from sql plu

Avadh MakwanaAug 17 2017 — edited Aug 17 2017

Hello,

I created one stored procedure which have no parameter.

I execute it from sql plus and it takes 10 to 11 minutes.

But, when I call it from vb.net (odp.net) program,

it takes approx 1 hour.

I did not understand reason and what is the difference.

Please help me to solve this issue.

below code is used to call procedure from vb.net program.

Dim oraConn As New OracleConnection("connection string")

oraConn.Open()

Dim oraTrn As OracleTransaction = oraConn.BeginTransaction()

Using oraCmd As New OracleCommand

With oraCmd

.Connection = oraConn

.Transaction = oraTrn

.CommandType = CommandType.StoredProcedure

.CommandText = "procedure name"

.ExecuteNonQueryAsync()

End With

End Using

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 14 2017
Added on Aug 17 2017
3 comments
588 views