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 > Load st

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-10-08, 05:39
usDB2 usDB2 is offline
Registered User
 
Join Date: May 2008
Posts: 39
Load st

Hi

I have 5 files which inserts data into exception table using Load utility.when i execute all 5 file concurrently table gets into loaad pending state.

So i used load terminate.

But is it possible to check if the table is being accesed by some other process then continue the load.
Reply With Quote
  #2 (permalink)  
Old 11-10-08, 06:14
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
you can either take Snapshot for the entire application or take a snapshot for Locks during the time you start your LOAD utility.

Is there any RI between these tables or any relationship among them?
Reply With Quote
  #3 (permalink)  
Old 11-10-08, 06:38
usDB2 usDB2 is offline
Registered User
 
Join Date: May 2008
Posts: 39
All 5 files use same exception table
How shld I tk snapshot of locks
Reply With Quote
  #4 (permalink)  
Old 11-10-08, 06:47
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
Ok. Look when you start the Load utility on a single table, the utility holds a X (exclusive Lock) on that table. So you should n't try to load all the files to the same table at the same. You can write a shell script which will pick the files one by one and process them with the LOAD command. Or you can try that manually. You can just type "GET SNAPSHOT" in the IBM Manual for V8 or V9. It will give you example with commands on how to take Snapshot on Locks.
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