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 > Index are not coming in Query Explain diagram of Query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-13-06, 03:48
sunil_patil sunil_patil is offline
Registered User
 
Join Date: Nov 2006
Posts: 5
Index are not coming in Query Explain diagram of Query

Hi

I have applied Index I1 on Table T1 which has about 50 K rows.But when i say explain SQL from Control Center i am not seeing any of indexes (Ie IXSCAN Hexagon ) in Access path diagram.Is there any setting to view indexes on table in explain query.I have run RUNSTAT command also on Table T1

Thanks in Advaance
Reply With Quote
  #2 (permalink)  
Old 11-13-06, 07:33
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,
if there is an index on table, there is not 100% DB2 will use it. You should create indexes on "where conditions".

Can you post the table description (db2 describe table table_name) and index syntax (db2 create index ...).

Hope this helps,
Grofaty
Reply With Quote
  #3 (permalink)  
Old 11-13-06, 07:36
sunil_patil sunil_patil is offline
Registered User
 
Join Date: Nov 2006
Posts: 5
Column Type Type
name schema name Length Scale Nulls

------------------------------ --------- ------------------ -------- ----- -----
-
TABSCHEMA SYSIBM VARCHAR 128 0 No

TABNAME SYSIBM VARCHAR 128 0 No

COLNAME SYSIBM VARCHAR 128 0 No

COLNO SYSIBM SMALLINT 2 0 No

TYPESCHEMA SYSIBM VARCHAR 128 0 No

TYPENAME SYSIBM VARCHAR 128 0 No

LENGTH SYSIBM INTEGER 4 0 No

SCALE SYSIBM SMALLINT 2 0 No

NULLS SYSIBM CHARACTER 1 0 No

IDENTITY SYSIBM CHARACTER 1 0 No

REMARKS SYSIBM VARCHAR 254 0 Yes



CREATE INDEX IND_T_COLUMNS ON T_DB2_COLUMNS (TABSCHEMA ASC,TABNAME ASC,COLNAME ASC,COLNO ASC)
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