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 > db2inspect question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-07-04, 14:34
rvsc36 rvsc36 is offline
Registered User
 
Join Date: Jan 2004
Location: Phoenix, AZ
Posts: 42
db2inspect question

All,

I was using the db2 utility db2inspect to identify those indexes that had not yet been converted from type 1 to type 2. After formatting the results, the results listed certain Object ID's (tables) that are referenced back to it's indexes.

Does anyone know of a way to find out what the table name is based on an object id? I need to know the table name to re-launch the convert index script.

Example of output:

Table phase start (ID Signed: 4, Unsigned: 4; Tablespace ID: 0) :

Data phase start. Object: 4 Tablespace: 0
The index type is 2 for this table.
DAT Object Summary: Total Pages 7 - Used Pages 7 - Free Space 13 %
Data phase end.

Thx
Reply With Quote
  #2 (permalink)  
Old 06-07-04, 15:26
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Use the tablespaceid and tableid columns in the syscat.tables table to identify the table.

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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