home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IC70035 Status: Closed

LOAD TERMINATE FAILS WITH SQL2032N WHEN BLOCKNONLOGGED ENABLED.

product:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problem description:
When BLOCKNONLOGGED db config parameter is enabled, a Load 
TERMINATE will fail with an SQL2032N. 
Even when the Load COPY YES option is included in the Load 
TERMINATE command, it will still fail, such as: 
 
SQL2032N invalid "COPY FLAG" parameter SQLSTATE=22531 
 
A problem reproducible shell script: 
# repro.sh 
db2 terminate 
db2 drop db sample 
db2 create db sample 
db2 connect to sample 
db2 update db cfg for sample using LOGARCHMETH1 
disk:/home/db2inst1/temp/log 
db2 backup db sample to /dev/null 
db2 connect to sample 
db2 update db cfg using BLOCKNONLOGGED yes 
db2 "create tablespace DMSTSP pagesize 4k managed by database 
using(file 'DMSTSP1.txt' 3000)" 
db2 "create table a(a int,b int) in DMSTSP" 
db2 "insert into a select rand()*1000,rand()*1000 from 
syscat.columns,syscat.columns fetch first 60000 rows only" 
db2 "export to myfile.del of del select * from a" 
db2 "load from /dev/null of del replace into a copy yes to 
/dev/null" 
# make small tablespace to create a load-pending state LOAD 
db2 "alter tablespace DMSTSP resize (file 'DMSTSP1.txt' 200)" 
# create load-pending LOAD 
db2 "load from myfile.del of del insert into a copy yes to 
/dev/null" 
# load-pending due to insufficient space 
db2 "load from myfile.del of del terminate into a copy yes to 
/dev/null" 
# get SQL2032N The "COPY FLAG" parameter is not valid. 
SQLSTATE=22531
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* DB2 UDB Version 9.7                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error description field for more information.            * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to Version 9.7 FixPack 4.                            * 
****************************************************************
Local Fix:
Temporarily disable the BLOCKNONLOGGED db config parameter and 
invoke the Load TERMINATE.
available fix packs:
DB2 Version 9.7 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Solution
Problem was first fixed in DB2 UDB Version 9.7 FixPack 4.
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
19.07.2010
03.05.2011
03.05.2011
Problem solved at the following versions (IBM BugInfos)
9.7.FP4
Problem solved according to the fixlist(s) of the following version(s)
9.7.0.4 FixList