Suppose there is a table named "A" with only one column "ENO". ENO is a primary Key.
Ex:
create table a(eno number(10) primary key);
##########################
From Session A,
--------------------------
insert into a values(10);
No commit has been given.
##########################
From Session B. the same value is inserted by an other person.
############################
From Session B,
--------------------------
insert into a values(10);
############################
Now Session B Hangs. Since itz a lock.
My question is how oracle knows that the value "10" is inserted by Session A.
Thanks
Prakash