.net - Oracle Update Hangs -
I'm having trouble with an oracle update The call to ExecuteNonQuery is hanging indefinitely
Code :. Using
(OracleCommand cmd = new OracleCommand (dbData.SqlCommandStr, Connecticut) {foreach (string colName in .dbData.main .ke) CMD. Parameter. Add (callname, dBData.value [callname]); CMD. Comma timeout = txtimeout; Int nRowsAffected = cmd.ExecuteNonQuery (); }
Command timeout is being set to 5, and the parameters are being set to small integer values. .
query:
set up "BEN" "TABLE03" = "COLUMN03" =: 1, "COLUMN04" =: 2 ou COLUMN05 & gt; 0
The query runs faster than sqlplus, and usually runs faster with my code but every time it hangs forever.
I have a question on v $ locked_object, and there is a record referring to this table, but I think the update is not completing that
Two things to me Want to know:? What could be the reason for the hang of the update?
More importantly, why is not an exception being thrown out here? I would expect to call five seconds, and then wait for the timeout.
I'm doing this because by adding this reason to rank its page in search results.
In my case, it was because I had killed a question in sqlplus, but I forgot to commit it. In this case, it was as Vincent said: The line was locked in another session
Accepted sqlplus update problem resolved
Comments
Post a Comment