dbTalk Databases Forums  

Identifying tables in Load Pending state

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


Discuss Identifying tables in Load Pending state in the comp.databases.ibm-db2 forum.



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

Default Identifying tables in Load Pending state - 01-29-2011 , 01:47 AM






Hello,

Is there a way to get a list of tables being in the "Load Pending" state?

syscat.table's status and access_mode columns don't seem to be useful for
this (I just compared the values of these for a table in normal state and
in Load Pending state).

--
Troels

Reply With Quote
  #2  
Old   
Lennart Jonsson
 
Posts: n/a

Default Re: Identifying tables in Load Pending state - 01-29-2011 , 02:34 AM






On 2011-01-29 08:47, Troels Arvin wrote:
Quote:
Hello,

Is there a way to get a list of tables being in the "Load Pending" state?

syscat.table's status and access_mode columns don't seem to be useful for
this (I just compared the values of these for a table in normal state and
in Load Pending state).

I think you can use SYSIBMADM.ADMINTABINFO.load_status for this, if I
remember correctly the value is 'PENDING'


/Lennart

Reply With Quote
  #3  
Old   
The Boss
 
Posts: n/a

Default Re: Identifying tables in Load Pending state - 01-29-2011 , 05:15 AM



On Jan 29, 9:34*am, Lennart Jonsson <erik.lennart.jons... (AT) gmail (DOT) com>
wrote:
Quote:
On 2011-01-29 08:47, Troels Arvin wrote:

Hello,

Is there a way to get a list of tables being in the "Load Pending" state?

syscat.table's status and access_mode columns don't seem to be useful for
this (I just compared the values of these for a table in normal state and
in Load Pending state).

I think you can use SYSIBMADM.ADMINTABINFO.load_status for this, if I
remember correctly the value is 'PENDING'

That's correct, following query will show tables in "Load Pending"
state:
db2 "select tabschema, tabname from SYSIBMADM.ADMINTABINFO where
load_status = 'PENDING'"

--
Jeroen

Reply With Quote
  #4  
Old   
Troels Arvin
 
Posts: n/a

Default Re: Identifying tables in Load Pending state - 01-30-2011 , 03:49 PM



Hello,

Lennart Jonsson wrote:
Quote:
I think you can use SYSIBMADM.ADMINTABINFO.load_status for this, if I
remember correctly the value is 'PENDING'
Thanks (and thanks to "The Boss", as well).

However, queries in SYSIBMADM.ADMINTABINFO are surprisingly slow.
Like in http://groups.google.com/group/comp.databases.ibm-db2/
browse_thread/thread/1f19045b8def6812/61edbc947b7e1ad1 I suspect that
queries in SYSIBMADM.ADMINTABINFO triggers I/O in all involved tables.

I wish IBM would re-consider table availability instrumentation aiming at
making it more useful, i.e. realistic to use for regular monitoring.

--
Troels

Reply With Quote
  #5  
Old   
The Boss
 
Posts: n/a

Default Re: Identifying tables in Load Pending state - 01-31-2011 , 09:28 AM



On Jan 30, 10:49*pm, Troels Arvin <tro... (AT) arvin (DOT) dk> wrote:
Quote:
Hello,

Lennart Jonsson wrote:
I think you can use SYSIBMADM.ADMINTABINFO.load_status for this, if I
remember correctly the value is 'PENDING'

Thanks (and thanks to "The Boss", as well).

However, queries in SYSIBMADM.ADMINTABINFO are surprisingly slow.
Like inhttp://groups.google.com/group/comp.databases.ibm-db2/
browse_thread/thread/1f19045b8def6812/61edbc947b7e1ad1 I suspect that
queries in SYSIBMADM.ADMINTABINFO triggers I/O in all involved tables.

I wish IBM would re-consider table availability instrumentation aiming at
making it more useful, i.e. realistic to use for regular monitoring.

(You probably already considered this, but just to be sure)
If you suspect a specific table (or a limited number of them) you
could use LOAD QUERY like explained here:
http://publib.boulder.ibm.com/infoce.../r0002000.html

Useful for adhoc situations, not so for regular monitoring of more
than a few tables.

--
Jeroen

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.