[转]DB2 load参数
本文持续更新,LOAD如何提高parallelism。LOAD SHRLEVEL CHANGE的性能提高。
===========================
Every once in a while I completely miss a feature added to DB2. This time I missed what I would call a biggie; a way to significantly improve the performance of your DB2 UNLOAD and LOAD utilities.
Sometime the middle of last year, around May 2011, APAR PM19584 arrived for DB2 9 for z/OS and DB2 10 for z/OS that added the FORMAT INTERNAL keyword to both the DB2 UNLOAD and LOAD utilities.
If the DB2 UNLOAD utility is run with the FORMAT INTERNAL option, the data is unloaded in DB2’s internal format, nothing at all happens to the data during the unload process. No data or CCSID conversions are performed and any field specifications are ignored. There are additional warnings and restrictions listed in the “DB2 10 Utility Guide and Reference” (SC19-2984) product publication.
Using a file created by the UNLOAD utility that specified FORMAT INTERNAL as input to the LOAD utility, also specifying FORMAT INTERNAL as an option on the LOAD, has the potential of significantly improving the LOAD’s performance because there is no validation of the data performed on the input file. DB2 assumes the input is in DB2’s internal format and will perform no data conversions and ignores any field specifications. Again, additional detail about using the FORMAT INTERNAL option on the LOAD utility can be found in the “DB2 10 Utility Guide and Reference” (SC19-2984) product publication.
The DB2 catalog table SYSIBM.SYSCOPY will reflect that the LOAD used an input in a DB2 internal format. If ICTYPE is “Y” for LOAD LOG(NO) or “Z” for LOAD LOG(YES), TTYPE is set to an “I” to indicate that the FORMAT INTERNAL option was specified for that LOAD.
If you have a need to unload data from a table that will only be used to load a table that has the exact same structure, this could be the performance options you’re looking for.
Check it out. I think you’ll like it if it fits your situation.
BTW, the above APAR also introduced the LOAD utility option PRESORTED YES. When specified, the LOAD assumes the input is in clustering key order. Because the input is in clustering key order, LOAD can skip any sorts for the clustering index. This also has the potential for some significant performance improvements.
[转]DB2 load参数的更多相关文章
- db2 load乱码问题
在使用db2过程中经常需要从一个库里拿数据到自己库里来,通常需要将源表的数据导为数据文件,通过数据文件load到自己库里. 这个过程如果两个库的字符编码不一致,常规导入导出就会出现中文乱码. 以下是两 ...
- db2 load报文件系统满
使用db2 load导入数据 数据量比较大时常常会报文件系统已满错误. 原因分析:导入表建有索引,在load的“索引复制”阶段会从系统临时表空间拷贝到目标表空间,导致系统临时表空间所在的文件系统满,l ...
- db2 load选项
db2 load使用 最近有个好朋友因为load问题导致了生产故障,所以特意写篇文章总结一下load的用法及注意事项. 1.load概述 数据的导入方法有insert,import和load三种,其中 ...
- db2 load命令装载数据时定位错误出现的位置
使用如下命令装载数据(注意CPU_PARALLELISM 1): db2 load from filename.del of del replace into tab_name CPU_PARALL ...
- DB2数据库参数建议(AIX)
修改用户最大进程数: chdev -l sys0 -a maxuproc=' 用户资源配置:对实例用户,fence用户,应用用户添加如下限制: db2inst1 : fsize=- fsize_har ...
- DB2数据库参数建议(Linux)
内核参数配置: kernel.shmall=<物理内存的90%,以页为单位> kernel.shmax=<实际的物理内存> kernel.shmmni= kernel.msgm ...
- db2命令参数with ur
查询DB2数据库,老遇到select * from XXX with ur, 好奇ur是什么作用(转) DB2中,共有四种隔离级:RS,RR,CS,UR,DB2提供了这4种不同的保护级别来隔离数据. ...
- DB2因表空间不够产生load表失败
今天下午恢复表的时候发现出现错误: SQL3520W Load Consistency Point was successful. SQL3110N The utility has complet ...
- db2 import和load
Import和Load 都可以将数据导入到DB2服务器中,但是2者是有很大区别的. Import 其实执行了SQL 的INSERT 操作.和INSERT 操作一样,Import 执行的时候会激活触发器 ...
随机推荐
- 使用composer安装项目依赖
Composer 是 PHP 的一个依赖管理工具.它允许你申明项目所依赖的代码库,它会在你的项目中为你安装他们 下载并安装composer composer官方文档有好几种安装方法,此处只介绍我实验过 ...
- matlab初学之textread
文章出处:http://blog.sina.com.cn/s/blog_9e67285801010bju.html 基本语法是: [A,B,C,-] = textread(filename,forma ...
- DTD指定了游戏规则。
1.DTD的作用 DTD是XML的型,列出了XML中的元素有哪些.元素间的关系.元素可以有哪些内容,元素的属性也有哪些.DTD实质说明的是元素间的关系,也就是类之间的关系.是一棵树状结构的说明,与XM ...
- GCHandler的使用
众所周知,我们在使用c#托管代码时,内存地址和GC回收那不是我们关心的,CLR已经给我们暗箱操作. 但是如果我们在c#中调用了一个非托管代码,比如vc的DLL,而且他有个回调函数,需要引用c#中的某个 ...
- node_modules\typescript\lib 未指向有效的 tsserver 安装 将禁用TypeScript 语言功能
Ionic2 项目中经常遇到这个问题 每次都找半天无果. 简单记录一下 粗暴的解决办法: 卸载ts并从新安装即可 //卸载typescript npm uninstall typescript // ...
- C语言程序设计第12次作业
一.本次课主要内容: 本章主要介绍指针相关的基础知识,本节课的主要如下 (1)通过示例"电码加密"引入字符指针与字符串处理.首先重点介绍字符指针和字符串的关联和区别,然后对常用字符 ...
- iphone APP 去广告。 【转载】
iPhone怎么去广告?相信大家对APP中的广告条都非常不喜欢,界面丑且容易误点被跳转,相信很多朋友都使用插件来去除广告,但是不越狱怎么去广告呢?下面小编教大家不越狱去除iPhone广告. iPhon ...
- 使用 IDEA + Maven + Git 快速开发 JAVA或者Web 应用(转)
0-0 前言 最近和同事做爬虫,其中我主要遇到的问题是:同事在github上放了爬虫demo让我自己去下载,然后自己能搭好环境让整个项目跑起来去抓51job找工作数据.git上克隆一个项目下来,项目是 ...
- target和currentTarget的区别
target在事件流的目标阶段:currentTarget在事件流的捕获,目标及冒泡阶段.只有当事件流处在目标阶段的时候,两个的指向才是一样的, 而当处于捕获和冒泡阶段的时候,target指向被单击的 ...
- foreach循环 Java
第一次遇到foreach循环,是在PHP的数组中,同样,在Java数组中,也遇到了foreach循环,都是用来遍历数组(集合).遍历数组,首先想到的一般都是用while,do while,for循环, ...