Informix Error -141
-141 ISAM error: tblspace table overflow.
The database server is configured to handle a certain number of open tblspaces (which correspond approximately to tables). This limit has been reached, so a table that is used in this statement could not be opened. In the short term, roll back the current transaction and then re-execute it when fewer concurrent operations are going on. To prevent recurrence, the database server administrator should configure the system to handle more open tblspaces. The TBLSPACES parameter of the ONCONFIG file sets the limit. The ovrtable count in the ON-Monitor or ON-Monitor Profile display reflects the number of times this error occurs.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-141 is different in character from -137/-138/-139: those are ceilings on how many chunks, dbspaces, or logical logs can exist in total; -141 is a ceiling on how many tblspaces (approximately, tables) can be open concurrently at a given moment. It's a live concurrency condition, not a permanent storage-object count — which is exactly why the official guidance offers a short-term retry option alongside the long-term configuration fix.
- Many concurrent sessions or queries each having multiple tables open at once, collectively
exceeding the configured
TBLSPACESlimit during a moment of unusually high concurrency, rather than any single session doing something wrong. - Queries touching a large number of tables simultaneously — wide joins, or views built on many base tables — each contributing to the currently-open count for the query's duration.
- Heavy table fragmentation, echoing the same mechanism as -104: a table split into many fragments can count multiple times toward the open-tblspace total for what's logically one table.
TBLSPACESsized for typical concurrency, not peak concurrency — a burst of unusually high activity (month-end reporting overlapping normal OLTP traffic, for example) can exceed a limit that comfortably covers ordinary load.- PDQ (parallel database query) amplifying the instantaneous open-tblspace count for a single complex query — the same mechanism -104 describes for file handles, applied here to concurrently open tblspaces.
Solutions / Resolution
- Short-term: roll back the current transaction and re-execute it when fewer concurrent operations are happening. Per the official guidance, this is a legitimate response to an occasional concurrency spike, not just a stopgap — many occurrences of -141 are exactly that: a transient peak, not a durable problem.
- Long-term: increase the
TBLSPACESparameter inONCONFIGif this recurs regularly rather than as an occasional spike — an administrator task, typically requiring the same reinitialization discipline as otherONCONFIGcapacity parameters. - Monitor the
ovrtablecount (viaON-Monitor/ON-Monitor Profile, or the current equivalent monitoring mechanism) — the official guidance highlights this metric specifically because it tracks how often this condition actually occurs, which is the right basis for deciding whetherTBLSPACESgenuinely needs raising versus this being a rare, acceptable occurrence. - Consolidate fragments for tables that don't need many, if heavy fragmentation is contributing to the count, similar to -104's guidance.
- Adjust
PDQPRIORITYfor specific heavy queries during periods when open-tblspace pressure is already elevated, if PDQ amplification is a major contributor. - Stagger high-concurrency batch or reporting workloads away from other equally demanding activity where possible, to reduce peak simultaneous open-tblspace counts.
Examples
The month-end reporting spike
-- Normal OLTP traffic, plus month-end reporting queries touching
-- many tables each, all running concurrently for a few hours
If ovrtable shows this happening only during predictable, bounded windows like month-end, the
short-term retry approach — or scheduling reports to avoid overlapping peak OLTP hours — may be
more appropriate than permanently raising TBLSPACES.
PDQ amplifying a single query's open-tblspace footprint
A single complex report, run with PDQ enabled, opens many of its underlying tables' tblspaces in
parallel rather than sequentially — during exactly the moment several other sessions are also
active, the combined instantaneous count exceeds TBLSPACES even though none of the individual
queries look unreasonable.
Monitoring before deciding
-- Check the ovrtable count over time before increasing TBLSPACES
-- A rare, occasional count suggests retry-on-conflict is sufficient;
-- a steadily climbing or frequent count suggests raising the limit
Diagnostic Checks
- Check the
ovrtablecount to see how often this condition actually occurs — the official guidance's own recommended metric for deciding whether configuration change is warranted. - Check the current
TBLSPACESconfiguration value:grep -i "^TBLSPACES" $ONCONFIG - Review concurrent activity and timing around failures — does this correlate with a known batch/reporting window overlapping normal traffic?
- Check for heavy fragmentation on tables involved in the failing queries, if fragment count might be inflating the open-tblspace total.
Related Errors / Related Topics
- -104 — "ISAM error: too many files open." The closest conceptual sibling — both are concurrency-driven "too many storage objects open at once" conditions, with the same PDQ- and fragmentation-amplification mechanisms.
- -137 — "ISAM error: chunk table overflow." Same general
ONCONFIGcapacity-ceiling family as the long-term fix for -141, though -137 is a permanent storage-object count rather than a live concurrency measure.
Check the ovrtable count before deciding whether this needs a configuration change or is simply
an occasional, retry-worthy concurrency spike — the two call for very different responses.