If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Locks problems while exporting ???

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-07-07, 08:49
rmarzullo rmarzullo is offline
Registered User
 
Join Date: May 2007
Posts: 56
Locks problems while exporting ???

I'm running an old DB2 v7.1 AIX 4.3.
I wrote a script to export some data from couple tables (production environment). Everytime I ran this script, users complain to have dead locks or lock-wait problems. If I check through get snapshot for locks for example I see couple users in Lock-wait...as soon as I cancel the shell (export) script execution all locks are cleared. How come a simple export can cause locks if I'm just doing a select statement? What can I do in order to fix this situation?
Is there any other way to unload (batch) those files without locking everybody out?

Thanks
Reply With Quote
  #2 (permalink)  
Old 09-08-07, 01:04
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I can't remember if V7 supports WITH UR clause on a select. Try it and see.

db2 export to employee.ixf of ixf select * from employee with ur
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 09-10-07, 13:47
rmarzullo rmarzullo is offline
Registered User
 
Join Date: May 2007
Posts: 56
Thanks for the tip, but unfortunately DB2 v7.1 doesn't support such SELECT clasue. Do you know anything else that I could try?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On