Informix Error -927
-927 Exceeded limit on maximum number of servers you can reference.
This statement contains references to more sites than the database server can handle. Through Version 4.1, the limit on different site names that can appear in one statement is 32 (later versions might allow more). Review the statement, and check that only necessary sites are named. If so, revise the operation to use fewer sites (for example, by selecting some data into a local, temporary table).
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-927 fires when a single statement references more sites/servers than the limit allows — per the official guidance, through Version 4.1 the limit was 32 different site names in one statement, with later versions potentially allowing more.
- A statement referencing more than the platform's site-name limit, per the official guidance — most likely in a generated or programmatically-assembled distributed query.
- A query design that queries many sites directly in one statement, rather than staging data locally first.
Solutions / Resolution
- Review the statement and check that only necessary sites are named, per the official guidance — remove any sites that aren't actually needed for this specific query.
- Revise the operation to use fewer sites, per the official guidance, for example by selecting some data into a local, temporary table first, then working against that local staging data instead of querying every remote site directly in one statement.
Examples
Staging remote data locally to reduce the site count in later statements
SELECT * FROM site1@server1:orders INTO TEMP staged_orders;
-- repeat per site, then work against staged_orders locally instead of
-- referencing every site directly in a single combined statement
Diagnostic Checks
- Count the distinct site/server names referenced in the failing statement against the platform's documented limit (32 through Version 4.1; check current documentation for later versions).
Related Errors / Related Topics
No closely related error codes are cross-referenced for -927 in this set yet.
Stage data from remote sites into a local temp table first, rather than referencing many sites directly in one statement.