Informix Error -1786: The command line option specified in the Control Panel/Services/Startup dialog was -i.
Cause and resolution
The command line option specified in the Control Panel/Services/Startup dialog was -i.
The parameter that was specified in the Control Panel/Services/Startup dialog box was -i, which causes the database server to initialize the root dbspace, destroying any information that it currently contains. When the database server runs as a service under Windows, it does not prompt you to confirm the parameters that you have specified. If you are sure that you want to initialize the root dbspace, specify the parameters as -iy instead.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1786 fires (Windows-specific) when the database server, started as a Windows service, is given
the -i startup option — per the official guidance, -i initializes the root dbspace and
destroys existing data; since a service can't interactively prompt for confirmation, plain -i
is refused in this context.
-ispecified in the Control Panel/Services/Startup dialog, per the official guidance — the direct, only cause; a service startup can't show the interactive confirmation-inormally requires.
Solutions / Resolution
- Specify
-iyinstead, per the official guidance, if initialization (and the destruction of existing data) is genuinely intended —-iyskips the interactive confirmation the service context can't provide. - Remove the
-ioption entirely if initialization wasn't actually intended.
Examples
The disallowed service startup option
Startup parameters: -i
-- -1786: a service can't prompt for the confirmation -i normally requires
Corrected — if initialization is genuinely intended
Startup parameters: -iy
Diagnostic Checks
- Check the Control Panel/Services/Startup dialog's command-line option, and confirm
whether root-dbspace initialization (destroying existing data) was actually intended before
using
-iy.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -1786 in this set yet.
-i isn't allowed for a Windows-service startup since it can't prompt for confirmation — use
-iy if initialization is genuinely intended.