ONINIT_STDOUT environment variable (Windows)

The ONINIT_STDOUT environment variable specifies a path and file name in which output from the oninit command is stored.

While it is not generally necessary to view output from the oninit command, it might be necessary in certain situations, such as when using the -v (verbose) option or when you want to see output from an unhandled exception in a process launched within a virtual processor. When the value of ONINIT_STDOUT is set to the name of a file, output from the oninit command is written to the file.


1  set ONINIT_STDOUT\ path\filename

You can set the ONINIT_STDOUT environment variable as a system variable in Control Panel > System > Advanced > Environment Variables. If the HCL OneDB™ service is configured to log on as user informix, start the service using the starts command after setting the environment variable. Note, however, that because environment variables are read from the system when the service is started, if the service is set to log on as the local system user, you must restart your computer for the environment variable to take effect. Because the local system user is effectively logged on at all times, environment variables are refreshed only when the operating system is restarted.

For example, if the environment variable set to C:\temp\oninit_out.txt, you can start the server with the verbose option with the following command:
starts %INFORMIXSERVER% -v
The oninit messages are saved to the C:\temp\oninit_out.txt file.
Important: Only a single instance of the database can run on a Windows™ machine if the ONINIT_STDOUT environment variable is set.