database sysmaster; select username name, pid, dbsname[1,10] database, tabname[1,12] table, hostname, type from syslocks, syssessions where syslocks.owner = syssessions.sid order by 3,2
select dbsname, tabname table_or_index, count(*) num_of_extents, trunc(sum( pe_size * $PAGE_SIZE ) /1024/1024,0) total_size_MB from systabnames, sysptnext where systabnames.partnum = pe_partnum and dbsname != 'HASHTEMP' and systabnames.tabname not matches 'TBL*' group by 1,2 having count(*) > $NUM_EXTENTS order by 1,3 desc,2 -- PAGE_SIZE in bytes, please