Quote:
Originally posted by Brontes
Thanx!
I think I understand it: if a table has got a size of x Gig, it always keeps this size although you delete his records.
This problem might never have happened because we've set an autodelete on 1 month. This apparently failed and we now had 4.5 months of data in the table.
We've escalated our problem to Vienna, they should know how to recreate the table.
One small question: how do I know if I've got space to extend the database (add chunks). I've just seen that another (bigger) customer of us has a database of only 3 Gig...
greetz,
B
|
Hi,
Please execute this script, for look free space.
#!/usr/bin/ksh
[ `uname -a|grep -c 'AIX'` -eq 1 ] && bk=256 || bk=512
raya="--------------------------------------------------------------------------
--"
echo "Space used in On-Line `echo $INFORMIXSERVER` al `date +%d/%m/%Y-%H:
%M`"
echo $raya
{
dbaccess sysmaster <<!
select dbsnum,
(
select name[1,18]
from sysdbspaces
where syschunks.dbsnum=sysdbspaces.dbsnum
) dbspace,
trunc((sum(chksize))/$bk,0) total,
trunc(((sum(chksize)-sum(nfree)))/$bk,0) ocupado,
trunc(sum(nfree)/$bk,0) libre
from syschunks
group by 1,2
order by 1
!
} 2>/dev/null | sed '/^$/d'|pg -p "(%d) <Enter>=Continue - <q>uit:"
echo $raya
Gustavo.