Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 24, 2012 06:12 AM by Ajay2707
Member
123 Points
331 Posts
Aug 19, 2012 03:30 AM|LINK
Contributor
3838 Points
748 Posts
Aug 19, 2012 09:23 PM|LINK
No locks on SELECT data.
Row lock on INSERT, UPDATE, DELETE in progress.
5014 Points
966 Posts
Aug 24, 2012 06:12 AM|LINK
Hi Aoshi_kh,
As lannie said, by default No lock in select data. you don't need nolock with Oracle.
SELECT SUM(LEN(name)) FROM master WITH (NOLOCK)
But when update cluase with select statement it create lock temporary.
normal select -- no lock insert , update , delete , select for update -- lock
see more for how to lock work.
http://stackoverflow.com/questions/1682240/what-can-happen-as-a-result-of-using-nolock-on-every-select-in-sql-sever
http://broadh2o.net/docs/database/oracle/oracleLocks.html
aoshi_kh
Member
123 Points
331 Posts
question about deadlock in oracle
Aug 19, 2012 03:30 AM|LINK
Lannie
Contributor
3838 Points
748 Posts
Re: question about deadlock in oracle
Aug 19, 2012 09:23 PM|LINK
No locks on SELECT data.
Row lock on INSERT, UPDATE, DELETE in progress.
Ajay2707
Contributor
5014 Points
966 Posts
Re: question about deadlock in oracle
Aug 24, 2012 06:12 AM|LINK
Hi Aoshi_kh,
As lannie said, by default No lock in select data. you don't need nolock with Oracle.
But when update cluase with select statement it create lock temporary.
normal select -- no lock
insert , update , delete , select for update -- lock
see more for how to lock work.
http://stackoverflow.com/questions/1682240/what-can-happen-as-a-result-of-using-nolock-on-every-select-in-sql-sever
http://broadh2o.net/docs/database/oracle/oracleLocks.html