oracle session programm oracle session my web site session update comp

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
oracle session 1 - programm
oracle session 2 - my web site
session 1 -> update company set company_name='Coca-Cola' where id = '10';
and this time i put my query from my web site
session 2 -> update comapny set company_name='IBM' where id ='10';
My 'session 2' hangs until the 'session 1' will not execute 'commit;'
I make exception in this case?
If the row is locked then he gives exception and not hang
Please help me.