GBASE南大通用技术分享:GBase 8s数据库卸载
卸载GBase 8s数据库组件与数据
GBase 8s提供了一个卸载程序,用于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并回车。
卸载程序开始运行
===============================================================================
Uninstalling...
---------------
...*
*
*************************
*************************
*************************
************************
...*
*
*************************
*************************
*************************
************************
...*
*
*************************
*************************
*************************
************************
...*
*
*************************
*************************
*************************
*************************
===============================================================================
Uninstall Complete
------------------
Uninstall is complete for GBase Software Bundle.
Product uninstall status:
GBase: Successful
GBase 8s数据库卸载成功。
GBASE南大通用技术分享:清除残余的目录
由于卸载程序在GBase 8s的安装目录中,因此卸载程序并没有完成清空安装目录,需要我们手动清除。
[root@devsvr uninstall_ids]# cd /opt
[root@devsvr opt]# ls
gbase rh
[root@devsvr opt]# rm -rf gbase
GBASE南大通用技术分享:删除gbasedbt用户
执行userdel,删除用户。
[root@devsvr ~]# userdel -r gbasedbt
检查确认用户和组是否删除。
至此,GBase 8s 卸载完成。