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 does Linux thoroughly clean up the Oracle 11g RAC environment

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

This article mainly explains "how Linux thoroughly cleans up the Oracle 11g RAC environment". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "Linux how to thoroughly clean up the Oracle 11g RAC environment".

Option 1. Use reconfigured scripts and special uninstall packages

Uninstall the Oracle 11g rac database software

[oracle@rac01 ~] $cd / usr/app/product/oracle/11.2.0/deinstall/

[oracle@rac01 deinstall] $. / deinstall

Uninstall the Oracle 11g rac grid software

[grid@rac01 ~] $cd / usr/app/product/grid/11.2.0/deinstall/

[grid@rac01 deinstall] $. / deinstall

If there is a problem during the installation process and you need to reinstall the grid infrastructure software, you also need to ASM the area where ocr and votingdisk are located:

[root@rac01 ~] # dd if=/dev/zero of=/dev/emcpowera1 bs=10M count=10

[root@rac01 ~] # dd if=/dev/zero of=/dev/emcpowerb1 bs=10M count=10

[root@rac01 ~] # dd if=/dev/zero of=/dev/emcpowerc1 bs=10M count=10

Option 2. Manual unloading

Today, because of the need, wrote the Linux, measured it, the effect is very good, the test environment:

OEL 6.5 + Oracle 11.2.0.3 RAC

Manually clean up the rac environment and easily restore the bare system (ready for reinstallation):

Rm-rf / etc/oracle/

Rm-f / etc/init.d/init.cssd

Rm-f / etc/init.d/init.crs

Rm-f / etc/init.d/init.crsd

Rm-f / etc/init.d/init.evmd

Rm-f / etc/rc2.d/K96init.crs

Rm-f / etc/rc2.d/S96init.crs

Rm-f / etc/rc3.d/K96init.crs

Rm-f / etc/rc3.d/S96init.crs

Rm-f / etc/rc5.d/K96init.crs

Rm-f / etc/rc5.d/S96init.crs

Rm-Rf / etc/oracle/scls_scr

Rm-f / etc/inittab.crs

Rm-f / etc/ohasd

Rm-f / etc/oraInst.loc

Rm-f / etc/oratab

Rm-rf / tmp/.oracle

Rm-rf / tmp/ora*

Rm-rf / var/tmp/.oracle

Rm-rf / tmp/CVU*

Rm-rf / tmp/Ora*

Rm-rf / home/grid/.oracle

Rm-rf / usr/app/*

Mv / etc/init.d/init.ohasd / etc/init.d/init.ohasd.bak

Ps-ef | grep crs

Ps-ef | grep evm

Ps-ef | grep css

Dd if=/dev/zero of=/dev/emcpowerc bs=1M count=256

Dd if=/dev/zero of=/dev/emcpowerd bs=1M count=256

Dd if=/dev/zero of=/dev/emcpowere bs=1M count=256

Dd if=/dev/zero of=/dev/OCR_VOTE01 bs=1M count=256

Dd if=/dev/zero of=/dev/OCR_VOTE02 bs=1M count=256

Dd if=/dev/zero of=/dev/OCR_VOTE03 bs=1M count=256

Recreate the directory

Mkdir-p / usr/app/product/oraInventory

Chown-R grid:oinstall / usr/app/product/oraInventory

Chmod-R 775 / usr/app/product/oraInventory

Mkdir-p / usr/app/product/grid/oraInventory

Chown-R grid:oinstall / usr/app/product/grid/oraInventory

Chmod-R 775 / usr/app/product/grid/oraInventory

Mkdir-p / usr/app/product/grid/crs

Mkdir-p / usr/app/product/grid/11.2.0

Chown-R grid:oinstall / usr/app/product/grid/crs

Chown-R grid:oinstall / usr/app/product/grid/11.2.0

Chmod-R 775 / usr/app/product/grid/crs

Chmod-R 775 / usr/app/product/grid/11.2.0

Mkdir-p / usr/app/product/oracle

Chown-R oracle:oinstall / usr/app/product/oracle

Chmod-R 775 / usr/app/product/oracle

Mkdir-p / usr/app/product/oracle/11.2.0/db_1

Chown-R oracle:oinstall / usr/app/product/oracle/11.2.0/db_1

Chmod-R 775 / usr/app/product/oracle/11.2.0/db_1

Thank you for your reading, the above is the content of "how to thoroughly clean up the Oracle 11g RAC environment by Linux". After the study of this article, I believe you have a deeper understanding of how Linux thoroughly clean up the Oracle 11g RAC environment, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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

Database

Wechat

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

12
Report