We have SAP Solution Manager running on a SAP Sybase ASE 15.7 Database. That means we have a user database holding the application data, and a special tempdb exclusively mapped to this user database.
Over the last weeks, the database server has been loggging messages like the following:
Can't allocate Space forobject 'temp worktable' in database 'saptempdb'
because 'system' segment is full/has no free extents.[...]
So far so good. I have been extending the device and the database segment over and over up to a size of now 150 GB but the message keeps appearing. From the application administrators, I keep getting the statement that there is no possibility to further tune the application's configuration. I have been trying to manually get more information on what is really happening on the tempdb whenever the log message appears (for example by querying the sysusages table), but it seems I can not catch the database red-handed when it tries to use all the space in the system segment of saptempdb.
Does anyone have any tips or procedures for properly monitoring a temp database and finding the statements or transactions which cause a demand for huge temporary worktables?