ITeye博客

Uninstalling your DB2 product (Linux and UNIX)

JackyCheng2007 · 2010-06-22 13:59 · DB · 数据库 · Java · DB2 · Unix · IBM · Linux · Markdown

To remove your DB2 product:

  1. Optional: Drop all databases. You can drop databases using the Control Center (on Linux platforms only) or the drop database command. Database files remain intact on your file systems when you drop an instance without dropping databases first.
  2. Stop the DB2 Administration Server.
/opt/ibm/db2/V9.1/das/bin/db2admin stop
  1. Remove the Administration Server.
/opt/ibm/db2/V9.1/instance/dasdrop
  1. Stop DB2 instances.
db2 db2stop
  1. Remove DB2 instances.
/opt/ibm/db2/V9.1/instance/db2idrop db2inst1
  1. Remove DB2 products.
/opt/ibm/db2/V9.1/install/db2_deinstall -a
  1. Remove db2 users
cat /etc/passwd
       userdel -r db2inst1
       userdel -r db2fenc1
       userdel -r dasusr1
  1. Remove db2 user groups
cat /etc/group
       groupdel dasadm1
        groupdel db2grp1
        groupdel db2fgrp1

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。