## Calculating max extent

### Calculating max extent

Hi

I have found the formula for doing this in the docs.

I was wondering if there was a sysmaster table that had the info such as
number of columns, no. of indexed columns etc, and if someone could
point me to a resource.

I guess that it would be something that oncheck -pc used, am I on the
right lines here?

Thanks

Rob White

--
This communication is intended for the addressee(s) and may contain
confidential and legally privileged information.  We do not waive
confidentiality or privilege by mistransmission.  If you have received
this communication in error, any use, dissemination, printing or copying
is strictly prohibited; please destroy all electronic and paper copies
and notify the sender immediately.

### Calculating max extent

ext_warn.sh:
--------
echo "
select {+ORDERED,INDEX(a,syspaghdridx)}
trunc(pg_frcnt/8) frext, partaddr( dbsnum, pg_pagenum ) partnum from
sysdbspaces b, syspaghdr a
where a.pg_partnum = partaddr( dbsnum, 1 )
and pg_flags = 2
and pg_frcnt < (8*\$1)
into temp ggg with no log;

select dbsname[1.25], tabname[1,25], frext
from systabnames a, ggg b
where a.partnum = b.partnum
order by frext; " | dbaccess sysmaster -

--------
usage:  ext_warn.sh <n> where <n> is the number of remaining extents at
which you wish to be warned.  (i.e. 10 extents left)

(Thanks to Stefan for the corrections)

cheers
j.

----- Original Message -----

Sent: Thursday, January 23, 2003 9:04 AM
Subject: Calculating max extent

> Hi

> I have found the formula for doing this in the docs.

> I was wondering if there was a sysmaster table that had the info such as
> number of columns, no. of indexed columns etc, and if someone could
> point me to a resource.

> I guess that it would be something that oncheck -pc used, am I on the
> right lines here?

> Thanks

> Rob White

> --
> This communication is intended for the addressee(s) and may contain
> confidential and legally privileged information.  We do not waive
> confidentiality or privilege by mistransmission.  If you have received
> this communication in error, any use, dissemination, printing or copying
> is strictly prohibited; please destroy all electronic and paper copies
> and notify the sender immediately.

### Calculating max extent

Robert,
there is a sysmaster table called systabinfo.  Another table is
sysptnhdr.

I suggest you should start from those two tables.  If you are running
with later versions indexes are treated as separate tablespaces by
sysmaster.

Regards

malcolm

-----Original Message-----

Sent: 23 January 2003 14:04

Subject: Calculating max extent

Hi

I have found the formula for doing this in the docs.

I was wondering if there was a sysmaster table that had the info such as
number of columns, no. of indexed columns etc, and if someone could
point me to a resource.

I guess that it would be something that oncheck -pc used, am I on the
right lines here?

Thanks

Rob White

--
This communication is intended for the addressee(s) and may contain
confidential and legally privileged information.  We do not waive
confidentiality or privilege by mistransmission.  If you have received
this communication in error, any use, dissemination, printing or copying
is strictly prohibited; please destroy all electronic and paper copies
and notify the sender immediately.

DISCLAIMER
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version.