问题描述
嗨,亲爱的AskTOM团队。对每个人都有美好的一天。我对Oracle DB 12cr2中的UPDATE TABLE语句有些困惑。假设我们有3个用户:
U1;
U2;
U3;
U1有一个名为TEST_1的表,U2和U3都在该表上具有更新权限。
我的问题是:If U2 and U3 try to update same rows in that particular table at the same time what will happen? How Oracle will control such kind of processes?
事先谢谢!
U1;
U2;
U3;
U1有一个名为TEST_1的表,U2和U3都在该表上具有更新权限。
我的问题是:If U2 and U3 try to update same rows in that particular table at the same time what will happen? How Oracle will control such kind of processes?
事先谢谢!
专家解答
一次只有一个会话可以更新表中的一行。在第一个会话中开始更新后,第二个会话必须等待第一个会话提交或回滚。
有关如何工作的更多详细信息,请参见:
https://asktom.oracle.com/pls/apex/asktom.search?tag=locks-200802
https://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:2247028425532
https://www.oracle.com/pls/topic/lookup?ctx=dblatest&id=GUID-3D57596F-8B73-4C80-8F4D-79A12F781EFD
有关如何工作的更多详细信息,请参见:
https://asktom.oracle.com/pls/apex/asktom.search?tag=locks-200802
https://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:2247028425532
https://www.oracle.com/pls/topic/lookup?ctx=dblatest&id=GUID-3D57596F-8B73-4C80-8F4D-79A12F781EFD
文章转载自ASKTOM,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




