OGG对于没有主键表的处理
2017-08-29 15:21
274 查看
问:想用ogg对生产库做个报表库。现在生产库中还有一堆表没有主键(其中有些表的记录甚至完全一样),对这些表上的操作容易导致报表库REPLICAT abended,请问这在OGG配置中是如何避免的?HANDLECOLLISIONS?
答:
In order to maintain data integrity when replicating transactional data, Oracle GoldenGate will use primary key columns or unique index columns to uniquely identify a row when issuing update or delete statements against the target database. If no primary keys or unique indexes exist on the table being replicated, Oracle GoldenGate will use all columns to uniquely identify a row.
It is perfectly acceptable to use all columns to uniquely identify a row under the following conditions:
A logical key column cannot be defined for the table using the KEYCOLS parameter.
No duplicate rows exist in the table
Table contains a small number of rows, so full table lookups on the target database are minimal
Table DML activity is very low, so “all column” table supplemental log groups do not negatively impact the source database redo logs
If the table being replicated does not meet all of the conditions listed above, it is recommended to add a column to the table with a SYS_GUID default value to uniquely identify the row.
答:
In order to maintain data integrity when replicating transactional data, Oracle GoldenGate will use primary key columns or unique index columns to uniquely identify a row when issuing update or delete statements against the target database. If no primary keys or unique indexes exist on the table being replicated, Oracle GoldenGate will use all columns to uniquely identify a row.
It is perfectly acceptable to use all columns to uniquely identify a row under the following conditions:
A logical key column cannot be defined for the table using the KEYCOLS parameter.
No duplicate rows exist in the table
Table contains a small number of rows, so full table lookups on the target database are minimal
Table DML activity is very low, so “all column” table supplemental log groups do not negatively impact the source database redo logs
If the table being replicated does not meet all of the conditions listed above, it is recommended to add a column to the table with a SYS_GUID default value to uniquely identify the row.
相关文章推荐
- C语言对于没有初始化的数据的处理方式。
- RecyclerView适配器的封装,针对于要加载数据、没有更多,没有数据的情况的处理
- 对于没有数据库字典的处理
- 对于不符合W3C标准的disabled属性的使用在Firefox、google等浏览器下没有效果的处理
- SQLCE下载表格本地添加记录对于自动编号主键的处理
- 使用ODI处理没有主键的表
- OGG的REP进程对主键列加1的处理
- Webbrowser加载Flash后方向键失效问题(用到了OLE接口,没有被处理就转发,够复杂的)
- 关于spring事务处理,service层方法上加锁数据没有更新
- linux下系统对于sigsegv错误时的处理
- Ubuntu 安装卸载软件命令,及出现没有可用软件包提示时的处理办法
- gearman在虚拟机上运行没有自动开启的处理
- 没有异常处理产生的代码-1
- django 对于csrf错误的处理
- hql语句中like查询 对于 / ' " % 的处理
- springMVC对于controller处理方法返回值的可选类型
- 查看mysql实例中哪些表没有主键/哪些表有主键
- ibatis 报错mysql中的主键没有默认值
- 使用AsyncTask时出现doInBackground没有调用的处理方法
- linux内核对于指令异常的处理