ITPub博客

首页 > 应用开发 > IT综合 > Altibase 安装过程

Altibase 安装过程

原创 IT综合 作者:feimei 时间:2008-04-02 17:24:15 0 删除 编辑

* UNIX / LINUX 操作系统
1. 安装 Altibase 的服务器上创建操作系统用户 (如, altibase)。

修改内核参数

- SEMMNI: The maximum number of semaphore which can be
used simultaneously in a system.
- SEMMNS: The total number of semaphores in a system.
- SEMMSL: The maximum number of semaphores in a
semaphore set.
- SEMOPM: The maximum number of operations upon calling
semaphores in the system.
- SEM-VMX: The maximum value of semaphore.
- SHMMAX: The maximum size of a shared memory segment.
- SHMMIN: The minimum size of a shared memory segment.
- SHMMNI: The maximum number of shared memory segments.
- SHMSEG: The maximum number of shared memory segments
which can connect to a process.

如:

set shmsys:shminfo_shmmax should be greater than
Size> and allocation count*32>.
set shmsys:shminfo_shmmin = 1
set shmsys:shminfo_shmmni = 500
set shmsys:shminfo_shmseg = 200
set semsys:seminfo_semmns = 8192
set semsys:seminfo_semmni = 5029
set semsys:seminfo_semmsl = 2000
set semsys:seminfo_semmap = 5024
set semsys:seminfo_semmnu = 1024
set semsys:seminfo_semopm = 512
set semsys:seminfo_semume = 512
set priority_paging = 1 (Available SunOS5.7
only)

2. 新创建的用户下创建altibase home 目录 (如, altibase_home),并在此目录下解开已下载的安装包。
gzip -cd *.tgz | tar xvf -

3. 新创建的用户下添加以下环境变量。
CSH : setenv ALTIBASE_HOME/altibase_home
SH : ALTIBASE_HOME=$HOME/altibase_home; exportALTIBASE_HOME

4. 添加以下 PATH.
CSH : setenv PATH.:$ALTIBASE_HOME/bin:$PATH
SH : PATH=$ALTIBASE_HOME/bin:$PATH ;export PATH

5. 添加以下 LD_LIBRARY_PATH.
CSH : setenv LD_LIBRARY_PATH.:$ALTIBASE_HOME/lib:$LD_LIBRARY_PATH
SH : LD_LIBRARY_PATH=$ALTIBASE_HOME/lib:$LD_LIBRARY_PATH ;export LD_LIBRARY_PATH

6. 把 License Key 写入到 $ALTIBASE_HOME/conf/license 文本文件并存储。
(NOTE: 没有扩展名,只是'license')

--------------------------------------------------------------------------------------

****************************
ALTIBASE 数据库简单应用
****************************

1. 创建并启停数据库。
Altibase 提供创建并启停数据库德脚本。
$ server
Usage: /home/lmx/altibase_home/bin/server { start | stop | kill | status | create | restart }
创建数据库
$ server create

$ server create
[ERR-50032 : Client unable to establish connection]
-----------------------------------------------------------------
Altibase Client Query utility.
Release Version 4.3.9.105
Copyright 2000, ALTIBASE Corporation or its subsidiaries.
All Rights Reserved.
-----------------------------------------------------------------
ISQL_CONNECTION = TCP, SERVER = 127.0.0.1, PORT_NO = 20300
Trying connect to database server. Connected with database server.


TRANSITION TO PHASE : PROCESS
Expired at 2008-06-28.Command execute success.

DB Info (Page Size = 32768)
(Page Count = 385)
(Total DB Size = 12615680)
(DB File Size = 1073741824)

Creating MMDB FILES [SUCCESS]

Creating Catalog Tables [SUCCESS]

Creating DRDB FILES [SUCCESS]

[SM] Rebuilding Indices [Total Count:0] **** [SUCCESS]

DB Writing Completed. All Done.

Create success.
Alter success.
Alter success.
Alter success.
Database server killed..

备注:

启动数据库
$ server start

安装过程还是非常简单

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/96123/viewspace-1001806/,如需转载,请注明出处,否则将追究法律责任。

上一篇: 内存数据库
请登录后发表评论 登录
全部评论
  • 博文量
    12
  • 访问量
    117771