temp tables
Posted in 2000
Topics: Server Administration
hi, how can i determine all existing temporary tables in an informix instance? thanks ottmar goedecke hdi informationsverarbeitung datanbankadministration podbielskistr. 396 30659 hannover tel 0511/645-4451, fax 0511/645-114451 e-mail: goedecke@hdi.de
you can try with next command:
dbaccess sysmaster <<-EOF
select tabname,
trunc(systabnames.partnum/1048576) dbspace,
sysdbspaces.name,ti_nrows
from systabnames,
sysdbspaces,
systabinfo
where sysdbspaces.dbsnum = trunc(systabnames.partnum/1048576)
and systabinfo.ti_partnum = systabnames.partnum
and sysdbspaces.is_temp = 1
EOF
regards,
William Pinelo Marin
System Admin
Grupo MAZ, S.A. de C.V.
+52(9)9810-510
+52(9)9810-553 fax
wpinelo@hotmail.com
william.pinelo@supermaz.com.mx
I'm not sure, but sysmaster:sysptntab.flags may have the information you are looking for. Regular tables have a value of 0, while temporary tables have a value of 4096. Join (on partnum) with systabnames to get more information on the table (like which database it belongs to) Rudy ottmar goedecke wrote: > hi, > how can i determine all existing temporary tables in an informix instance? > > thanks > ottmar goedecke > hdi informationsverarbeitung > datanbankadministration > podbielskistr. 396 > 30659 hannover > tel 0511/645-4451, fax 0511/645-114451 > e-mail: goedecke@hdi.de