南通Gbase 8s 详细安装与卸载(Linux版)

一.安装环境说明

二.安装前的准备

创建用户

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

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

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

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

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

检查操作系统是否存在gbasedbt组

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

创建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后,再次查看;gbasedbt的组和用户已经创建成功。 

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

 

三.Gbase 8s安装

准备软件安装包 

https://pan.baidu.com/s/1_d44qrh02SfA-Wfy8cdSyg?pwd=0929

提取码:0929

该文件为Gbase 8s环境安装包.ova文件

操作步骤

将ova 文件下载到本机,打开虚拟机,导入ova文件,启动虚拟系统。

GBase 8s 安装包已经上传到opt目录下,直接安装步骤进行安装即可。

 

 

安装步骤

1.启动linux终端

进入root(管理员)模式

[user@localhost ~]$ su root
密码:
[root@localhost user]#

 密码输入时不显示

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

[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

3.安装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...
Unpackng 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: 

回车继续

meaning or has the conflicting views with  Chinese original text conflict, 
should take the laws and regulations promulgation unit as well as  the 
GeneralData issue Chinese original text as the standard.

All trademarks and registerd trademarks mentioned herein are the  property of 
their respective owners.

DO YOU ACCEPT THE TERMS OF THIS LICENSE AGREEMENT? (Y/N): y

接受License,输入y,按回车开始安装

===============================================================================
Installation Location
---------------------

Choose location for software installation.

  Default Install Folder: /opt/GBASE/gbase

ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE DEFAULT
      : /opt/gbase

 安装程序提示用户输入GBase 8s的安装路径。输入/opt/gbase

INSTALL FOLDER IS: /opt/gbase
   IS THIS CORRECT? (Y/N): y

输入y,确认安装路径 

===============================================================================
Installation or Distribution
----------------------------

Select the installation type.

Typical: Install the database server with all features and a database server 
that
is configurd with default values. Includes:
** Client Software Development Kit (CSDK)
** Jaa Database Connectivity (JDBC)
Minimum disk space requird: 700-800MB

Custom: Install the database server with specific features and software that 
you need.
Optionally install a configurd database server instance.
Minimum disk space requird: 75 MB (without a server instance)

  ->1- Typical installation
    2- Custom installation
    3- Extract the product files (-DLEGACY option)

ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT:: 1

安装程序支持典型安装和自定义安装方式,选择典型安装,输入1 

===============================================================================
Server Instance Creation
------------------------

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:: 2

在安装过程中,可以自动创建一个数据库的实例。由于典型安装中创建的实例在配置上非常简单,不适合后期深入的学习GBase 8s,因此选择不创建实例,在安装后,可以手动执行一个脚本,方便了创建一个新的数据库实例。此处输入2

===============================================================================
Installation Summary
--------------------

Please review the following before continuing:

Product Name:
    GBase Software Bundle

Install Folder:
    /opt/gbase

Product Features:
    GBase database server,
    Base Server,
    Extensions and tools,
    J/Foundation,
    Database extensions,
    Conversion and reversion support,
    XML publishing,
    Demonstration database scripts,
    Enterprise Replication,
    Data loading utilities,
    onunload and onload utilities,
    dbload utility,
    Backup and Restore,
    archecker utility,
    ON-Bar utility,
    Interface to Tivoli Storage Manager,
    Administrative utilities,
    Performance monitoring utilities,
    Miscellaneous monitoring utilities,
    Auditing utilities,
    Database import and export utilities,
    JSON Client Support,
    Global Language Support (GLS),
    Chinese

Disk Space Information (for Installation Target): 
    Requird:  496,188,997 Bytes
    Aailable: 12,496,560,128 Bytes

PRESS <ENTER> TO CONTINUE: 

安装程序给出一个报告,列出了本次将要安装的数据库组件。按回车将继续安装

===============================================================================
Ready To Install
----------------

InstallAnywhere is now ready to install GBase Software Bundle onto your system 
at the following location:

   /opt/gbase

PRESS <ENTER> TO INSTALL: 

 

安装程序再次让用户确认安装程序的位置。我们按回车键,确认安装位置并继续安装

开始安装…

===============================================================================
Installing...
-------------

 [==================|==================|==================|==================]
 [------------------|------------------|------------------|------------------]

===============================================================================
Installation Complete
---------------------


Congratulations! GBase Software Bundle installation is complete.

Product install status:
GBase: Successful
GBase Connect: Successful

Main Version: GBase 8s Express Edition

For more information about using GBase products, see the GBase Information 
Center at http://www.gbase.cn.

PRESS <ENTER> TO EXIT THE INSTALLER: 

安装完成。按回车键退出安装程序

至此,数据库的组件,全部安装完成。再创建一个数据库实例,就可以工作了

4.创建数据库实例

四.Gbase 8s卸载

进入卸载程序的目录
[root@devsvr ~]# cd /opt/gbase/uninstall/uninstall_ids/
[root@devsvr uninstall_ids]# ls
InstallScript.iap_xml  installvariables.properties  removablesList.txt  uninstaller.jar  uninstallids  uninstallids.lax

启动卸载程序,开始卸载GBase 8s

[root@devsvr uninstall_ids]# ./uninstallids
===============================================================================
GBase Software Bundle                            (created with InstallAnywhere)
-------------------------------------------------------------------------------

Preparing CONSOLE Mode Uninstallation...



===============================================================================
Uninstall GBase Software Bundle
-------------------------------

About to uninstall GBase Software Bundle.

In this uninstall process, all GBase Software Bundle products in /opt/gbase 
will be uninstalled.
It is recommended that you first shutdown all database server instances related
to this installation prior to uninstalling the product.

PRESS <ENTER> TO CONTINUE: 

回车继续

===============================================================================
Server Uninstall Options
------------------------

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

ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT:: 2

 需要删除GBase 8s数据库组件和全部的数据库,输入2并回车,GBase 8s数据库卸载成功

清除残余的目录
[root@devsvr uninstall_ids]# cd /opt
[root@devsvr opt]# ls
gbase  rh
[root@devsvr opt]# rm -rf gbase
删除gbasedbt用户
[root@devsvr ~]# userdel -r gbasedbt

GBase 8s 卸载完成。

  • 17
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值