IBM Data and AI

Welcome to the IBM Data and AI Ideas Portal for Clients!

We welcome and appreciate your feedback on IBM Data and AI Products to help make them even better than they are today!
Before you submit an idea, please perform a search first as a similar idea may have already been reported in the portal. If a related idea is not yet listed, please create a new idea and include with it a description which includes expected behavior as well as why having this feature would improve the service and how it would address your use case.
IBM Employees:
  • Our team welcomes any feedback and suggestions you have for improving our offerings / products! This forum allows us to connect your offering / product improvement ideas with IBM product and engineering teams.

  • If you have not registered on this portal please click on the following link and register. To complete registration you will need to open the email you will receive from Aha to confirm your identity.

Additional Information:
  • The shorter URL for this site is:

  • To view our roadmaps:

  • Reminder: This is not the place to submit defects or support needs, please use normal support channel for these cases

  • Please do not use the Ideas Portal for reporting bugs - we ask that you report bugs or issues with the product by contacting IBM support.

SQL interface to obtain the temporary space usage (tables, hash, sorts...)

A DBA and possibly a programmer needs an easy way to monitor who is responsible for the temporary space usage.
Currently it's possible a user may be consuming a lot of temporary space and impacting other sessions, without the DBA being able to quick and easily identify the session responsible.

Other reports (from IIUG mailing list) and another RFE (36245) mentions the need for programmers to be able to find out the current session's temp tables (onstat -g ses shows this).

The definitive solution for this should be an SQL interface showing:
- session ID
- object name
- object type (explicit temp table, implicit temp table, hash join, sort ...?)
- used space
- chunk/dbspace being used
- owner nam
- ??? (PID and others, but probably thos can be gathered with joins)

This should supersede RFE ID 36245 and this includes the request for that RFE and more.
  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Dec 24 2018
  • Delivered
Idea Priority High
Customer Name IBM
  • Attach files
  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    16 Oct, 2019 10:09pm

    This was already implemented. There's a "sid" field in sysmaster:sysptnhdr which contains the session ID which created the object if it's a temporary object.
    For previous versions that don't support this (before 12.10.FC8) you can try this script:


    P.S.: An RFE system where a request that is already implemented stays open for nearly 1 year is not credible...

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    6 Aug, 2019 03:26pm

    There are times when Temp space fills up.
    And there is no way to find out which session is holding all the space.

    I usually look at the onstat -u output, 
    looking for the most read-write counts
    for a session that looks like a reporting session
    And try killing it.

    But it would be really good to actually know which session is responsible.

NOTICE TO EU RESIDENTS: per EU Data Protection Policy, if you wish to remove your personal information from the IBM ideas portal, please login to the ideas portal using your previously registered information then change your email to "anonymous@euprivacy.out" and first name to "anonymous" and last name to "anonymous". This will ensure that IBM will not send any emails to you about all idea submissions