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 > How to know the Load status of a table !!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-05-05, 05:55
suri_me suri_me is offline
Registered User
 
Join Date: Dec 2005
Posts: 1
How to know the Load status of a table !!

Hi,

I am using db2 Load utility to load data to a table. But whenever i get db2 exception i need to check the status of a table whether the table is in Load pending state or is in Load In progress state. accordingly i should terminate or unset the Load attribute of a table. For this I am using db2LoadQuery() method to fetch the table status info. This works when there is one or two threads accessing same table, but fails if multiple threads accessing same table. I could not reset the table state to normal when there is db2 exception..... Can anyone tell me how use this db2LoadQuery method? Is this method a thread safe?

Thanks in advance,

Suresh
Bangalore

Last edited by suri_me; 12-08-05 at 03:17. Reason: I need to know from CLI programming prospective
Reply With Quote
  #2 (permalink)  
Old 12-06-05, 10:40
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
load query

there are 2 commands
db2 load query table xxx.yy
db2 list utilities show detail
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
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