Cleaning before Oracle RAC 11g R2 is reinstalled in Linux
1. Clear the installation directories of grid and Oracle
CD/u01/APP
Rm-rf grid/
Rm-RF Oracle/
2. Delete Files And Directories starting with/etc/ora
Find/etc/-name 'ora * '-print
Rm-RF 'Find/etc/-name 'ora * '-print'
3. Delete the/etc/init. d/ohasd file.
CD/etc/init. d/
Ls | grep ohasd
Rm-RF 'ls | grep ohasd'
4. Convert the ASM disk to a common disk in Linux
Echo ''>/etc/udev/rules. d/99-oracle-asmdevices.rules
Start_udev
Ls-L/dev/ASM *
Ls-L/dev/SD *
5. Clear the header data of the original ASM Disk
Warning do not use the following commands unless you understand them.
Dd If =/dev/Zero of =/dev/sdb bs = 8192 COUNT = 1
**************************************** *****************************
For I in B c d e f g h I;
Do
Echo "dd If =/dev/Zero of =/dev/SD $ I BS = 8192 COUNT = 1"
Done
**************************************** *****************************
Start_udev
Ls-L/dev/ASM *
Ls-L/dev/SD *
Cleared.