sybase参数设置

      昨天刚刚改完数据库的最大连接数,今天发现系统登陆不上去,找了大半天的原因,终于找到了,可惜不会弄,找来同事帮忙,问题解决了。在此,还真得感谢同事的热心帮助。

     服务起不来,在应用程序事件查看器中发现有如下错误:

300122: The value of the 'max memory' parameter (23552) defined in the configuration file is not high enough to set the other parameter values specified in the configuration file. 'max memory' should be greater than the 'total logical memory' '25106'.

       原因分析:在更改完用户最大连接数后,没有及时调整数据库的最大内存。因为每个用户连接都需要一定的内存。

      解决方法:

      1、在sybase安装根目录下找到当前数据库服务器的.cfg配置文件。

      2、将[User Environment]节下的number of user connections的值改为原来的默认值(50),重新启动计算机后,数据库服务就能起来了。

     3、如果想重新设置用户最大连接数,先找到[Physical Memory]节下的max memory,修改该值,使适合新的用户连接数所需要的值。再更改最大用户连接数。

    4、这样问题就全部解决了。

     5、其它

    主要修改参数为:
    [Disk I/O]
    number of devices=20
   [Physical Memory]
    total memory = 512000 ##数据库可用物理内存,以2k为单位
    [Processors]
     max online engines=2 ##CPU数

    

你可能感兴趣的:(数据库,user,File,Sybase,disk,数据库服务器)