- 最后登录
- 2018-11-1
- 在线时间
- 377 小时
- 威望
- 29
- 金钱
- 6866
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 891
- 精华
- 4
- 积分
- 29
- UID
- 1
|
2#
发表于 2012-12-3 16:44:47
- SQL> select * from v$version;
- BANNER
- --------------------------------------------------------------------------------
- Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
- PL/SQL Release 11.2.0.3.0 - Production
- CORE 11.2.0.3.0 Production
- TNS for 64-bit Windows: Version 11.2.0.3.0 - Production
- NLSRTL Version 11.2.0.3.0 - Production
- SQL> create database link to12c connect to c##maclean identified by oracle using 'cdb1.example.com';
- Database link created.
- SQL> select * from v$version@to12c;
- BANNER
- -------------------------------------------------------------------------
- Oracle Database 12c Enterprise Edition Release 12.1.0.0.2 - 64bit Beta
- PL/SQL Release 12.1.0.0.2 - Beta
- CORE 12.1.0.0.2 Beta
- TNS for Linux: Version 12.1.0.0.2 - Beta
- NLSRTL Version 12.1.0.0.2 - Beta
- select a.name,b.value
- from v$sysstat a , v$mystat b
- where
- a.statistic#=b.statistic#
- and (a.name in ('redo size','redo entries'));
- NAME VALUE
- -------------------------------------------------- ----------
- redo entries 22
- redo size 6248
- SQL> update testredo@to12c set object_id=object_id+1;
- 89196 rows updated.
- SQL> select a.name,b.value
- 2 from v$sysstat a , v$mystat b
- 3 where
- 4 a.statistic#=b.statistic#
- 5 and (a.name in ('redo size','redo entries'));
- NAME VALUE
- -------------------------------------------------- ----------
- redo entries 22
- redo size 6248
- SQL> commit;
- Commit complete.
- SQL> select a.name,b.value
- 2 from v$sysstat a , v$mystat b
- 3 where
- 4 a.statistic#=b.statistic#
- 5 and (a.name in ('redo size','redo entries'));
- NAME VALUE
- -------------------------------------------------- ----------
- redo entries 23
- redo size 6456
复制代码 对于该类问题请自行 测试一次, 就以上测试 纯远程的DML remote dml在本地不产生redo, 当然commit还是要2边都产生 REDO |
|