Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Phil Rule — — source: Usenet: comp.databases.informix
The following will tell you how much space is allocated to the database -
oncheck -pt <database> |awk '{if ($4=="allocated") {sum+=$5}} END {print
sum*2}'
whilst this gives actually used -
oncheck -pt <database> |awk '{if ($4=="used") {sum+=$5}} END {print sum*2}'
There may be one or two 'gotchas', but it's fairly reliable.
--
Phil@oninit.com
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.