Use the onstat -g tmp option to display the amount of temporary space currently used by the database server. The following optional arguments are available:
If you use onstat -g tmp without an optional argument, the output is based on the value of the DBSPACETEMP environment variable. If the DBSPACETEMP environment variable is not set, the output is based on the DBSPACETEMP configuration parameter.
For more information on the DBSPACETEMP environment variable see the IBM Informix: Guide to SQL Reference. For more information on the DBSPACETEMP configuration parameter see the IBM Informix: Extended Parallel Server Administrator's Reference.
Figure 10 provides an example of the output of onstat -g tmp with no arguments.
informix: onstat -g tmp IBM Informix Extended Parallel Server Version 8.40.FN361 -- Online -- Up 00:06:15 -- 72704 Kbytes Based on the value of the DBSPACETEMP environment variable, these DBspaces can store temporary files: num name type total pages used avail %used Max 1 rootdbs.1 C 40000 24583 15417 61 61 5 tempdbs3 T 10000 53 9947 0 60 4 tempdbs2 T 5000 53 4947 1 51 6 tempdbs4 T 2500 53 2447 2 2 3 tempdbs1 T 500 53 447 10 10 2 noncrit1 N 500 447 53 89 89 -------------------------------------------------------------------------------- 6 total spaces 58500 25242 33258 43 57
The output of onstat -g tmp contains the following information.