当前位置:数据库 > SYBASE >>

Sybase11.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系统。

(作者:薛启康)

上一个:MySQL初学者使用指南
下一个:Oracle 9i 在Red Hat Linux 7.3下的安装

Oracle
MySQL
Access
SQLServer
DB2
Excel
SQLite
SYBASE
Postgres
如果你遇到数据库难题:
请访问www.zzzyk.com 试试
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,