Informix Error -25718: Cannot insert or update from a nonlogging database to a logging database.
Cause and resolution
Cannot insert or update from a nonlogging database to a logging database.
When the local database is nonlogging, the only operations allowed on a remote database are operations that read information. You cannot change information on a remote database when the local database is nonlogging.
Remove the insert or update operation, or change the local database to a logging database, or change the remote database to a nonlogging database.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-25718 fires when a distributed statement tries to write to a remote (logging) database from a nonlogging local database — per the official guidance, a nonlogging local database can only perform read operations on a remote database.
- An
INSERT/UPDATEagainst a remote database issued from a nonlogging local database, per the official guidance — the direct, only cause.
Solutions / Resolution
- Remove the insert or update operation, per the official guidance, or
- Change the local database to a logging database, per the official guidance, or
- Change the remote database to a nonlogging database, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a write from a nonlogging local database to a remote logging one.
Diagnostic Checks
- Check the local database's logging mode, and confirm it's logging before issuing writes against remote databases.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -25718 in this set yet.
An insert/update from a nonlogging local database to a logging remote database is not allowed — make the local database logging, or restructure the operation.