linux下卸载DB2

来源:互联网 发布:淘宝家装日记在哪里 编辑:程序博客网 时间:2024/04/28 04:50
 

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 -aDBI1016I 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