删除Linux非rac环境下的ASM实例

2014-11-24 18:04:07 · 作者: · 浏览: 0

环境说明:


参考:metalink node:311350.1


1、检查ASM实例进程


2、设置ASM实例名


3、检查是否有实例在使用ASM


SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jan 21 08:44:03 2010


Copyright (c) 1982, 2005, Oracle. All rights reserved.



Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options


idle> select instance_name from v$asm_client;


no rows selected


如果有实例在使用ASM,需要首先停止这些相关的实例,并备份相关的datafile、controlfile等


4、检查ASM实例上的diskgroup


idle> select name from v$asm_diskgroup;


NAME
------------------------------
DATA


5、删除检查到ASM实例上的diskgroup


idle> drop diskgroup data including contents;


Diskgroup dropped.


6、关闭ASM实例


idle> shutdown
ORA-15100: invalid or missing diskgroup name



ASM instance shutdown
idle> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options


7、从css中删除ASM实例信息


8、删除ASM实例相关的spfile、pfile等文件


9、删除/etc/oratab文件中的ASM实例相关行


删除/etc/oratab文件中的如下行


其实删除oracle 实例同样要查出该文件的内容


+ASM:/oracle/app/10.1:Y


10、用root用户删除cssd服务


11、清除ASM使用的设备的文件头信息


--end--