Unix Technical Forum

Re: Map Table to Chunks

This is a discussion on Re: Map Table to Chunks within the Informix forums, part of the Database Server Software category; --> Chris, run this sql against sysmaster. Substitute your chunk number for the chknum value. select chknum, chksize, (chknum*1048576) chkstart, ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 10:17 PM
chris.staubin@reebok.com
 
Posts: n/a
Default Re: Map Table to Chunks


Chris,

run this sql against sysmaster. Substitute your chunk number for the
chknum value.


select chknum, chksize, (chknum*1048576) chkstart,
((chknum*1048576)+chksize-1) chkend from syschunks
where chknum="1111"
into temp x;
select dbinfo('dbspace',a.pe_partnum) dbspace, x.chknum, x.chksize,
b.tabname,
pe_phys, pe_extnum extnum, pe_size ext_size
from sysptnext a, systabnames b, x
where a.pe_partnum = b.partnum
and pe_phys >= x.chkstart
and pe_phys<=x.chkend
order by pe_phys
into temp y;
select dbspace, chknum, chksize, tabname, extnum, ext_size
from y;



-Chris





cbullivant@orange.net.au (Chris Bullivant)
Sent by: owner-informix-list@iiug.org
05/03/2004 02:40 AM
Please respond to
cbullivant@orange.net.au (Chris Bullivant)


To
informix-list@iiug.org
cc

Subject
Map Table to Chunks






Hello All,

I want a script that will allow me to:
a) Enter a chunk number and then display all tables in that chunk
or
b) Enter a table name and then display chunk names/numbers where that
table has an extent.

Oncheck -pe gives too much information as does oncheck -pT, and my
knowledge of awk/perl etc. is pretty rudimentary.

I've been playing with Sysmaster for hours, trying to connect
systabextents (which has a te_physaddr field) to syschkextents (which
has a ce_physaddr field)
but I just can't make it work. So if someone could explain how one of
the systab* tables connects to the syschunk* tables that would be
grand.

I'm using 7.31.UC6 on Solaris 7

Thanks for any help,
Chris Bullivant


sending to informix-list
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 11:45 AM.


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