Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to uninstall db2 on Linux

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is to share with you about how to uninstall db2 on Linux. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article.

It is relatively simple to install DB2 on the linux system. Use the installation wizard to install DB2 by default. Introduce how to uninstall DB2. If DB2 cannot be uninstalled correctly, you cannot reinstall DB2.

1. The general procedure for uninstalling DB2 on linux is as follows:

a. Optional: delete all databases. You can use the Control Center or drop database commands to delete the database.

b. Stop the DB2 management server.

c. Stop the DB2 instance.

d. Remove the DB2 management server.

e. Remove the DB2 instance.

f. Remove DB2 products.

The specific uninstall process is described below according to the general procedure of uninstalling DB2.

2. Stop the DB2 management server: you must stop the DB2 management server to uninstall DB2 on the linux. The specific process is as follows:

a. Log in as owner of the DB2 management server.

b. Stop the DB2 management server with the db2admin stop command.

3. Stop the DB2 instance: you must stop the DB2 instance before you can uninstall DB2 on linux. The specific process is as follows:

a. Log in as a user with root privileges.

b. Enter the. / opt/IBM/db2/V8.1/bin/db2ilist command to get the names of all DB2 instances on the system.

c. Log out.

d. Log in as the owner of the instance you want to stop.

E.CD to the home directory where you want to stop the instance, and run the startup script:. Sqllib/db2profile

d. Enter the db2 force application all command to stop all database applications.

e. Enter the db2stop command to stop the DB2 database manager.

f. You can enter db2 terminate to confirm that the DB2 database manager is stopped.

g. Repeat the above steps for each instance you want to delete.

4. Go to the DB2 management server: you must go to the DB2 management server to uninstall DB2. The specific process is as follows:

a. Log in as owner of the DB2 management server.

B.CD to the home directory of the DB2 management server and run the startup script:. Das/dasprofile.

c. Log out.

d. Log in as root and remove the DB2 management server by entering the command. / opt/IBM/db2/V8.1/instance/dasdrop.

5. Remove the DB2 instance: you can remove the instance on the system. Once the instance is removed, all DB2 databases owned by the instance will not be available.

a. Remove the instance by entering. / opt/IBM/db2/V8.1/instance/db2idrop db2instname.

6. Log in as root, go to the root directory of the DB2 version of the product CD-ROM or find the db2_deinstall command under the previous DB2 unzipped file, and then use the db2_deinstall-n command to delete all DB2 products.

7. Delete db2-related users db2inst1, dasusr1, db2fenc1

Userdel-r db2inst1

After the user is deleted, the directory associated with the user is removed.

So db2 is successfully uninstalled from linux! You can reinstall DB2.

Add: violent unloading

1. Force to stop all DB2 processes

2. RM deletion / opt/IBM/db2

3. RM deletion / var/db2

4. Delete DB2 users and groups and clear the home directory under / home

5. Delete the db2ese.rsp under the ROOT directory

This is how to uninstall db2 on Linux. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report