Informix Error -6006: Tablename has not been opened.
Cause and resolution
Tablename has not been opened.
The table whose name was passed to this function has not been opened. The program must first call dbselect() to open the table.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-6006 fires when the named table hasn't been opened yet — per the archived catalogue, the
program must call dbselect() to open it first.
- The table not yet opened via
dbselect(), per the archived catalogue — the direct, only cause.
Solutions / Resolution
- Call
dbselect()to open the table before this call, per the archived catalogue.
Examples
N/A
No specific triggering statement is documented beyond the function-level condition described above.
Diagnostic Checks
- Confirm
dbselect()has opened the named table before this call is reached.
Related Errors / Related Topics
- -6008 — "Tablename has not been opened."
- -6015 — "Tablename has not been opened."
- -6018 — "Tablename has not been opened."
- -6021 — "Tablename has not been opened."
- -6023 — "Tablename has not been opened."
- -6028 — "Tablename has not been opened."
Open the table with dbselect() first — this exact message recurs across several ALL-library functions whenever their target table isn't open yet.