Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2736612
  • 博文数量: 423
  • 博客积分: 7770
  • 博客等级: 少将
  • 技术积分: 4766
  • 用 户 组: 普通用户
  • 注册时间: 2006-11-09 11:58
个人简介

Oracle/DB2/Postgresql/Mysql/Hadoop/Greenplum/Postgres-xl/Mongodb

文章分类

全部博文(423)

文章存档

2019年(3)

2018年(6)

2017年(27)

2016年(23)

2015年(30)

2014年(16)

2013年(31)

2012年(73)

2011年(45)

2010年(14)

2009年(30)

2008年(30)

2007年(63)

2006年(32)

分类: DB2/Informix

2015-12-02 11:03:11

Technote (troubleshooting)


Problem(Abstract)
How to troubleshoot SQL3550W while loading or importing data with the utility 'db2move' ?
Symptom
SQL3550W while loading or importing data with db2move.


Cause
The utility 'db2move' with LOAD/IMPORT option may reject the table rows if one or more columns of table are of type "GENERATED ALWAYS" with SQL3550W.
Diagnosing the problem
With IMPORT option in "db2move" it is not possible to insert rows in GENERATED ALWAYS identity columns. Hence, if IMPORT gets SQL3550W, use explicit db2 LOAD command to insert rejected rows.


For LOAD, an explicit, non NULL field value can be loaded into a GENERATED ALWAYS identity column only if the identityoverride file type modifier is used. 
For non-identity GENERATED ALWAYS columns, the generatedoverride file type modifier can be used to load explicit, non NULL values into a row. If using these modifiers is not appropriate, the field value must be replaced with a NULL if LOAD is to accept the row.


With current design of db2move command, we can not specify the modifiers in it, hence you need to perform LOAD explicitly.


Resolving the problem
After running 'db2move' with LOAD/IMPORT, please determine the list of tables which are getting the warning message - SQL3550W. We need to use LOAD command for all such tables with correct modifier values as follows:

If non NULL field value needs to be loaded into a GENERATED ALWAYS identity column, please use following LOAD command:
db2 "load from .IXF of IXF lobs from modified by identityoverride insert into ."   


If non NULL filed value needs to be loaded into a non-identity GENERATED ALWAYS column, please use following LOAD command: 
db2 "load from .IXF of IXF lobs from modified by generatedoverride insert into ."


You may add more LOAD command options as per your requirements.
阅读(3475) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~