GBase 8t V8.7 安装手册
GBase 8t V8.7
安装手册
GBase 8t V8.7 7 安装手册,南大通用数据技术股份有限公司
e GBase 版权所有©2018,保留所有权利。
版权声明
本文档所涉及的软件著作权及其他知识产权已依法进行了相关注册、登记,由南
大通用数据技术股份有限公司合法拥有,受《中华人民共和国著作权法》、《计算机
软件保护条例》、《知识产权保护条例》和相关国际版权条约、法律、法规以及其它
知识产权法律和条约的保护。未经授权许可,不得非法使用。
免责声明
本文档包含的南大通用公司的版权信息由南大通用公司合法拥有,受法律的保
护,南大通用公司对本文档可能涉及到的非南大通用公司的信息不承担任何责任。在
法律允许的范围内,您可以查阅,并仅能够在《中华人民共和国著作权法》规定的合
法范围内复制和打印本文档。任何单位和个人未经南大通用公司书面授权许可,不得
使用、修改、再发布本文档的任何部分和内容,否则将视为侵权,南大通用公司具有
依法追究其责任的权利。
本文档中包含的信息如有更新,恕不另行通知。您对本文档的任何问题,可直接
向南大通用数据技术股份有限公司告知或查询。
通讯方式
南大通用数据技术股份有限公司
天津华苑产业区海泰发展六道 6 号海泰绿色产业基地 J 座(300384)
电话:400-013-9696 邮箱:info@gbase.cn
商标声明
是南大通用数据技术股份有限公司向中华人民共和国国家商标局申
请注册的注册商标,注册商标专用权由南大通用公司合法拥有,受法律保护。未经南
大通用公司书面许可,任何单位及个人不得以任何方式或理由对该商标的任何部分进
行使用、复制、修改、传播、抄录或与其它产品捆绑使用销售。凡侵犯南大通用公司
商标权的,南大通用公司将依法追究其法律责任。
目 录
安装
2.1 安装准备
在启动安装过程之前,必须准备系统以确保您有足够权限来执行安装。
您必须以 root 用户身份登录才能执行许多与安装有关的任务。
将产品安装光盘插入光驱,取出光盘中 Setup 目录下的文件,复制到本地
目录。Setup 目录中包含 GBase 8t 产品的安装包文件,该文件通常是形如
GBase8tV8.7.12.10.FC4G1TL_1.6.3.12.RHEL6_x86.tar 的压缩文件,在本手册
中,以 GBase8tV8.7.12.10.FC4G1TL_1.6.3.12.RHEL6_x86.tar 为例进行安装说
明。
解压该 tar 包,解压命令为:tar –vxf filename.tar
[root@PC-TEST gbt]# tar -vxf GBase8tV8.7.12.10.FC4G1TL_1.6.3.12.RHEL6_x86.tar
ids_install
onsecurity
doc/
doc/ids_machine_notes_12.10.txt
ids.properties
2.2 执行安装
执行安装脚本 ids_install,即可进行安装,具体命令如下:
[root@PC-TEST gbt]# sh ids_install
执行安装过程中,安装程序先检查系统环境,如果系统没有安装 JDK,那么
安装包会先解压 JDK,自动安装到该系统中。如果已经安装,那么将显示产品的
授权条款,并等待确认是否授受这些版权条款。
具体安装过程示例如下:
[root@PC-TEST gbt]# ./ids_install
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
This application will guide you through the installation of GBase 8t V8.7
Software Bundle.
Copyright GBASE Corporation 2004, 2015. All rights reserved.
To Begin Installation,Respond to each prompt to proceed to the next step in the
installation.If you want to change something on a previous step, type 'back'.
You may cancel this installation at any time by typing 'quit'.
GBase 8t V8.7 安装手册
南大通用数据技术股份有限公司 4
Installation and Use of GBase 8t V8.7 Software Bundle Requires Acceptance of
the Following License Agreement:
Thank you for choosing GBase product!
Please read carefully the following licencing agreement before installing any
product: TIANJIN GENERAL DATA TECHNOLOGY CO. LTD. LICENSE AGREEMENT
READ THE TERMS OF THIS AGREEMENT AND ANY PROVIDED SUPPLEMENTAL LICENSETERMS
(COLLECTIVELY "AGREEMENT") CAREFULLY BEFORE OPENING THE SOFTWAREMEDIA PACKAGE.
BY OPENING THE SOFTWARE MEDIA PACKAGE, YOU AGREE TO THE TERMS OF THIS
AGREEMENT. IF YOU ARE ACCESSING THE SOFTWARE ELECTRONICALLY, INDICATE YOUR
ACCEPTANCE OF THESE TERMS. IF YOU DO NOT AGREE TO ALL THESE TERMS, PROMPTLY
RETURN THE UNUSED SOFTWARE TO YOUR PLACE OF PURCHASE FOR A REFUND.
指定安装路径
根据界面提示输入安装路径 /opt/GBase8t,输入”Y”并回车,确认安装目
Choose location for software installation
Default Install Folder:
ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE DEFAULT
: /opt/GBase8t
INSTALL FOLDER IS: /opt/GBase8t
IS THIS CORRECT? (Y/N): Y
Select the installation type.
Typical: Install the database server with all features and a database server
that
is configured with default values. Includes:
** Client Software Development Kit (CSDK)
** Java Database Connectivity (JDBC)
Minimum disk space required: 700-800MB
Custom: Install the database server with specific features and software that
GBase 8t V8.7 安装手册
南大通用数据技术股份有限公司 8
you need.
Optionally install a configured database server instance.
Minimum disk space required: 75 MB (without a server instance)
->1- Typical installation
2- Custom installation
3- Extract the product files (-DLEGACY option)
4- Create a RPM package for redistribution
ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT::
使用默认安装选项 1,直接回车,进行典型安装。
选择数据库用户数
Create a server instance?
->1- Yes - create an instance
2- No - do not create an instance
ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT::
->1- 1 - 100
2- 101 - 500
3- 501 - 1000
4- 1000+
ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT::
InstallAnywhere is now ready to install GBase 8t V8.7 Software Bundle onto your
system at the following location:
/opt/GBase8t
[==================|==================|==================|===============]
The server will now be initialized. Initialization might take quite a while,
depending on the performance of your computer.
GBase 8t V8.7 安装手册
南大通用数据技术股份有限公司 10
PRESS <ENTER> TO CONTINUE:
安装后会提示将进行数据库实例的初始化,按回车继续。
A database server instance was created. If you chose to initialize the
instance, it is ready to use.
You can open a command prompt to an initialized instance by running one of the
following commands at /opt/GBase8t, where ol_informix1210_1 is the path or
filename of the instance.
Windows:
ol_informix1210_1.cmd
UNIX csh:
source ol_informix1210_1.csh
UNIX ksh or bourne:
./ol_informix1210_1.ksh
If initialization fails, check the online.log file for messages. The instance's
root chunk must be owned by the correct user and group, and it must have
readable and writable (rw) permission bits set only for owner and group.
PRESS <ENTER> TO CONTINUE:
The installation of GBase 8t V8.7 Software Bundle is complete.
Please see the installation log for details. Click 'Done' to exit the
installation process.
Product install status:
GBase 8t V8.7: Successful
For more information about using GBase 8t V8.7 products, see the GBASE Company
website at www.gbase.cn .
PRESS <ENTER> TO EXIT THE INSTALLER:
2.3 配置环境变量
在使用 GBase 8t 数据库服务前需要设置几个环境变量,可以以 informix
身份运行 GBase 8t 安装目录下的 ol_informix1210.ksh,或者把 GBase 8t 安
装目录下的 ol_informix1210.ksh 文件的内容追加到 informix 用户主目录下
的 .bash_profile 文件中,以便于 informix 用户在登录后即自动应用这些环境
变量。
如果要把GBase 8t安装目录下的 ol_informix1210.ksh文件的内容追加到
informix 用户主目录下的 .bash_profile 文件中,可以执行以下命令:
[root@PC-TEST GBase8t]# cd /opt/GBase8t/
[root@PC-TEST GBase8t]# cat ol_informix1210.ksh >> /home/informix/.bash_profile
2.4 设置服务自启动
如果希望 GBase 8t 数据库服务在操作系统启动时自动启动,可以在
/etc/rc.local 文件中加入相关命令实现,以本文使用的安装环境描述如下。
GBase 8t V8.7 安装手册
南大通用数据技术股份有限公司 12
以 root 身份登录到操作系统,修改 /etc/rc.local 文件,在文件中加入
如下语句:
su - informix -c "source /opt/GBase8t/ol_informix1210.ksh &&
/opt/GBase8t/bin/oninit -y"
上面命令中,/opt/GBase8t 为前文示例中指定的 GBase 8t 数据库服务的
安装路径。
使用 t GBase 8t 数据库
3.1 启动/ / 停止数据库服务
通常情况下,使用 informix 用户来启动和停止数据库服务。
成功安装数据库 GBase 8t 后,数据库会自动处于启动状态,可通过以下命
令检查服务进程是否存在:
[root@PC-TEST GBase8t]# ps -ef|grep oninit
root 6239 2605 0 09:58 pts/0 00:00:00 grep oninit
informix 6618 1 0 09:10 ? 00:00:07 /opt/GBase8t/bin/oninit -ivwy
root 6619 6618 0 09:10 ? 00:00:00 /opt/GBase8t/bin/oninit -ivwy
root 6620 6619 0 09:10 ? 00:00:00 /opt/GBase8t/bin/oninit -ivwy
root 6621 6619 0 09:10 ? 00:00:00 /opt/GBase8t/bin/oninit -ivwy
root 6622 6619 0 09:10 ? 00:00:01 /opt/GBase8t/bin/oninit -ivwy
root 6623 6619 0 09:10 ? 00:00:00 /opt/GBase8t/bin/oninit -ivwy
root 6624 6619 0 09:10 ? 00:00:00 /opt/GBase8t/bin/oninit -ivwy
root 6625 6619 0 09:10 ? 00:00:00 /opt/GBase8t/bin/oninit -ivwy
root 6704 6619 0 09:11 ? 00:00:00 /opt/GBase8t/bin/oninit -ivwy
切换到 informix 用户后,输入 onmode –ky,可停止数据库服务,示例如
下:
[informix@PC-TEST ~]$ onmode -ky
[informix@PC-TEST ~]$ ps -ef|grep oninit
informix 6444 6418 0 10:54 pts/0 00:00:00 grep oninit
输入 oninit –vy,启动数据库服务,示例如下:
[informix@PC-TEST ~]$ oninit -vy
Warning: Parameter's user-configured value was adjusted. (DS_MAX_SCANS)
Warning: Parameter's user-configured value was adjusted. (ONLIDX_MAXMEM)
Reading configuration file
'/opt/GBase8t/etc/onconfig.ol_informix1210'...succeeded
Creating /INFORMIXTMP/.infxdirs...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 8310 kbytes...succeeded
Creating infos file "/opt/GBase8t/etc/.infos.ol_informix1210"...succeeded
Linking conf file "/opt/GBase8t/etc/.conf.ol_informix1210"...succeeded
Initializing rhead structure...rhlock_t 16384 (512K)... rlock_t (5312K)...
Writing to infos file...succeeded
Initialization of Encryption...succeeded
Initializing ASF...succeeded
Initializing Dictionary Cache and SPL Routine Cache...succeeded
Bringing up ADM VP...succeeded
Creating VP classes...succeeded
Forking main_loop thread...succeeded
Initializing DR structures...succeeded
Forking 1 'soctcp' listener threads...succeeded
Forking 1 'soctcp' listener threads...succeeded
Forking 1 'soctcp' listener threads...succeeded
Starting tracing...succeeded
Initializing 2 flushers...succeeded
Initializing SDS Server network connections...succeeded
Initializing log/checkpoint information...succeeded
Initializing dbspaces...succeeded
Opening primary chunks...succeeded
Validating chunks...succeeded
Initialize Async Log Flusher...succeeded
Starting B-tree Scanner...succeeded
Init ReadAhead Daemon...succeeded
Init DB Util Daemon...succeeded
Initializing DBSPACETEMP list...succeeded
GBase 8t V8.7 安装手册
南大通用数据技术股份有限公司 14
Init Auto Tuning Daemon...succeeded
Checking database partition index...succeeded
Initializing dataskip structure...succeeded
Checking for temporary tables to drop...succeeded
Updating Global Row Counter...succeeded
Forking onmode_mon thread...succeeded
Creating periodic thread...succeeded
Creating periodic thread...succeeded
Starting scheduling system...succeeded
Verbose output complete: mode = 5
输入 ps -ef|grep oninit 检查数据库服务进程是否存在:
[informix@PC-TEST ~]$ ps -ef|grep oninit
informix 6452 1 6 10:58 ? 00:00:04 oninit -vy
root 6454 6452 0 10:58 ? 00:00:00 oninit -vy
root 6455 6454 0 10:58 ? 00:00:00 oninit -vy
root 6456 6454 0 10:58 ? 00:00:00 oninit -vy
root 6457 6454 0 10:58 ? 00:00:00 oninit -vy
root 6458 6454 0 10:58 ? 00:00:00 oninit -vy
root 6459 6454 0 10:58 ? 00:00:00 oninit -vy
root 6460 6454 0 10:58 ? 00:00:00 oninit -vy
root 6461 6454 0 10:58 ? 00:00:00 oninit -vy
informix 6477 6418 0 10:59 pts/0 00:00:00 grep oninit
3.2 登录数据库
输入 su - informix 切换到 informix 用户,在 informix 用户下输入
dbaccess - -命令进入数据库命令行模式,示例如下:
[root@PC-TEST GBase8t]# su - informix
[informix@PC-TEST ~]$ dbaccess - -
3.3 创建数据库
在 dbaccess 交互命令行中,执行如下 SQL 语句,创建数据库,示例如下:
[informix@PC-TEST ~]$ dbaccess - -
create database gbase8t;
Database created.
卸载 GBase 8t
当用户需要卸载 GBase 8t 数据库系统时,需要先停止数据库服务,切换到
root 用户,进入安装程序目录下的 uninstall/uninstall_ids,执行该目录下
的 uninstallids 命令进行卸载。
卸载程序开始后,选择 2 并回车,删除所有相关联的数据库文件,示例如
下:
About to uninstall GBase 8t V8.7 Software Bundle.
In this uninstall process, all GBase 8t V8.7 Software Bundle products in
/opt/GBase8t will be uninstalled.
It is recommended that you first shutdown all Informix database server
GBase 8t V8.7 安装手册
南大通用数据技术股份有限公司 16
instances related to this installation prior to uninstalling the product.
Server action:
Important: Choosing to remove all databases will remove all database chunks,
environment files, registry entries, and message log files for all database
server instances associated with this installation.
->1- Retains all databases, but removes all server binaries
2- Removes server binaries and all databases associated with them
...*
*
...*
*
...*
*
...*
*
...*
*
...*
*
=======================================================================
Uninstall Complete
GBase 8t V8.7 安装手册
Uninstall is complete for GBase 8t V8.7 Software Bundle.
Product uninstall status:
GBase 8t V8.7: Successful
如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!
赞1
添加新评论3 条评论
2022-11-03 15:46
2022-11-02 09:46
2022-11-01 17:00