查看: 27530|回复: 44

[精华] 省中心和地市数据同步方案求解,内详(各行业应该都碰得到的)

[复制链接]
论坛徽章:
0
跳转到指定楼层
1#
发表于 2006-8-2 17:47 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
省中心和地市数据同步方案求解,内详(各行业应该都碰得到的)
我们正做一个全省的业务系统,初步设计方案是数据存放于省中心,和各地市(20多个也存放一台服务器),
问题是:一些表的数据是全省统一的,要求一地市数据(统一的部分数据)发生变化时省和其它地市也能与之同步。采用db2数据库。程序部署在was上。


有劳各位大虾、斑竹、前辈们给出解决方案。谢了。
(初步设想方案采用mq 解决,有没有更好的方案呢?????????)
论坛徽章:
71
马上加薪
日期:2014-02-19 11:55:14ITPUB十周年纪念徽章
日期:2011-11-01 16:19:412010广州亚运会纪念徽章:橄榄球
日期:2011-05-22 10:54:33管理团队成员
日期:2011-05-07 01:45:082011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:41:502011新春纪念徽章
日期:2011-01-25 15:41:012010年世界杯参赛球队:丹麦
日期:2010-04-06 10:23:36
2#
发表于 2006-8-2 18:45 | 只看该作者
mq可以满足要求。而且mq是基于tcp/ip协议,不会丢消息的。另外,要求其他地市要保持同步。我觉得可以先上传,然后在从中心下发消息,应该可以

使用道具 举报

回复
论坛徽章:
0
3#
 楼主| 发表于 2006-8-2 18:54 | 只看该作者
谢谢楼上的,欢迎各位高手继续讨论,多给点建议供参考。

使用道具 举报

回复
招聘 : c/c++研发
论坛徽章:
45
技术图书徽章
日期:2014-03-10 14:09:192012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-01-04 11:51:22ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15现任管理团队成员
日期:2011-05-07 01:45:082011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:41:50
4#
发表于 2006-8-2 19:28 | 只看该作者
not too sure what is MQ, maybe it is out scope of DB2 itself...
from pure db2 implementation, i beleive XA will works for your situation, the XA transaction can be used to update the data in different databases.

使用道具 举报

回复
论坛徽章:
0
5#
 楼主| 发表于 2006-8-2 19:50 | 只看该作者
XA? what is it?please tell me about it more and more?can it really sovle my problem? 3qu!!!!!!!!

使用道具 举报

回复
招聘 : c/c++研发
论坛徽章:
45
技术图书徽章
日期:2014-03-10 14:09:192012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-01-04 11:51:22ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15现任管理团队成员
日期:2011-05-07 01:45:082011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:41:50
6#
发表于 2006-8-2 20:13 | 只看该作者
here XA (two-phase commit) is something like "indoubt transactions" (An indoubt transaction is a global transaction that was left in an indoubt state), usually it can be used to update the data between different databases. (for example, i need to update the data in database A and B, i will connect to database A, start transaction, update the table TA, connect to database B, update the table TB, commit transaction or rollback, then i will get table TA and TB both committed or rollback)

the image overview of two-phase commit is following:
http://publib.boulder.ibm.com/in ... /admin/t0005061.htm
http://publib.boulder.ibm.com/in ... /admin/t0005064.htm
http://publib.boulder.ibm.com/in ... f%6d%6d%69%74%22%20

For detailed implementation please read the following links:
http://publib.boulder.ibm.com/in ... c/conn/c0004786.htm
http://publib.boulder.ibm.com/in ... c/conn/c0006180.htm
http://publib.boulder.ibm.com/in ... f%6d%6d%69%74%22%20
http://publib.boulder.ibm.com/in ... c/conn/t0004765.htm
http://publib.boulder.ibm.com/in ... /admin/c0005034.htm

Or in the InfoCenter search for "two-phase commit" or "Multisite Update"

使用道具 举报

回复
招聘 : c/c++研发
论坛徽章:
45
技术图书徽章
日期:2014-03-10 14:09:192012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-01-04 11:51:22ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15现任管理团队成员
日期:2011-05-07 01:45:082011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:41:50
7#
发表于 2006-8-2 20:16 | 只看该作者
also fedarated system is another choice, but creating more than 20 or more wrappers and nicknames will make the database harder to manage....

but please notice that DUOW only work for the following system:
DB2 UDB for UNIX(R) and Windows(R) Version 7 or later
DB2 UDB for OS/390 Version 6.1 DB2 UDB for OS/390 and z/OS(TM) Version
DB2 for z/OS Version 8 or later
DB2 UDB for iSeries(TM) requires OS/400 Version 5 Release 1 or later

fedarated system can fedarate different types of databases like Oracle or SQL servers

使用道具 举报

回复
论坛徽章:
0
8#
 楼主| 发表于 2006-8-2 20:56 | 只看该作者
creating more than 20 or more wrappers and nicknames will make the database harder to manage

so it is not a good way.
But thank you all the same!!!!!

使用道具 举报

回复
招聘 : c/c++研发
论坛徽章:
45
技术图书徽章
日期:2014-03-10 14:09:192012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-01-04 11:51:22ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15现任管理团队成员
日期:2011-05-07 01:45:082011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:41:50
9#
发表于 2006-8-2 21:05 | 只看该作者
寒,不清楚你是否真的看懂了,有两种方法可以实现
1)XA
2)联邦系统
XA的好处就是相对简单方便,联邦系统的好处就是可以兼容其他类型数据库
“creating more than 20 or more wrappers and nicknames will make the database harder to manage”指的是联邦系统

使用道具 举报

回复
论坛徽章:
9
授权会员
日期:2006-06-15 15:15:15会员2007贡献徽章
日期:2007-09-26 18:42:10ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44铁扇公主
日期:2007-10-26 16:08:48生肖徽章2007版:鼠
日期:2008-01-02 17:35:532008新春纪念徽章
日期:2008-02-13 12:43:03奥运会纪念徽章:田径
日期:2008-08-19 09:59:402010广州亚运会纪念徽章:高尔夫球
日期:2010-11-22 15:29:49优秀写手
日期:2014-02-28 06:00:13
10#
发表于 2006-8-2 22:38 | 只看该作者
呵呵,xa是一个不错的选择,呵呵,而且java也支持xa 的TRANSACTIONs

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表