Informix Error -26084: Cross server objects cannot be referenced in CONNECT BY queries.
Cause and resolution
Cross server objects cannot be referenced in CONNECT BY queries.
The table specified in the FROM clause of a CONNECT BY query must be in a database of the Dynamic Server instance to which the session is connected. No clause of a SELECT statement that includes the CONNECT BY clause can reference a database object that is managed by a remore database server.
If you need to perform a CONNECT BY query on a table that resides in a database of a remote server, you should first connect to that database, and then issue the CONNECT BY query on the (local) table.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26084 fires when a CONNECT BY query's FROM clause (or any clause of the containing
SELECT) references a table managed by a remote database server — per the official
guidance.
- A database object managed by a remote server referenced anywhere in a
CONNECT BYquery, per the official guidance — the direct, only cause; theFROMtable must be in a database of the Dynamic Server instance the session is connected to.
Solutions / Resolution
- Connect directly to the remote server's database first, per the official guidance,
then issue the
CONNECT BYquery against the (now-local) table.
Examples
N/A
No specific triggering statement is documented beyond a remote-server object referenced in
a CONNECT BY query.
Diagnostic Checks
- Check every table referenced by the
CONNECT BYquery for an@serverqualifier, and connect directly to that server's database instead.
Related Errors / Related Topics
- -26085 — "You cannot have a CONNECT BY query on a join of two or more tables." A
related
CONNECT BYFROM-clause restriction, on joining multiple tables rather than cross-server references.
A CONNECT BY query referenced a remote-server object — connect to that server's database
directly first.