dbTalk Databases Forums  

import utility

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss import utility in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
db2group88
 
Posts: n/a

Default import utility - 04-21-2006 , 04:02 PM






hi, we are using db2 v8.2 Express on Windows, I try to import the rows
into a table which is being used ( maybe being read or write), and it
was kicked out because there is lock waiting. As our appliction design,
the lock should be a row lock, so whoever use the table should just
create a row lock, but insert to this tables still be prevented, why is
that ? is there anyway to allow import while in production? thanks


Reply With Quote
  #2  
Old   
tuarek
 
Posts: n/a

Default Re: import utility - 04-22-2006 , 08:25 PM






Hi,

If you see the same problem with your other processes, your db2
client's "Isolation level" may be the cause of problem. Make sure that
they are not using "Repeatable Read". You can find this setting in
your db2cli.ini file.

Regards,

Mehmet


Reply With Quote
  #3  
Old   
db2group88
 
Posts: n/a

Default Re: import utility - 04-24-2006 , 04:26 PM



hi, i have checked the db2cli.ini under D:\IBM\SQLLIB
but don't find anything setting related "repeatable read", please
advice

; Comment lines start with a semi-colon.

[tstcli1x]
uid=userid
pwd=password
autocommit=0
TableType="'TABLE','VIEW','SYSTEM TABLE'"

[tstcli2x]
; Assuming dbalias2 is a database in DB2 for MVS.
SchemaList="'OWNER1','OWNER2',CURRENT SQLID"

[MyVeryLongDBALIASName]
dbalias=dbalias3
SysSchema=MYSCHEMA


Reply With Quote
  #4  
Old   
tuarek
 
Posts: n/a

Default Re: import utility - 04-24-2006 , 11:04 PM




db2cli's isolation level parameter is defined by TXNISOLATION = ...
Nevertheless it is not in your db2cli.ini Nevermind.

Do you think that the OTHER db2 clients / applications might be helding
a TABLE LEVEL lock?

Do they issue "Lock table ..." command ever and terminate without
issuing "COMMIT"?

You better take a snapshot: "get snapshot for locks on yourdbname"
and do a reverse engineering to figure out what is happening in the
other applications/clients.

It is really difficult for me to say anything further without knowing
what else is going on.

regards,

Mehmet


Reply With Quote
  #5  
Old   
db2group88
 
Posts: n/a

Default Re: import utility - 05-23-2006 , 05:06 PM



i do get snapshot and find out the table only with IS lock but still
prevent import. our application only allow row lock and with auto
commit on. Please advise

Lock Name = 0x02009701000000000000000054

Lock Attributes = 0x00000000

Release Flags = 0x40000000

Lock Count = 2

Hold Count = 2

Lock Object Name = 407

Object Type = Table

Tablespace Name = USERSPACE1

Table Schema = ML101PD

Table Name = OETBLP

Mode = IS


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.