GBase 8s 事务型数据库的安装与卸载详情

这篇博客详细记录了GBase 8s数据库在CentOS 7.3上的安装过程,包括环境检查、用户创建、安装组件、创建数据库实例、设置环境变量、数据库状态查看及启停操作。同时,还介绍了如何验证数据库功能及卸载数据库组件和数据,确保完全清理系统。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

GBase 8s 事务型数据库的安装与卸载详情

最近学习了一款事务型数据库 GBase 8s。下面记录了GBase 8s 数据库的安装信息,分享给大家。

一、安装环境说明

GBase 8s是一款典型的事务型数据库,类似于Oracle,MySQL等。这款数据库对安装环境要求不高,完全可以在虚拟机上安装和学习,甚至有版本可以部署到嵌入式环境中。
GBase 8s的硬件安装要求:

硬件 指标
CPU 2核或以上
内存 2G或以上
磁盘 10G或以上
网卡 千兆

安装环境,是一台VMWare虚拟机,2核CPU,2G内存,千兆网卡,预分配了20G的磁盘空间。

GBase 8s的数据库组件安装完成后,大约有500M,但存储物理日志,逻辑日志,智能大对象,临时数据和事务数据都需要使用磁盘存储空间,建议至少有10G以上的磁盘空闲空间。

安装的操作系统CentOS 7.3。在安装时,选择的是开发和创新工作站(不是最小安装),安装后,大概有1500多个rpm包。安装后,关闭了SELinux和防火墙。

1.检查服务器内存大小

[root@devsvr ~]# free -m
              total        used        free      shared  buff/cache   available
Mem:           1823         531         816           9         475        1079
Swap:          2047         125        1922

2.检查服务器磁盘空间大小

[root@devsvr ~]# df -h
Filesystem           Size  Used Avail Use% Mounted on
/dev/mapper/cl-root   17G  4.7G   13G  28% /
devtmpfs             897M     0  897M   0% /dev
tmpfs                912M  144K  912M   1% /dev/shm
tmpfs                912M  9.0M  903M   1% /run
tmpfs                912M     0  912M   0% /sys/fs/cgroup
/dev/sda1           1014M  174M  841M  18% /boot
tmpfs                183M   24K  183M   1% /run/user/0
/dev/sr0             7.8G  7.8G     0 100% /run/media/root/CentOS 7 x86_64

3.检查服务器网络配置信息

[root@devsvr ~]# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.3.8  netmask 255.255.255.0  broadcast 192.168.3.255
        inet6 fe80::3c21:b180:c110:a31c  prefixlen 64  scopeid 0x20<link>
        ether 00:50:56:31:8f:de  txqueuelen 1000  (Ethernet)
        RX packets 333491  bytes 336973337 (321.3 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 9166  bytes 1394812 (1.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 3996  bytes 324346 (316.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3996  bytes 324346 (316.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:90:0c:05  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

4.检查操作系统版本

[root@devsvr ~]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core) 

二、安装前的准备工作

1.创建用户

GBase 8s数据库需要一个名字为gbasedbt的操作系统用户,做为数据库的超级用户。我们在安装前,需要创建好这个用户。

如果我们在安装时,没有提前创建这个用户,在安装过程中,会提示要创建这个用户,并输入密码。不过在安装过程中创建的用户,没有创建一个新的目录做为gbasedbt的Home,这可能导致在后续的创建数据库实例时,无法自动生成实例的环境变量。

为了减少后面的麻烦,记得提前创建gbasedbt用户,并设置好密码。切记切记,这一点对于初学者很重要。

检查操作系统是否存在gbasedbt用户

[root@devsvr ~]# cat /etc/passwd | grep gbasedbt
[root@devsvr ~]# 

检查操作系统是否存在gbasedbt组
[root@devsvr ~]# cat /etc/group | grep gbasedbt
[root@devsvr ~]#
创建gbasedbt组和用户,并设置用户密码

[root@devsvr ~]# useradd gbasedbt
[root@devsvr ~]# passwd gbasedbt
Changing password for user gbasedbt.
New password: ******
BAD PASSWORD: The password is a palindrome
Retype new password: ******
passwd: all authentication tokens updated successfully.

创建gbasedbt后,再次查看

[root@devsvr ~]# cat /etc/group | grep gbasedbt
gbasedbt:x:1001:
[root@devsvr ~]# cat /etc/passwd | grep gbasedbt
gbasedbt:x:1001:1001::/home/gbasedbt:/bin/bash
[root@devsvr ~]#

gbasedbt的组和用户已经创建成功。

2.准备软件安装包

上传GBase 8s安装包到服务器。

[root@devsvr ~]# ls /root/setup/
GBase8s_ExpressEdition.tar

创建一个目录,将安装包解压到该目录

[root@devsvr ~]# mkdir install
[root@devsvr ~]# cd install/
[root@devsvr install]# tar xf /root/setup/GBase8s_ExpressEdition.tar 
[root@devsvr install]# ls
doc  ids_install  ids.properties  onsecurity

至此,安装数据库需要的软件包和用户都准备好了。

三、安装GBase 8s

1.安装GBase 8s数据库组件

GBase 8s数据库安装,支持图形界面方式和控制台的命令行方式。默认的安装方式是控制台命令行方式。如果希望使用图形界面安装,只需要在启动安装程序时,后面加上参数./ids_install -i swing即可。

安装过程中,会显示产品的License,内容较长,在控制台的命令行方式中,可以连续按5次回车。在图形界面方式中,需要用鼠标拉动界面右侧的滚动条到底部,就可以点那个复选框,确认License了。

我们在root用户下,进入安装包目录,运行安装命令ids_install,启动安装程序。

[root@devsvr install]# ./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...

Launching installer...

===============================================================================
GBase Software Bundle                            (created with InstallAnywhere)
-------------------------------------------------------------------------------

Preparing CONSOLE Mode Installation...

===============================================================================
Getting Started
---------------

This application  will guide you through the installation of GBase Software 
Bundle.
Copyright General Data Corporation 2014, 2021. All rights reserved.

1. Release Notes
The Release Notes can be found in 
/root/install/doc/ids_unix_relnotes_12.10.html.
2. Launch Information Center
Access the GBase Information Center at http://www.gbase.cn.
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'.

PRESS <ENTER> TO CONTINUE: 

回车继续,

===============================================================================
License Agreement
-----------------

Installation and Use of GBase 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.

1. LICENSE TO USE. GeneralData grants you a non-exclusive and non-transferable 
license for  the internal use only of the accompanying software and 
documentation and any error corrections  provided by GeneralData(collectively 
"Software"), by the number of users and the class of  computer hardware for 
which the corresponding fee has been paid.

2. RESTRICTIONS. Software is confidential and copyrighted. Title to Software 

PRESS <ENTER> TO CONTINUE: 

回车继续,

and all  associated intellectual property rights is retained by GeneralData 
and/or its licensors. Except as  specifically authorized in any Supplemental 
License Terms, you may not make copies of Software,  other than a single copy 
of Software for archival purposes. Unless enforcement is prohibited by  
applicable law, you may not modify, decompile, or reverse engineer Software. 
You acknowledge  that Software is not designed, licensed or intended for use in
the design, construction, operation  or maintenance of any nuclear facility. 
GeneralData disclaims any express or implied warranty  of fitness for such 
uses. No right, title or interest in or to any trademark, service mark, logo or
trade name of GeneralData or its licensors is granted under this Agreement.

3. DISCLAIMER OF WARRANTY. Unless specified in this agreement, all express of 
implied  conditions, representations and warranties, including any implied 
warranty of merchantability,  fitness for aparticular purpose or 
non-infringement are disclaimed, except to theextent that  these disclaimers 
are held to be legally invalid.

4. LIMITATION OF LIABILITY. To the extent not prohibited by law, in no event 
will GeneralData  or its licensors be liable for any lost revenue, profit or 
data, or for special, indirect,  consequential, incidental orpunitive damages, 
however caused regardless of the theory of liability,  arising out of or 
related to the use of or inability to use software, even if GeneralData has 

PRESS <ENTER> TO CONTINUE: 

回车继续,

been  advised of the possibility of such damages. In no event will 
GeneralData's libility to you, whether  incontract, tort(including negligence),
or otherwise, exceed the amount paid by you for Software  under this Agreement.
The foregoing limitations 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值