linux下卸载DB2

 

Uninstall

After dropping or moving all the instances to different DB2 copies, you can issue the db2_deinstall command to uninstall DB2. It is not allowed to uninstall DB2 when you still have instances defined with this copy.

The db2_deinstall command is located under DB2DIR/install, and it uninstalls DB2 products that are in the same installation path as the db2_deinstall tool.


Example 5

                

%/opt/ibm/db2_v91/install # ./db2_deinstall -a
DBI1016I Program db2_deinstall is performing uninstallation. 
          Please wait.  
The execution completed successfully.
For more information see the DB2 installation log 
"/tmp/db2_deinstall.log.24556".
 

DB2 : 由于某 原因,要卸 DB2 再重新安装的 ,一定要正确的卸 DB2 ,否 不能 行重新安装或安装的 DB2 不可用。
1
、在 linux 上卸 DB2 的一般 程如下所示:
a.
除所有数据 。可以使用 控制中心 drop database 命令 除数据
b.
停止 DB2 管理服 器。
c.
停止 DB2 例。
d.
除去 DB2 管理服 器。
e.
除去 DB2 例。
f.
除去 DB2 品。
下面按照卸 DB2 的一般 明具体卸 载过 程。
2
、停止 DB2 管理服 器:必 要停止 DB2 管理服 器才能在 linux 上卸 DB2 。具体 程如下:
a.
DB2 管理服 器所有者登
b.
db2admin stop 命令停止 DB2 管理服 器。
3
、停止 DB2 例:必 要停止 DB2 例才能在 linux 上卸 DB2 。具体 程如下:
a.
具有 root 户权 限的用
b.
/opt/IBM/db2/V8.1/bin/db2ilist 命令, 取系 上的所有 DB2 例的名称。
c.

d.
想要停止的 例的所有者登
e.CD
到想要停止 例的主目 下,运行启 教脚本: . sqllib/db2profile
d.
db2 force application all 命令来停止所有数据 库应 用程序。
e.
db2stop 命令来停止 DB2 数据 管理器。
f.
可以 db2 terminate 来确 DB2 数据 管理器已停止。
g.
对每 一个要 除的 例重 以上 步骤
4
、出去 DB2 管理服 器:必 出去 DB2 管理服 器才能卸 DB2 ,具体 程如下:
a.
DB2 管理服 器所有者登
b.CD
DB2 管理服 器的主目 下面,运行启 脚本: . das/dasprofile.
c.

d.
root ,通 过输 入命令 /opt/IBM/db2/V8.1/instance/dasdrop 除去 DB2 管理服 器。
5
、除去 DB2 例:可以除去系 上的 例,一旦除去 例, 有的所有 DB2 数据 都将不可用。
a.
过输 /opt/IBM/db2/V8.1/instance/db2idrop db2instname 来除去 例。
6
、以 root 身份登 ,到 DB2 版本 CD-ROM 上的根目 或以前 DB2 文件下找到 db2_deinstall 命令,然后用 db2_deinstall n 命令可以 除所有 DB2

 

 

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值