Does Oracle Goldengate support Parallel DML?
SQL> select le.leseq "Current log sequence No",2 100 * cp.cpodr_bno / le.lesiz "Percent Full",3 (cpodr_bno - 1) * 512 "Current Offset",4 le.lesiz * 512 - cpodr_bno * 512 "Left space"5 from x$kcccp cp, x$kccle le6 where LE.leseq = CP.cpodr_seq7 and bitand(le.leflg, 24) = 8;Current log sequence No Percent Full Current Offset Left space ----------------------- ------------ -------------- ----------177 78.5112305 82324480 22532608/* 通过以上查询我们可以了解实际的redo写出情况:Current Offset说明了当前日志文件所写到的位置,而Left Space说明了当前日志文件所剩余的空间 82324480(Current Offset)+22532608(Left space)+512(redo header)=logfile size=le.lesiz* redo block size */SQL> alter system switch logfile; System altered.SQL> select le.leseq "Current log sequence No",2 100 * cp.cpodr_bno / le.lesiz "Percent Full",3 (cpodr_bno - 1) * 512 "Current Offset",4 le.lesiz * 512 - cpodr_bno * 512 "Left space"5 from x$kcccp cp, x$kccle le6 where LE.leseq = CP.cpodr_seq7 and bitand(le.leflg, 24) = 8;Current log sequence No Percent Full Current Offset Left space ----------------------- ------------ -------------- ----------179 .002441406 2048 104855040/* 初始位置为No 179的日志文件 */SQL> select le.leseq "Current log sequence No",2 100 * cp.cpodr_bno / le.lesiz "Percent Full",3 (cpodr_bno - 1) * 512 "Current Offset",4 le.lesiz * 512 - cpodr_bno * 512 "Left space"5 from x$kcccp cp, x$kccle le6 where LE.leseq = CP.cpodr_seq7 and bitand(le.leflg, 24) = 8;Current log sequence No Percent Full Current Offset Left space ----------------------- ------------ -------------- ----------180 58.277832 61108224 43748864/* 使用普通非并行DML插入产生了104855040+61108224=158M的redo */SQL> truncate table tv; Table truncated.SQL> select le.leseq "Current log sequence No",2 100 * cp.cpodr_bno / le.lesiz "Percent Full",3 (cpodr_bno - 1) * 512 "Current Offset",4 le.lesiz * 512 - cpodr_bno * 512 "Left space"5 from x$kcccp cp, x$kccle le6 where LE.leseq = CP.cpodr_seq7 and bitand(le.leflg, 24) = 8;Current log sequence No Percent Full Current Offset Left space ----------------------- ------------ -------------- ----------180 60.6469727 63592448 41264640/* 初始为No 180日志文件的63592448 */SQL> alter session enable parallel dml; Session altered./* 在session级别启用并行DML */SQL> set autotrace on; SQL> insert /*+ parallel(tv,4) */ into tv select * from sample;3640772 rows created. Execution Plan ---------------------------------------------------------- ERROR: ORA-12838: cannot read/modify an object after modifying it in parallel SP2-0612: Error generating AUTOTRACE EXPLAIN report Statistics ----------------------------------------------------------111 recursive calls1168 db block gets17850 consistent gets17745 physical reads97944 redo size815 bytes sent via SQL*Net to client750 bytes received via SQL*Net from client3 SQL*Net roundtrips to/from client1 sorts (memory)0 sorts (disk)3640772 rows processed/* autotrace statistics显示并行插入仅产生了97944字节的redo */SQL> commit; Commit complete.SQL> select le.leseq "Current log sequence No",2 100 * cp.cpodr_bno / le.lesiz "Percent Full",3 (cpodr_bno - 1) * 512 "Current Offset",4 le.lesiz * 512 - cpodr_bno * 512 "Left space"5 from x$kcccp cp, x$kccle le6 where LE.leseq = CP.cpodr_seq7 and bitand(le.leflg, 24) = 8;Current log sequence No Percent Full Current Offset Left space ----------------------- ------------ -------------- ----------182 10.4882813 10997248 93859840/* 而实际上日志由180切换到了182,实际的redo产生大约是41264640+104857600+10997248=150M *//* 换而言之autotrace对并行DML语句所产生的实际redo统计远少于实际值,这也就保证了extract能够捕获到所有这些并行DML所引起的数据变化 */GGSCI (rh2.oracle.com) 59> stats load2 Sending STATS request to EXTRACT LOAD2 ...Start of Statistics at 2010-12-16 20:17:35.Output to /s01/new/ze:Extracting from CLINIC.TV to CLINIC.TV:*** Total statistics since 2010-12-16 20:17:24 ***Total inserts 923555.00Total updates 0.00Total deletes 0.00Total discards 0.00Total operations 923555.00*** Daily statistics since 2010-12-16 20:17:24 ***Total inserts 923555.00Total updates 0.00Total deletes 0.00Total discards 0.00Total operations 923555.00*** Hourly statistics since 2010-12-16 20:17:24 ***Total inserts 923555.00Total updates 0.00Total deletes 0.00Total discards 0.00Total operations 923555.00*** Latest statistics since 2010-12-16 20:17:24 ***Total inserts 923555.00Total updates 0.00Total deletes 0.00Total discards 0.00Total operations 923555.00End of Statistics.GGSCI (rh2.oracle.com) 60> ! stats load2Sending STATS request to EXTRACT LOAD2 ...Start of Statistics at 2010-12-16 20:17:37.Output to /s01/new/ze:Extracting from CLINIC.TV to CLINIC.TV:*** Total statistics since 2010-12-16 20:17:24 ***Total inserts 1090336.00Total updates 0.00Total deletes 0.00Total discards 0.00Total operations 1090336.00*** Daily statistics since 2010-12-16 20:17:24 ***Total inserts 1090336.00Total updates 0.00Total deletes 0.00Total discards 0.00Total operations 1090336.00*** Hourly statistics since 2010-12-16 20:17:24 ***Total inserts 1090336.00Total updates 0.00Total deletes 0.00Total discards 0.00Total operations 1090336.00*** Latest statistics since 2010-12-16 20:17:24 ***Total inserts 1090336.00Total updates 0.00Total deletes 0.00Total discards 0.00Total operations 1090336.00End of Statistics.GGSCI (rh2.oracle.com) 61> ! stats load2Sending STATS request to EXTRACT LOAD2 ...Start of Statistics at 2010-12-16 20:17:39.Output to /s01/new/ze:Extracting from CLINIC.TV to CLINIC.TV:*** Total statistics since 2010-12-16 20:17:24 ***Total inserts 1249284.00Total updates 0.00Total deletes 0.00Total discards 0.00Total operations 1249284.00*** Daily statistics since 2010-12-16 20:17:24 ***Total inserts 1249284.00Total updates 0.00Total deletes 0.00Total discards 0.00Total operations 1249284.00*** Hourly statistics since 2010-12-16 20:17:24 ***Total inserts 1249284.00Total updates 0.00Total deletes 0.00Total discards 0.00Total operations 1249284.00*** Latest statistics since 2010-12-16 20:17:24 ***Total inserts 1249284.00Total updates 0.00Total deletes 0.00Total discards 0.00Total operations 1249284.00End of Statistics./* 可以看到extract的统计信息中Total inserts不断递增,说明extract正确捕获了所有由并行INSERT引发的直接路径插入操作 */
Does Oracle Goldengate support Parallel DML? 结论显然是: Yes。
转载于:https://www.cnblogs.com/macleanoracle/archive/2010/12/16/2967611.html
Does Oracle Goldengate support Parallel DML?相关推荐
- 76 道 Oracle Goldengate 面试问题
基础 12c新特性 性能 Troubleshoot 其它 1. Oracle Goldengate 支持部署到哪些拓扑? GoldenGate supports the following topol ...
- 【ogg Reference Part II Oracle GoldenGate Microservices Architecture】5 Oracle GoldenGate AdminClient
您可以使用Oracle GoldenGate MA使用HTML用户界面配置和管理数据复制. 本部分描述可以与Oracle GoldenGate微服务体系结构一起使用的命令.参数和选项. 5 Oracl ...
- 使用 Oracle GoldenGate 进行实时数据集成
[转自]http://blog.chinaunix.net/u1/53677/showart_2314585.html 使用 Oracle GoldenGate 进行实时数据集成 了解如何安装.设置和 ...
- Oracle GoldenGate 之--异构平台同步(Mysql到Oracle)
Oracle GoldenGate 异构平台同步(Mysql到Oracle) 如图所示:源端采用Mysql库,目标端采用Oracle库 一.OGG安装配置(源端) 1.OGG下载 https://ed ...
- extract进程 oracle,Oracle GoldenGate 系列:Extract 进程遇长事务执行 Forcestop 引发的惨案...
2.XX2库分析 停止XX2库 Extract进程时正在处理的长事务为 select t.addr,t.XIDUSN,t.XIDSLOT,t.XIDSQN,t.START_DATE from gv$ ...
- Oracle Goldengate ERROR OGG 00446 解决方法
一.问题描述: 2013年4月14日中午12点左右生产环境执行数据库版本升级期间根据需要停止XX1库和XX2库OGG 同步抽取进程时遇长事务,无法用正常命令停止,执行 forcestop 后重启进程报 ...
- OGG|Oracle GoldenGate 基础
作者 | JiekeXu 来源 |公众号 JiekeXu DBA之路(ID: JiekeXu_IT) 大家好,我是 JiekeXu,很高兴又和大家见面了,今天和大家一起来学习利用 OGG 19c 迁移 ...
- 数据复制软件---Oracle GoldenGate
前言 GoldenGate软件是一种基于日志的结构化数据复制软件,它通过解析源数据库在线日志或归档日志获得数据的增量变化,再将这些变化应用到目标数据库,从而实现源数据库与目标数据库同步.GoldenG ...
- 浅谈Oracle GoldenGate
文章目录 1.简介 2.用途 3.常用拓扑 4.架构 4.1.工作流程 4.2.Manager管理模块 4.3.Extract(Capture)抽取模块 4.3.1.抽取和故障恢复原理 4.4.Ext ...
最新文章
- 聊一聊我在 B站 上自学编程的经历吧
- Android studio 使用心得(六)---android studio 如何加载.so文件
- mysql字符串和数字的互相转换
- Oracle数据库中IN参数个数超过1000的问题
- oracle中kill session的方法
- 2014/08/31 Zushi
- js基础知识(pomelo阅读)
- 微信小程序MQTT客户端的坑
- 这样选择报表系统,才能更好的进行企业管理
- Android studio进行文件对比
- fedora安装字体
- Ventoy+WePE 装机教程(装PVE+ESXI等,不用单独费一个U盘)
- 海王夺回王位科学深意:杂种是怎么一步步主宰地球的
- 如何实现通过本地远程来连接OpenStack中的windows虚机
- cephadm全功能安装Ceph Pacfic
- 关于 range.autofilter 和 VBA的 filter
- python re模块下载_python: re模块
- HTML期末大作业~web前端开发个人博客HTML整站模板~Web大学生网页成品 ~个人主页博客网页HTML设计制作...
- Socket 套接字原理详解
- IDEA2020下载安装