Oracle Update Hangs

后端 未结 6 1356
忘掉有多难
忘掉有多难 2020-12-10 05:04

I\'m having trouble with an Oracle update. The call to ExecuteNonQuery hangs indefinitely.

The code:

using (OracleCommand cmd = new OracleCommand(db         


        
6条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 05:39

    seems like the database is waiting for a commit/rollback so it locks the row. I would suggest adding

    int nRowsAffected = cmd.ExecuteNonQuery();
    cmd.Commit();
    

提交回复
热议问题