Steps for detaching A DB2 database in Linux

Source: Internet
Author: User

To uninstall a DB2 database in Linux:

1. Remove DB [delete database first]
(1) su-db2inst1
(2) db2 list db directory
(3) db2 drop db <db name>


2. Remove Instance [Delete Instance]
(1) su-root
(2) cd <db2 dir>/instance
(3)./db2ilist
(4)./db2idrop-f <instance name>


3. Remove das [Delete das]
(1) su-root
(2) cd <db2 dir>/instance
(3)./daslist
(4)./dasdrop <das user>


4. Uninstall [Uninstall]
(1) su-root
(2) cd <db2 dir>/install
(3)./db2_deinstall-


5. Remove user (db2inst1, db2fenc1, dasusr1) [delete user and user Group]
(1) userdel-r <username>
(2) groupdel-r <groupname>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.