oracle - Any reason why this sql might cause problems? -


update tablea set tablea.column1 = 'somevalue' tablea.column2 in  ( select column3 tableb tableb.column4 in  ( 'valuea', 'valueb', -- 50 more records go here ) ) 

when run this, database seems hang. pretty new sql, want rule out (...or more rule in) possibility problem statement. running on oracle database using sqldeveloper.

if db appearing "hang" may there modifications data in another, uncommited session.

try...

select *   tablea  tablea.column2 in ( select .... ) update nowait; 

and see if an:

ora-00054: resource busy , acquire nowait specified or timeout expired 

make sure issue rollback after test.

if error, indicates session has lock on data.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -