您的位置:首页 > 文档 > 数据库理论 >
 文章分类 

Sybase 11.0.3.3落户FreeBSD [一] 准备工作


创建:2005-10-27 22:53:05
作者:Unlinux
来自: http://www.Unlinux.com


Sybase 11.0.3.3落户FreeBSD [一] 准备工作

作者:薛启康 来源:赛迪网
一、准备工作
  调整内核参数
  如果你的FreeBSD是缺省安装的,为了在FreeBSD下运行Sybase11.0.3.3,那么很可能你要重新编译自己的内核。这是因为缺省情况下,核心提供给Linux使用的最大内存空间不能满足运行Sybase的需要。笔者在安装过程中发现,配置完SQL Server后,服务器无法启动,于是查看了安装日志(见例1):

  00:2001/01/08 09:41:28.02 kernel Max fd 1064 exceeds internal limit of 1024

  00:2001/01/08 09:41:28.18 kernel Using config area from primary master device.

  00:2001/01/08 09:41:28.18 kernel Configuration Error: Configuration file, '/usr/opt/sybase/sybase/SYBASE.cfg',does not exist.

  00:2001/01/08 09:41:28.19 kernel Warning: A configuration file was not specified and the default file '/usr/opt/sybase/sybase/SYBASE.cfg' does not exist. SQL Server creates the default file with the default configuration.

  00:2001/01/08 09:41:28.19 kernel os_create_region: can't allocate 11665408 bytes

  00:2001/01/08 09:41:28.19 kernel kbcreate: couldn't create kernel region.

  00:2001/01/08 09:41:28.19 kernel kistartup: could not create shared memory

  很明显:现在的内核无法分配启动SQL服务器所需的足够内存,所以要对核心参数进行调整。

  调整FreeBSD核心参数的过程
  # cd /usr/src/sys/i386/config

  # vi MyKernel (我的核心名为MyKernel,你应该编辑GENERIC这个文件)

  在文件中加入如下内容:

  options SHMMAXPGS=200000

  options SHMMNI=100

  options SHMSEG=10

  options SEMMNS=200

  options SEMMNI=70

  options SEMMSL=61

  存盘退出

  # /usr/sbin/config MyKernel

  #cd ../../compile/MyKernel

  # make depend

  #make

  #make install

  OK,至此完成核心的编译与安装。

  重新启动机器,如果你编译的核心不能显示正确的提示,请键入命令:

  kernel.old

  系统将以老的核心再启动你的FreeBSD系统。
来源:共创软件同盟

转载自:http://www.unlinux.com/doc/database/20051027/5328.html

评论】 【加入收藏夹】 【 】 【打印】 【关闭
 *  请尊重我们的劳动,转载请注明出自UnLinux.Com及作者名 * 

※ 相关链接
 ·Sybase 11.0.3.3落户FreeBSD [三] 下载软件及解压  (2005-10-27 22:53:05)
 ·Sybase 11.0.3.3落户FreeBSD [四] 使用数据库  (2005-10-27 22:53:05)
 ·Linux上Sybase ASE11.9.2的安装、配置与使用之新手上路篇(Z)  (2005-10-27 22:03:28)

Copyright © 2005 UnLinux.Com All Rights Reserved