linux 5平台 清理Oracle 10g RAC环境

一、清理环境,具体步骤详见metalink 239998.1
1)查询ocr和vot盘的位置
引用
[oracle@racsvr2 bin]$ ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          2
         Total space (kbytes)     :     128276
         Used space (kbytes)      :       3832
         Available space (kbytes) :     124444
         ID                       :  804623082
         Device/File Name         : /dev/raw/raw1
                                    Device/File integrity check succeeded

                                    Device/File not configured

         Cluster registry integrity check succeeded

        
引用
[oracle@racsvr2 ~]$ crsctl query  css votedisk
0.     0    /dev/raw/raw2

located 1 votedisk(s).



查询asm盘符位置
引用
SQL> select PATH,name from v$asm_disk;

PATH          NAME
------------  --------------------
/dev/raw/raw2
/dev/raw/raw3 DATADG_0000
/dev/raw/raw4 DATADG_0001


双节点关闭crs
引用
[root@racsvr1 init.d]# ./init.crs stop
Shutting down Oracle Cluster Ready Services (CRS):
Dec 01 00:41:04.948 | INF | daemon shutting down
Stopping resources. This could take several minutes.
Successfully stopped CRS resources.
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons should exit soon.


引用
[root@racsvr2 init.d]# ./init.crs stop
Shutting down Oracle Cluster Ready Services (CRS):
Dec 01 00:44:39.008 | INF | daemon shutting down
Stopping resources. This could take several minutes.
Successfully stopped CRS resources.
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons should exit soon.


双节点执行以下脚本
引用
rm /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
cp /etc/inittab.orig /etc/inittab
rm -rf /etc/oratab



双节点杀以下进程
引用
ps -ef | grep crs
kill
ps -ef | grep evm
kill
ps -ef | grep css
kill


双节点删除以下目录,如果存在的话                              
引用
rm -f /var/tmp/.oracle/*                        
rm -f /tmp/.oracle/*
rm -f /etc/oracle/ocr.loc


单节点清空ocr,vot,asm盘
引用
[root@racsvr1 etc]# dd if=/dev/zero of=/dev/raw/raw1 bs=1024k count=120
120+0 records in
120+0 records out
125829120 bytes (126 MB) copied, 0.322535 seconds, 390 MB/s
[root@racsvr1 etc]# dd if=/dev/zero of=/dev/raw/raw2 bs=1024k count=120
120+0 records in
120+0 records out
125829120 bytes (126 MB) copied, 0.0820796 seconds, 1.5 GB/s
[root@racsvr1 etc]# dd if=/dev/zero of=/dev/raw/raw3 bs=1024k count=1200
dd: writing `/dev/raw/raw3': No space left on device
965+0 records in
964+0 records out
1011709440 bytes (1.0 GB) copied, 17.385 seconds, 58.2 MB/s

   

你可能感兴趣的:(oracle,sql,linux,css,F#)