Informix Error -43023: Bad option usage: -n option requires a log number.
Cause and resolution
Bad option usage: -n option requires a log number.
The user entered the -n option and did not specify a log number. ON-Bar does not know which log to restore to in this command, so it cannot continue.
Specify the log number, after the -n option, and rerun the command.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-43023 fires when ON-Bar's -n option is given without a log number — per the official
guidance, ON-Bar then has no way to know which log to restore to.
- The
-noption used without a following log number, per the official guidance — the direct, only cause.
Solutions / Resolution
- Specify the log number after
-n, and rerun the command, per the official guidance.
Examples
Missing log number after -n
$ onbar -r -n
Bad option usage: -n option requires a log number.
$ onbar -r -n 42
Diagnostic Checks
- Check the
-noption's argument, and supply the log number if missing.
Related Errors / Related Topics
- -43010 — "Bad option usage: -f option requires a filename." The same class of
missing-argument error, for the
-foption instead.
ON-Bar's -n option was given without a log number — supply the log number.