Could not initialize the security subsystem on Windows

Technote (troubleshooting)


Problem(Abstract)

Sometimes it is neccessary to access Informix via a DOS command line window. Doing so can result in the error: Could not initialize the security subsystem.

Symptom

Running any Informix commands in a MS DOS command line window can result in the error: Could not initialize the security subsystem. Please ensure that
this account has the necessary privileges and ensure INFORMIXSERVER
value exists in the registry and environment.


Cause

This error is due to the environment variables not set in order to access Informix correctly.

Resolving the problem

1.From the DOS command line window, cd to the folder where the Informix Database Server is installed

2. Run the dir command and locate a file named ol_yourserver.cmd

    example:
    >dir *.cmd

    09/20/2013 12:45 PM 285 ol_informix1210_1.cmd
    1 File(s) 285 bytes
    0 Dir(s) 346,147,696,640 bytes free

3. Simply type the name of the file ol_yourserver.cmd. This will set the environment to access Informix from the DOS command line.
    example:
    > ol_informix1210_1.cmd

    Here is an example of the contents of the ol_server.cmd file

    > type ol_informix1210_1.cmd

    set INFORMIXDIR=C:\PROGRA~1\IBMINF~1
    set REGMACHINE=\\ADMINIB-IBTFJTS
    set INFORMIXSERVER=ol_informix1210_1
    set ONCONFIG=onconfig.ol_informix1210_1
    set INFORMIXSQLHOSTS=C:\Program Files\IBM Informix Software Bundle\etc\sqlhosts.
    ol_informix1210_1
    set PATH=%INFORMIXDIR%\bin;%PATH%

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Informix Servers

Software version:

11.1, 11.5, 11.7, 11.70, 12.1

Operating system(s):

Windows

Reference #:

1651873

Modified date:

2013-10-04

Translate my page

Machine Translation

Content navigation