重庆思庄Oracle、Redhat认证学习论坛
标题: 为什么一条update语句产生两个serial# sid相同 [打印本页]
作者: mahan 时间: 2024-9-1 19:24
标题: 为什么一条update语句产生两个serial# sid相同
环境:RAC
创建测试数据
conn itpux/itpux
create table test10 as select * from dba_objects;
update 表,不进行提交
SQL> update test10 set object_id=801 where object_id=800;
2 rows updated.
查看sid和锁
sess.serial#,
lo.oracle_username,
lo.os_user_name,
ao.object_name,
lo.locked_mode
from gv$locked_object lo,
dba_objects ao,
gv$session sess
where ao.object_id = lo.object_id and lo.session_id = sess.sid and ao.object_name='TEST10';