]
(2)举例:
dbca -silent -nodelist rac1,rac2 -deleteDatabase -sourceDB rdbasm.cintel -sid rdbasm -sysDBAUserName sys -sysDBAPassword oracle
2.静默删除ASM
(1)在节点2…节点n上:
export ORACLE_SID=ASMInstanceName
举例:在节点2上export ORACLE_SID=+ASM2
sqlplus / as sysdba
SQL> alter diskgroup data dismount;
alter diskgroup flash_recovery_area dismount;
(2) 在节点1上:
export ORACLE_SID=ASMInstanceName
举例:在节点2上export ORACLE_SID=+ASM1
$sqlplus / as sysdba
SQL> drop diskgroup data;
SQL> drop diskgroup flash_recovery_area;
(3) 在所有节点上:
SQL> shutdown immediate
(4)在所有节点上执行类似下面的操作:
[oracle@rac1 ~]$ crs_stat|grep asm
NAME=ora.rac1.ASM1.asm
NAME=ora.rac2.ASM2.asm
[oracle@rac1 ~]$ crs_unregister ora.rac1.ASM1.asm
[oracle@rac1 ~]$ crs_unregister ora.rac2.ASM2.asm
(5) 删除$ORACLE_BASE/admin/+ASM目录:
$rm –rf $ORACLE_BASE/admin/+ASM
(6) 将ASM使用的裸设备清零:
#dd if=/dev/zero of=/dev/raw/raw1 bs=8192 count=12800
注:本节可被写成脚本实现。脚本样例待续
3.静默删除Oracle DB软件
执行以下命令静默卸载Oracle数据库软件
$./runInstaller –silent –nodelist NodeName –deinstall –removeallfiles –removeAllPatches –responseFile responseFileName