select tabname[1,24], hex(syspt.partnum), fextsiz, nextns
from sysptnhdr syspt, systabnames systab
where
dbsname = "<target_database>" and
tabname in
(.
.
.)
and
hex(syspt.partnum) = hex(systab.partnum)
order by 1;
My functional knowledge of sysmaster is obviously deficient --
predicate correction would be appreciated. Want to avoid parsing slow
oncheck output.
_______________________________________________
Informix-list mailing list
Inform...@iiug.org
http://www.iiug.org/mailman/listinfo/informix-list
Thanks, Art.
Some of the tables return two rows, some a single row. None have been
purposely fragmented by using "fragment by . . ." at table create.
Still scratching my head over that. I suspect there's an additional
condition that needs to be specified.
Meanwhile, the query that returned a match to dbschema output for each
table is (including first and next extent sizes and number of
extents):
select tabname[1,24], max( fextsiz ), max( nextns ), max(nextsiz)
> from sysptnhdr syspt, systabnames systab
> where
> dbsname = "<target_database>" and
> tabname in
> (.
> .
> .)
> and
> syspt.partnum = systab.partnum
Oops -- here's the query:
select tabname[1,24], max( fextsiz ), max( nextns ), max(nextsiz)
from sysptnhdr syspt, systabnames systab
where
dbsname = "<target_database" and
tabname in
(.
.
.)
and
syspt.partnum = systab.partnum
group by 1
order by 1;
Sizes will be in pages. Dbschema output converts to k.
Art
Art S. Kagel
Oninit ( www.oninit.com <http://www.oninit.com> )
IIUG Board of Directors ( a...@iiug.org <mailto:a...@iiug.org> )
See you at the 2010 IIUG Informix Conference
April 25-28, 2010
Overland Park (Kansas City), KS
www.iiug.org/conf <http://www.iiug.org/conf>
Disclaimer: Please keep in mind that my own opinions are my own opinions and
do not reflect on my employer, Oninit, the IIUG, nor any other organization
with which I am associated either explicitly or implicitly. Neither do
those opinions reflect those of other individuals affiliated with any entity
with which I am affiliated nor those of the entities themselves.
On Thu, Dec 17, 2009 at 4:12 PM, thomasgsmith < thomas...@verizon.net
<mailto:thomas...@verizon.net> > wrote:
Does anybody have a query that returns tablename and extentsizes? I
haven't quite gotten one to work vs. sysmaster -- it will return 2
rows per table:
select tabname[1,24], hex(syspt.partnum), fextsiz, nextns
from sysptnhdr syspt, systabnames systab
where
dbsname = "<target_database>" and
tabname in
(.
.
.)
and
hex(syspt.partnum) = hex(systab.partnum)
order by 1;
My functional knowledge of sysmaster is obviously deficient --
predicate correction would be appreciated. Want to avoid parsing slow
oncheck output.
_______________________________________________
Informix-list mailing list
Inform...@iiug.org <mailto:Inform...@iiug.org>
http://www.iiug.org/mailman/listinfo/informix-list
<http://www.iiug.org/mailman/listinfo/informix-list>