免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4952 | 回复: 5
打印 上一主题 下一主题

急:关于windows下的informix启动失败的问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-02-27 12:02 |只看该作者 |倒序浏览
大家好,我在windows2003上安装ifnormix 9.4后启动服务的时候出现了一下错误,请大家帮我分析一下是什么原因?

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.   

dbaccess程序也不能运行.

我的windows服务器的配置是:16 CPU    16G内存

论坛徽章:
11
金牛座
日期:2015-03-19 16:56:22数据库技术版块每日发帖之星
日期:2016-08-02 06:20:00数据库技术版块每日发帖之星
日期:2016-04-24 06:20:00数据库技术版块每日发帖之星
日期:2016-04-13 06:20:00IT运维版块每日发帖之星
日期:2016-04-13 06:20:00数据库技术版块每日发帖之星
日期:2016-02-03 06:20:00数据库技术版块每日发帖之星
日期:2015-08-06 06:20:00季节之章:春
日期:2015-03-27 15:54:57羊年新春福章
日期:2015-03-27 15:54:37戌狗
日期:2015-03-19 16:56:41数据库技术版块每日发帖之星
日期:2016-08-18 06:20:00
2 [报告]
发表于 2009-02-27 12:49 |只看该作者

回复 #1 houyawei 的帖子

使用informix用户启动~~

论坛徽章:
0
3 [报告]
发表于 2009-02-27 13:38 |只看该作者

回复 #2 liaosnet 的帖子

我用的就是informix用户启动的.

论坛徽章:
11
金牛座
日期:2015-03-19 16:56:22数据库技术版块每日发帖之星
日期:2016-08-02 06:20:00数据库技术版块每日发帖之星
日期:2016-04-24 06:20:00数据库技术版块每日发帖之星
日期:2016-04-13 06:20:00IT运维版块每日发帖之星
日期:2016-04-13 06:20:00数据库技术版块每日发帖之星
日期:2016-02-03 06:20:00数据库技术版块每日发帖之星
日期:2015-08-06 06:20:00季节之章:春
日期:2015-03-27 15:54:57羊年新春福章
日期:2015-03-27 15:54:37戌狗
日期:2015-03-19 16:56:41数据库技术版块每日发帖之星
日期:2016-08-18 06:20:00
4 [报告]
发表于 2009-02-27 13:48 |只看该作者
那检查一下环境配置吧~~

论坛徽章:
0
5 [报告]
发表于 2009-02-27 13:58 |只看该作者

回复 #4 liaosnet 的帖子

都需要检查那些环境?请兄弟大致说一下

论坛徽章:
11
金牛座
日期:2015-03-19 16:56:22数据库技术版块每日发帖之星
日期:2016-08-02 06:20:00数据库技术版块每日发帖之星
日期:2016-04-24 06:20:00数据库技术版块每日发帖之星
日期:2016-04-13 06:20:00IT运维版块每日发帖之星
日期:2016-04-13 06:20:00数据库技术版块每日发帖之星
日期:2016-02-03 06:20:00数据库技术版块每日发帖之星
日期:2015-08-06 06:20:00季节之章:春
日期:2015-03-27 15:54:57羊年新春福章
日期:2015-03-27 15:54:37戌狗
日期:2015-03-19 16:56:41数据库技术版块每日发帖之星
日期:2016-08-18 06:20:00
6 [报告]
发表于 2009-02-27 15:33 |只看该作者
不熟悉WIN版informix,希望下面的内容对你有帮助..
http://www.ibm.com/developerwork ... _security_subsystem

Could not initialize security subsystem - part 1
A common user error when running command line IDS utilities on Windows is the "Could not initialize security subsystem" error. Below is an example of the kind of email I receive fairly frequently..

      Any idea why I get this error msg? I've set INFORMIXSERVER in system environment. c:\informix> set | find "INF" INFORMIXDIR=C:\informix INFORMIXSERVER=serv1_sec c:\informix> onstat - ERROR: Could not initialize the security subsystem. Please ensure that this acco unt has the necessary privileges and ensure INFORMIXSERVER value exists in the r egistry and environment. How do I fix it ?

The "security subsystem" part of this message is misleading, in that it generally doesn't relate to anything about security from a user perspective. The key part of the message is nearly always "ensure INFORMIXSERVER value exists in the registry and environment".

The way to troubleshoot this error is:

    * echo %INFORMIXSERVER% - does it have the correct value? if not make sure you have run the %INFORMIXDIR%\%INFORMIXSERVER%.cmd script to set your environment correctly.
    * Run regedit and check HKEY_LOCAL_MACHINE/SOFTWARE/Informix/Online/%INFORMIXSERVER% - does it exist? Does it have the Environment, Setup, Security subkeys? If not your IDS instance could be corrupted or installed with a different INFORMIXSERVER value to the one you were expecting. If you suspect corruption, try running the buildreg.exe utility which is part of the ntutils package downloadable from IIUG.

art 2 looks at a more obscure case of this error. Here's an email I received last week:


      I installed a Cygwin environment and a telnet server on our Windows 64-bit machine.
      I can now access the machine and log-in as informix to a nice UNIX-like bash shell.
      
      However I would like to access the informix server from this shell.
      When I have defined INFORMIXDIR/INFORMIXSERVER etc. However I always end up with
      ERROR could not initialize security subsystem.

Since this is usually a problem accessing the Informix part of the registry, my first thought was that this had something to do with Cygwin being 32-bit and not being able to access the 64-bit registry keys under HKEY_LOCAL_MACHINE\Software\Informix. With hindsight this couldn't be the problem, since it would be the 64-bit IDS utilities which access the registry keys, not Cygwin.

Strangely the problem only occurred when connecting via the telnet server. A Cygwin shell executed via Remote Desktop worked fine.

To investigate further, I used the Sysinternals utility Regmon to monitor which registry keys were accessed when the onstat utility was executed via a telnet session. This showed one problem - the Informix environment variables were being set in a "DOS format" environment shell, which added an extra linefeed character at the end of the INFORMIXSERVER environment value. This showed up as a mysterious block at the end of the Registry access string in Regmon.

Once the environment variables were fixed, onstat would still not run in the telnet session. It failed with:


      GLS initialization failed, error -23101

This error is usually indicative of an incorrect DB_LOCALE, CLIENT_LOCALE, SERVER_LOCALE or INFORMIXDIR environment variable. In this case INFORMIXDIR was set as follows:


      export INFORMIXDIR=/cygdrive/C/PROGRA~1/IBM/IBMINF~1/11.10

This was the problem. It was fine to use "/cygdrive/C/PROGRA~1/IBM/IBMINF~1/11.10/bin" in the PATH, but "/cygdrive" did not mean anything to onstat which is unaware of the Cygwin environment. The correct setting for INFORMIXDIR was:


      export INFORMIXDIR=C:/PROGRA~1/IBM/IBMINF~1/11.10

Once this was set, running IDS command line utilities via a Cygwin telnet session worked correctly.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP