Oracle Clusterの削除

インストールできたら、アンインストールできないと意味がない。。

実は、間違って、OCRとVOTを削除してしまったのは、秘密だ。。

一応、これで出来るみたいだ。


rootで、作業。

[root@rac1 ~]# cd /u02/app/oracle/product/11.1.0/crs/install
[root@rac1 install]# ./rootdelete.sh local nosharedvar nosharedhome
Getting local node name
NODE = rac1.jp.oracle.com
PRKO-2006 : ノード名が無効です: rac1.jp.oracle.com
Oracle Cluster Registry initialization failed accessing Oracle Cluster Registry device: PROC-26: Error while accessing the 
physical storage Operating System error [No such file or directory] [2]
Oracle CRS stack is not running.
Oracle CRS stack is down now.
Removing script for Oracle Cluster Ready services
Updating ocr file for downgrade
Cleaning up SCR settings in '/etc/oracle/scls_scr'
Cleaning up Network socket directories

You have new mail in /var/spool/mail/root
[root@rac1 install]# ./rootdeinstall.sh 
Verifying existence of ocr.loc file
Removing contents from OCR mirror device
/bin/dd: opening `/mnt/export/Oracle_Linux/crs/crs2': そのようなファイルやディレクトリはありません
Removing contents from OCR device
/bin/dd: opening `/mnt/export/Oracle_Linux/crs/crs1': そのようなファイルやディレクトリはありません

[root@rac1 install]# logout

[oracle@rac1 ~]$ cd /u02/app/oracle/product/11.1.0/crs/install
[oracle@rac1 install]$ cd ../oui/bin
[oracle@rac1 bin]$ ./runInstaller -deinstall -removeallfiles
Oracle Universal Installerを起動中です...

インストーラ画面が立ち上がるので、Clusterを選んで削除します。



これで、おしまい。

[oracle@rac1 /]$ ls /u02/app/oracle/product/11.1.0/crs/racg/
README  admin  dump  init  lib  log  mesg  tmp  usrco

これだけは、残ってしまった。

rm -f /u02/app/oracle/product/11.1.0/crs/*

で、消した。

もう一度、インストールしよう。。。