
Signature
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
IOD Conference
http://www.ibm.com/software/data/ondemandbusiness/conf2006/
> Care to post the INSERT statement.
insert
into canpck
( cangrp, wh_id, wrkref, wrktyp, schbat,
srcloc, srcare, dstare, ship_line_id, ship_id,
client_id, ordnum, ordlin, ordsln, concod,
cmbcod, lblseq, pckqty, appqty, pcksts,
prtnum, prt_client_id, invsts, lodlvl, untcas,
untpak, ftpcod, visflg, splflg, locflg,
lodflg, subflg, dtlflg, prtflg, orgflg,
revflg, lotflg, qtyflg, adddte, candte,
can_usr_id, cancod, remqty, invsts_prg, frsflg,
min_shelf_hrs, pckdte, catch_qty_flg, pipflg, list_id,
list_seqnum)
values
( 'grp1', 'WMD1', 'TC_22', 'R', NULL,
'x', 'x', 'x', 'x', 'x',
'x', 'x', 'x', 'x', 'x',
'x', 'x', 0, 0, 'x',
'x', 'x', 'x', 'x', 0,
0, 'x', 0, 0, 0,
0, 0, 0, 0, 0,
0, 0, 0, ora.to_date('20060807120000', 'YYYYMMDDHH24MISS'),
ora.to_date('20060807120000', 'YYYYMMDDHH24MISS'),
'x', 'x', 0, 'x', 0,
0, ora.to_date('20060807120000', 'YYYYMMDDHH24MISS'), 0, 0, 'x',
0)
> By any chance is this the only client attached to the database? And is
> the connection made at the begining of this insert? DB2 can shut
> itself down if there are no connections made, and will wake up with the
> first connection, which takes a bit of time, which could explain this,
> I think. If that is so, there are ways to make DB2 stay awake, if you
> need to.
No, I tested this many times by forcing it to recompile by adding a
space character.
Knut Stolze - 29 Sep 2006 15:16 GMT
>> By any chance is this the only client attached to the database? And is
>> the connection made at the begining of this insert? DB2 can shut
[quoted text clipped - 5 lines]
> No, I tested this many times by forcing it to recompile by adding a
> space character.
I guess the question was if you disconnect between the insert statements or
if you keep at least one connection alive and, thus, the database
activated.

Signature
Knut Stolze
DB2 Information Integration Development
IBM Germany