Uninstall DB2 on Windows and Aix

Source: Internet
Author: User
Tags ibm db2

ToTo uninstall DB2 on Windows, follow these steps:

  1. Use DB2, deleteIn addition to the itsanmdb database. Itsanmdb is the default name. If you rename the database,
    Delete the IBM Tivoli Storage Area Network Manager database. For information about deleting a database, see delete a DB2 database.
  2. Go to the taskbar and click:
    Start --> set --> Control Panel
  3. On the Control Panel, double-clickAdd/deleteProgram.
  4. The "Add/delete programs" dialog box is displayed. On the "Install/uninstall" tab, selectIBM DB2.
  5. ClickAdd/delete.
  6. The "Confirm DB2 deletion" dialog box is displayed. ClickYes.Figure 156. "Confirm DB2 deletion" dialog box

  7. The "information" panel is displayed. ClickYes.Figure 157. "information" Panel

  8. The "Uninstall" dialog box is displayed. After the uninstallation is complete, clickOK.Figure 158. "unmount" dialog box

  9. The "uninstalled successfully" panel is displayed. ClickOK.Figure 159. "uninstalled successfully" dialog box

  10. Make sure that you have deleted all related DB2 folders.

To uninstall DB2, follow these steps. The DB2 Management Server is assumed to be db2as. You must have the root permission to uninstall DB2.

  1. Delete all DB2 databases. Each DB2 instance can have one or more databases. Go to each DB2 instance and
    The instance deletes all databases. Log On As the instance owner. Run these commands:

    Su-<Instance_owner_name> (Log On As the instance owner)
    DB2 list application (list all databases)
    DB2 drop DB

    WhereInstance_owner_nameIs a DB2 instance (for example, db2inst1 ).Db_nameIs the name of the database to be deleted.
    After deleting the database, you will see this message:

    The DB2 0000 idrop DATABASE Command has been successfully completed.
  2. Stop the management server. The Default User ID isDb2as. To stop the Management Server, run these commands:
    Su-db2as (Log On As the DB2 administrator) db2admin stop

    After the Management Server is stopped, you will see this message:

    Sql00007w DB2 Management Server stopped successfully.
  3. Stop all DB2 instances. To obtain the list of DB2 instances, run the following command:
    <Db2_dir>/Bin/db2list

    Db2_dirIs the DB2 Directory. The default value is/usr/LPP/db2_07_01. Run the following command for each instance in the list:

    Su-<Instance_onwer_name> DB2 force application all db2stop DB2 terminate

    Instance_nameIs a DB2 instance, such as db2inst1.

  4. Remove the management server. Run this command from the root directory:
    /Usr/LPP // instance/dasidrop db2as

    Db2_programIt is a DB2 program, such as db2_07_01.

  5. Remove all DB2 instances. Run the following command for each DB2 instance:
    <Db2_dir>/Instance/db2idrop <Instance_name>

    Db2_dirIs the DB2 Directory andInstance_nameIs the Instance name, such as db2inst1.

  6. Remove DB2. Run the following command:
    Installp-u

    WhereDb2_programIs the DB2 program name, for example, db2_07_01.

  7. Remove the Instance name from the user list (optional, but recommended ). RunSmitGo to these panels:
    Security and user removal users remove users from the system

    Remove the Instance name (such as DB2 inst1) and Management Server Name (such as DB 2as ).

  8. Reboot the machine. (Optional, but recommended ).

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.