Informix Error -19846: You cannot access a nonlogging table (%s) in a logged database on a secondary server.
Cause and resolution
You cannot access a nonlogging table (%s) in a logged database on a secondary server.
Nonlogging tables are not replicated to secondary servers and are therefore not available on secondary servers.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-19846 fires when a nonlogging (RAW) table is accessed in a logged database on an HDR
secondary server — per the official guidance. Nonlogging tables aren't replicated to
secondaries, so they simply aren't available there.
- A
RAWtable accessed on a secondary server, per the official guidance — the direct, only cause.
Solutions / Resolution
- Access the table on the primary server instead, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond accessing a RAW table on a secondary.
Diagnostic Checks
- Check whether the accessed table is
RAWand the server is a secondary, and redirect the access to the primary.
Related Errors / Related Topics
- -19844 — "Tables of type RAW are not allowed in a logged database on an HDR primary
server." A related HDR/logging restriction, about creating a
RAWtable on the primary rather than accessing one on the secondary. - -19845 — "You cannot alter the logging mode of a table in a logged database on a primary server." A related HDR/logging restriction, about altering logging mode on the primary.
A nonlogging (RAW) table isn't available on an HDR secondary — access it on the primary.