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

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值