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 completely uninstall Oracle database software and oracle instance in linux 6.2environment

2025-03-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article will explain in detail how to completely uninstall Oracle database software and oracle instances under linux 6.2 environment. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Environment description:

VMware? Workstation 11.1.0

Xmanager SLS 4

Oracle 11.2.0.4

SecureCRT

1. Close the database, shut down the background process

Log in to the oracle instance, check status, and view oracle-related background processes

# ps-ef | grep ora_

# su-oracle

$sqlplus / as sysdba

SQL > shutdown immediate

two。 Stop monitoring

View monitoring status

Lsnrctl status

$lsnrctl stop

View the directory where the monitor is located

3. Remove $ORACLE_HOME and delete the database file

Use the uninstall tool that comes with oracle to uninstall the software, mainly to let oracle delete all kinds of data files automatically.

4. Remove dbhome,oraenv,coraenv in the / usr/local/bin

# rm-rf dbhome

# rm-rf oraenv

# rm-rf coraenv

5.According to the syntax of the prime orahorse, the last one is the same as the other one.

# rm-rf / etc/ora*

# rm-rf / opt/ORCLfmap

6. Delete the oracle installation directory

# rm-rf / U01

7. Delete group, delete user

Delete the user before deleting the group

# cat / etc/group

# userdel-r oracle

# groupdel oinstal

# groupdel dba

# cat / etc/group

8. Confirm that the uninstall work is complete

Ps-ef | grep ora_

Lsnrctl status

If it is an oracle cluster environment, you need to disable srvctl service stop-d orcl-s ser_name and database instance srvctl stop-d orcl first.

I'll add it later on ASM.

This is the end of this article on "how to completely uninstall Oracle database software and oracle instances in linux 6.2 environment". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.

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

Wechat

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

12
Report