您的位置:首页 > 运维架构 > Linux

DB2学习笔记-0002(Linux系统下卸载DB2数据库软件)

2012-07-23 18:52 585 查看
分类: DB2

Linux系统下卸载DB2数据库软件

--说明:DB2安装文件放在/root/IBMDB2/server/目录,DB2数据库软件安装在/opt/ibm/db2/V9.7/目录。

--默认创建的实例是db2inst1,未建立数据库。

打开终端。

[root@localhost ~]#/opt/ibm/db2/V9.7/bin/db2ilist,查看DB2实例的名称。

db2inst1

[root@localhost ~]#su - db2inst1,切换至db2inst1实例。

[db2inst2@localhost ~]$db2stop,停止实例。

11/23/2011 18:08:08 0 0 SQL1064N DB2STOP processing was successful.

SQL1064N DB2STOP processing was successful.

[db2inst2@localhost ~]$su - dasusr1,切换至服务管理器。

Password: --输入密码

[dasusr1@localhost ~]$db2admin stop,停止服务管理器。

SQL4407W The DB2 Administration Server was stopped successfully.

[dasusr1@localhost ~]$su root,切换至root用户。

Password: --输入密码

[root@localhost dasusr1]#cd /opt/ibm/db2/V9.7/,cd到DB2软件安装目录。

[root@localhost V9.7]#cd instance/

[root@localhost instance]#./dasdrop,删除服务管理器。

SQL4407W The DB2 Administration Server was stopped successfully.

DBI1070I Program dasdrop completed successfully.

[root@localhost instance]#./db2idrop db2inst1,删除db2inst1实例。

DBI1070I Program db2idrop completed successfully.

[root@localhost instance]#cd /root/IBMDB2/server/,cd到DB2安装文件所在目录。

[root@localhost server]#ls

db2 db2_deinstall db2ls db2setup installFixPack

db2ckupgrade db2_install db2prereqcheck doc

[root@localhost server]#./db2_deinstall -a,卸载DB2软件。

Enter full path name for the install directory -

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

/opt/ibm/db2/V9.7/ --输入DB2软件安装目录。

DBI1016I Program db2_deinstall is performing uninstallation.Please

wait.

The execution completed successfully.

For more information see the DB2 uninstallation log at

"/tmp/db2_deinstall.log.21731".

[root@localhost server]#

成功删除数据库软件后,然后在操作系统分别删除用户组和用户即可。

出处:http://blog.csdn.net/shine_life/article/details/7006358
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: