linux系统db2数据库停用,DB2学习笔记-0002(Linux系统下卸载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]#

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值