免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4340 | 回复: 5
打印 上一主题 下一主题

请教:关于informix大批量数据的导出与导入 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-09-19 10:37 |只看该作者 |倒序浏览
现在机器上有多个实例,其中有一个实例数据量大概有500万,现在想把它备份出来.有以下几种方案
1:以前都是使用的零级备份,但是这种方法恢复的时候回影响到别的实例的使用.
2:如果使用dbexport话,dbimport的时候肯定会长事务.
3:使用dbschema把结构先导出来,然后根据select * from systables where tabid >99的结果把所有的表都unload出来,
  导入的时候先把库结构恢复,再使用onpload把unl导进去

不知道大家是不是有什么别的方案能有又快有好的备份恢复:)
Fly_Tiger 该用户已被删除
2 [报告]
发表于 2009-09-19 14:40 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
3 [报告]
发表于 2009-09-19 15:56 |只看该作者
使用onunload工具是不是也可以啊?

论坛徽章:
0
4 [报告]
发表于 2009-09-19 16:10 |只看该作者
dbexport就可以,导入的时候dbimport不要加-l参数就可以不启用事务,当然也就不会长事务。导入完毕,再用ontape命令把数据库改为日志模式就可以了,这个是最简单的方法

论坛徽章:
0
5 [报告]
发表于 2009-09-21 09:09 |只看该作者
dbexport导入的话如果数据量比较大的话会很慢吧,我试着用onunload导了一把,但是报下面这样的信息,这样恢复的时候会不会有问题?

Warning: The given database or table contains column(s) of user defined
datatype. Onload and Onunload do not handle such data types. The load may not
be successful or may not load back the correct data.
Warning: The given database or table contains column(s) of user defined
datatype. Onload and Onunload do not handle such data types. The load may not
be successful or may not load back the correct data.
Warning: The given database or table contains column(s) of user defined
datatype. Onload and Onunload do not handle such data types. The load may not
be successful or may not load back the correct data.
Warning: The given database or table contains column(s) of user defined
datatype. Onload and Onunload do not handle such data types. The load may not
be successful or may not load back the correct data.
Warning: The given database or table contains column(s) of user defined
datatype. Onload and Onunload do not handle such data types. The load may not
be successful or may not load back the correct data.
Warning: The given database or table contains column(s) of user defined
datatype. Onload and Onunload do not handle such data types. The load may not
be successful or may not load back the correct data.
Warning: The given database or table contains column(s) of user defined
datatype. Onload and Onunload do not handle such data types. The load may not
be successful or may not load back the correct data.
Warning: The given database or table contains column(s) of user defined
datatype. Onload and Onunload do not handle such data types. The load may not
be successful or may not load back the correct data.
Warning: The given database or table contains column(s) of user defined
datatype. Onload and Onunload do not handle such data types. The load may not
be successful or may not load back the correct data.

论坛徽章:
11
金牛座
日期:2015-03-19 16:56:22数据库技术版块每日发帖之星
日期:2016-08-02 06:20:00数据库技术版块每日发帖之星
日期:2016-04-24 06:20:00数据库技术版块每日发帖之星
日期:2016-04-13 06:20:00IT运维版块每日发帖之星
日期:2016-04-13 06:20:00数据库技术版块每日发帖之星
日期:2016-02-03 06:20:00数据库技术版块每日发帖之星
日期:2015-08-06 06:20:00季节之章:春
日期:2015-03-27 15:54:57羊年新春福章
日期:2015-03-27 15:54:37戌狗
日期:2015-03-19 16:56:41数据库技术版块每日发帖之星
日期:2016-08-18 06:20:00
6 [报告]
发表于 2009-09-21 09:44 |只看该作者

回复 #5 东西 的帖子

可能会有问题~~这里提示的是你的库/表里有自定义的字段类型..导入的话可能存在门题..
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP