oracle10g - oracle db lock issue, commit -


This Oracle is 10g if I issue an update on a table from sqlplus but does not commit, then in the second session Update on the same line and try to commit, until I commit to the first one. I know that some people argue that this is a locking mechanism, but we have only one thing and the users are being blocked.

Is this the best way to avoid this problem? Instead of trying to update only, you can issue a lock with the NOWAIT option, for example,

For

  SELECT * FROM to update where my location is;  

If the line is locked by another user, then Oracle will immediately raise ORA-200054: the resource is busy and received with the specified NOWAIT .


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -