在虚拟机上做删除节点的实验,步骤并不难,关键要细心
###########################################################
1.在第一节点上DBCA删除节点上的实例
2.清除ASM实例
+++++++++++++
node1.oracle: srvctl stop asm -n node2
node1.oracle: srvctl remove asm -n node2
++
node2.oracle:rm -f $ORACLE_HOME/dbs/"*ASM*"
node2.oracle:rm -rf /opt/ora10g/admin/+ASM
vi /etc/oratab
+++++++++++++
3.删除节点的监听程序
4.从数据库中删除节点
+++++++++++++
node2.oracle:cd $ORACLE_HOME/oui/bin
node2.oracle:./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES=node2" -local
node2.oracle:./runInstaller
node1.oracle:cd $ORACLE_HOME/oui/bin
node1.oracle:./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES=node1"
+++++++++++++
[5.从ASM中删除节点(如果ASM未使用单独的主目录,则不需要执行此步骤)]
6.删除节点中的ONS配置
+++++++++++++
node1.oracle:$CRS_HOME/bin
node1.oracle:./racgons remove_config node2:6200
node2.root:$CRS_HOME/install
node2.root:./rootdelete.sh
node1.root:$CRS_HOME/bin
node1.root:./olsnodes -n
node1.root:$CRS_HOME/install
node1.root:./rootdeletenode.sh node2,2
node2.oracle:$CRS_HOME/oui/bin
node2.oracle:./runInstaller -updateNodeList ORACLE_HOME=/opt/ora10g/product/10.2.1/crs_1 "CLUSTER_NODES=node2" CRS=TRUE -local
node2.oracle:./runInstaller
node1.oracle:./runInstaller -updateNodeList ORACLE_HOME=/opt/ora10g/product/10.2.1/crs_1 "CLUSTER_NODES=node1" CRS=TRUE
+++++++++++++
check
+++++
srvctl status nodeapps -n node2
crs_stat
olsnodes -n
+++++
+++++++++++++
./crs_stop -all ##查看资源状态
./crs_start -all
./crs_stat -t
./crs_stop ora.node2.gsd
./crs_start ora.node2.gsd
阅读(1033) | 评论(0) | 转发(0) |