Unix Technical Forum

table identifier for db2ReadLog

This is a discussion on table identifier for db2ReadLog within the DB2 forums, part of the Database Server Software category; --> Gurus, Does the 'table identifier' (unsigned short, offset 4 in DMSLogRecordHeader) relate to: - tabname in syscat.tables - tid ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 06:29 AM
Doug
 
Posts: n/a
Default table identifier for db2ReadLog

Gurus,

Does the 'table identifier' (unsigned short, offset 4 in
DMSLogRecordHeader) relate to:
- tabname in syscat.tables
- tid in sysibm.systables
- something else?

Doug

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 06:29 AM
Knut Stolze
 
Posts: n/a
Default Re: table identifier for db2ReadLog

Doug wrote:

> Gurus,
>
> Does the 'table identifier' (unsigned short, offset 4 in
> DMSLogRecordHeader) relate to:
> - tabname in syscat.tables
> - tid in sysibm.systables
> - something else?


The 2nd option is correct. But you should never use the tables in the
SYSIBM schema, so stick with:

SYSCAT.TABLES.TABLEID

It can't be the table name because (a) that would make log records longer
than necessary (= more writes = higher performance impact = not
acceptable), and (b) it is just a "unsigned short" and, thus, only 2 bytes
long (not enough to fit a name in).

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 06:30 AM
Doug
 
Posts: n/a
Default Re: table identifier for db2ReadLog

Thanks Knut :-)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:09 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com