Informix Error -9465: Must specify dbname in the URL.
Cause and resolution
Must specify dbname in the URL.
Make sure the JDBC URL contains the database name.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-9465 fires when a JDBC URL is missing the database name — per the official guidance.
- A JDBC URL with no database name segment, per the official guidance — the direct, only cause.
Solutions / Resolution
- Make sure the JDBC URL contains the database name, per the official guidance.
Examples
A JDBC URL missing the database name
"jdbc:informix-sqli://host:port/:INFORMIXSERVER=srv;user=myuser;password=secret"
-- -9465: no database name before the ':'
Corrected
"jdbc:informix-sqli://host:port/mydb:INFORMIXSERVER=srv;user=myuser;password=secret"
Diagnostic Checks
- Check the JDBC URL for the database-name segment, and add it if missing.
Related Errors / Related Topics
- -9463 — "Cannot load the specified IfxProtocol class: (%s)." A related JDBC-URL validity error, on an invalid protocol class rather than a missing database name.
- -9464 — "Must specify user=name in the URL." A related JDBC-URL validity error, on a missing username rather than a missing database name.
- -9466 — "Must specify password=value in the URL." A related JDBC-URL validity error, on a missing password rather than a missing database name.
The JDBC URL was missing the database name — add it before the server-parameters segment.