too*_*oop 6 sql database oracle dblink commit
如果我以用户smith的身份连接到oracle数据库,并发出以下3个命令:
update smith.tablea
set col_name = 'florence' where col_id = 8;
insert into bob.other_table@mylink
values ('blah',2,'uncle','new');
commit;
Run Code Online (Sandbox Code Playgroud)
这是否意味着对本地表(smith.tablea)的更新和对远程数据库表(bob.other_table)的插入都已提交或仅提交了对本地表的更新?
注意:'mylink'表示远程数据库的dblink.
在这种情况下,只有远程事务和本地事务成功时,事务才有效.
有关分布式事务的更多信息
http://docs.oracle.com/cd/B19306_01/server.102/b14231/ds_txnman.htm