免费注册 查看新帖 |

Chinaunix

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

blob字段是否不能用onpladm导入? [复制链接]

论坛徽章:
0
1 [报告]
发表于 2009-01-19 14:06 |显示全部楼层
http://bbs.chinaunix.net/viewthread.php?tid=1059932

我们处理方法:把log重定向到文件,如果发现有"failed",重做任务...

论坛徽章:
0
2 [报告]
发表于 2009-01-19 14:12 |显示全部楼层
Successfully deleted Job job_test1
Successfully deleted Job job_test1
Successfully deleted Map job_test1
Successfully deleted Map job_test1
Successfully deleted Format job_test1
Successfully deleted Device-Array job_test1

猜一下日志...
第一次跟第二次应该是同一个job_test1
第一次成功了,但第二次失败。。。

[ 本帖最后由 lutabo 于 2009-1-19 14:13 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2009-01-19 14:44 |显示全部楼层
原帖由 liaosnet 于 2009-1-19 14:05 发表
BLOB不能用....BLOG/TEXT 这类的文档不能用...这类数据需专门的工具处理..



老大说的正确..

我想起来了,过去试过不行,表中有TEXT字段,informix10还不支持onpladm装数(TEXT字段)
后来在dbaccess中用load,超级慢...

论坛徽章:
0
4 [报告]
发表于 2009-01-19 14:48 |显示全部楼层
13:30:13 Records Processed ->  710000

70w条数据,在dbaccess中用load,天啊,起码要几个小时

论坛徽章:
0
5 [报告]
发表于 2009-01-19 15:08 |显示全部楼层
表中有text字段,100w条左右,机器24c,48g,在dbaccess中用load,时间用小时级

论坛徽章:
0
6 [报告]
发表于 2009-01-19 15:28 |显示全部楼层
你是分行项目,我做的项目(不是eai)是总行的
总行项目,机器一般都是好牛

不过load没有并行处理,就算100个cpu也没有,照样慢,dbaccess中已经打开好多参数

论坛徽章:
0
7 [报告]
发表于 2009-01-19 17:16 |显示全部楼层
usage:  onpladm create job <jobname> [-p <project>] -d <device> -D <database>
        -t <table> [-f[luadpcN]] [-z <formattype> | -n] [-T <targetserver>]
        [-S <onploadserver>] [-M <devicesize>] [-B <blocksize>]
where,
        -p      project name
        -d      device name, further qualified by flags
        -D      database name
        -t      table name
        -f      flags,
                 l      means load job, default will be both load and unload
                 u      means unload job
                 a      means device is a device array, default will be file
                 d      means device is a tape
                 p      means device is a pipe command
                 c      means runmode DELUXE with replication, default will be
                        EXPRESS runmode
                 N      means runmode DELUXE without replication, default will
                        be EXPRESS runmode
        -z      type of format to be used, default is Delimited type
                 D      means  DELIMITED_FORMAT
                 FI     means  FAST_FORMAT
                 FA     means  FIXED_ASCII_FORMAT
                 FB     means  FIXED_BINARY_FORMAT
                 C      means  COBOL_FORMAT
                 CB     means  COBOL_BYTE_FORMAT
        -n      no-conversion fast-job
        -T      Target server, where load/unload is to be done
        -S      Onpload server containing the onpload database
        -M      device size, if device is a tape
        -B      block size, if device is a tape

参数是不是-fcu
其中c代表
c      means runmode DELUXE with replication, default will be
                        EXPRESS runmode

论坛徽章:
0
8 [报告]
发表于 2009-01-19 17:26 |显示全部楼层
hdr用过参数-flc装数

论坛徽章:
0
9 [报告]
发表于 2009-01-19 20:49 |显示全部楼层
[linux@linux linux]$ onpladm create job    catalog -d /home/linux/catalog.unl -D stores_demo -t catalog -flc
Successfully created Job catalog
[linux@linux linux]$ onpladm run    job    catalog -flc
Connecting to onpload, Please wait...
Successful connection to onpload established
Mon Jan 19 20:49:09 2009

SHMBASE        0x10000000
CLIENTNUM      0x49010000
Session ID 1

Load Database   -> stores_demo
Load Table      -> catalog
Device Array    -> catalog
Record Mapping  -> catalog
Convert Reject  -> /tmp/catalog.rej
Filter Reject   -> /tmp/catalog.flt
Set mode of constraint u109_21 to filtering
Set mode of constraint aa to filtering
Reset mode of constraints "linux".u109_21 to original enabled mode
Reset mode of constraints "linux".aa to original enabled mode

Database Load Completed -- Processed 74 Records
Records Inserted-> 74
Detected Errors--> 0
Engine Rejected--> 0

Mon Jan 19 20:49:12 2009

Job Completed Successfully ... connection closed
[linux@linux linux]$



试了一下,加参数c就可以了!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP