Informix Error -25603: Attempt to prepare more than one statement before connecting to a database.
Cause and resolution
Attempt to prepare more than one statement before connecting to a database.
Check your application to make sure that you prepare only one of the CREATE DATABASE, START DATABASE, or DROP DATABASE statements before you connect to a database.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-25603 fires when an application prepares more than one of CREATE DATABASE, START DATABASE, or DROP DATABASE before connecting to a database — per the official guidance.
- More than one of
CREATE DATABASE/START DATABASE/DROP DATABASEprepared before the connection is established, per the official guidance — the direct, only cause.
Solutions / Resolution
- Prepare only one of
CREATE DATABASE,START DATABASE, orDROP DATABASEbefore connecting, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond preparing more than one such statement pre-connection.
Diagnostic Checks
- Check the application for multiple pre-connection database-creation/start/drop statements, and reduce it to one.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -25603 in this set yet.
More than one CREATE/START/DROP DATABASE statement was prepared before connecting —
prepare only one.