一.关闭rac3节点的数据库实例和ASM实例
[oracle@rac1 ~]$ crs_stat -t -v
Name Type R/RA F/FT Target State Host
----------------------------------------------------------------------
ora....SM1.asm application 0/5 0/0 ONLINE ONLINE rac1
ora....C1.lsnr application 0/5 0/0 ONLINE ONLINE rac1
ora.rac1.gsd application 0/5 0/0 ONLINE ONLINE rac1
ora.rac1.ons application 0/3 0/0 ONLINE ONLINE rac1
ora.rac1.vip application 0/0 0/0 ONLINE ONLINE rac1
ora....SM2.asm application 0/5 0/0 ONLINE ONLINE rac2
ora....C2.lsnr application 0/5 0/0 ONLINE ONLINE rac2
ora.rac2.gsd application 0/5 0/0 ONLINE ONLINE rac2
ora.rac2.ons application 0/3 0/0 ONLINE ONLINE rac2
ora.rac2.vip application 0/0 0/0 ONLINE ONLINE rac2
ora....SM3.asm application 0/5 0/0 ONLINE ONLINE rac3
ora....C3.lsnr application 0/5 0/0 ONLINE ONLINE rac3
ora.rac3.gsd application 0/5 0/0 ONLINE ONLINE rac3
ora.rac3.ons application 0/3 0/0 ONLINE ONLINE rac3
ora.rac3.vip application 0/0 0/0 ONLINE ONLINE rac3
ora.racdb.db application 0/1 0/1 ONLINE ONLINE rac1
ora....b1.inst application 0/5 0/0 ONLINE ONLINE rac1
ora....b2.inst application 0/5 0/0 ONLINE ONLINE rac2
ora....b3.inst application 0/5 0/0 ONLINE ONLINE rac3
[oracle@rac1 ~]$ srvctl status database -d racdb
Instance racdb1 is running on node rac1
Instance racdb2 is running on node rac2
Instance racdb3 is running on node rac3
[oracle@rac1 ~]$ srvctl stop instance -d racdb -i racdb3 -o immediate
[oracle@rac1 ~]$ srvctl status asm -n rac3
ASM instance +ASM3 is running on node rac3.
[oracle@rac1 ~]$ srvctl stop asm -n rac3
二:修改spfile文件的相关参数
[oracle@rac1 ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Dec 1 19:06:58 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn /as sysdba
Connected.
SQL> show parameter spfile;
NAME TYPE VALUE
--------- ------- -----------------------
spfile string +DATA/racdb/spfileracdb.ora
SQL> select name,value from v$spparameter where sid='racdb3';
NAME VALUE
-------------------- --------------------
thread 3
instance_number 3
undo_tablespace UNDOTBS3
SQL> alter system reset thread scope=spfile sid='racdb3';
System altered.
SQL> alter system reset instance_number scope=spfile sid='racdb3';
System altered.
SQL> alter system reset undo_tablespace scope=spfile sid='racdb3';
System altered.
SQL> alter system reset service_names scope=spfile sid='racdb3';
alter system reset service_names scope=spfile sid='racdb3'
*
ERROR at line 1:
ORA-32010: cannot find entry to delete in SPFILE
SQL> alter system reset local_listener scope=spfile sid='racdb3';
alter system reset local_listener scope=spfile sid='racdb3'
*
ERROR at line 1:
ORA-32010: cannot find entry to delete in SPFILE
SQL> select sid,name,value from v$spparameter where name='cluster_database_instances';
SID NAME VALUE
---------- ---------------------------------------- --------------------
* cluster_database_instances 2
三:关闭rac3节点的监听器并验证
[oracle@rac1 ~]$ srvctl stop listener -n rac3
[oracle@rac1 ~]$ crs_stat -t -v
Name Type R/RA F/FT Target State Host
----------------------------------------------------------------------
ora....SM1.asm application 0/5 0/0 ONLINE ONLINE rac1
ora....C1.lsnr application 0/5 0/0 ONLINE ONLINE rac1
ora.rac1.gsd application 0/5 0/0 ONLINE ONLINE rac1
ora.rac1.ons application 0/3 0/0 ONLINE ONLINE rac1
ora.rac1.vip application 0/0 0/0 ONLINE ONLINE rac1
ora....SM2.asm application 0/5 0/0 ONLINE ONLINE rac2
ora....C2.lsnr application 0/5 0/0 ONLINE ONLINE rac2
ora.rac2.gsd application 0/5 0/0 ONLINE ONLINE rac2
ora.rac2.ons application 0/3 0/0 ONLINE ONLINE rac2
ora.rac2.vip application 0/0 0/0 ONLINE ONLINE rac2
ora....SM3.asm application 0/5 0/0 OFFLINE OFFLINE
ora....C3.lsnr application 0/5 0/0 OFFLINE OFFLINE
ora.rac3.gsd application 0/5 0/0 ONLINE ONLINE rac3
ora.rac3.ons application 0/3 0/0 ONLINE ONLINE rac3
ora.rac3.vip application 0/0 0/0 ONLINE ONLINE rac3
ora.racdb.db application 0/1 0/1 ONLINE ONLINE rac1
ora....b1.inst application 0/5 0/0 ONLINE ONLINE rac1
ora....b2.inst application 0/5 0/0 ONLINE ONLINE rac2
ora....b3.inst application 0/5 0/0 OFFLINE OFFLINE
四:使用srvctl工具删除rac3节点上的数据库实例和ASM实例
[oracle@rac1 ~]$ srvctl status database -d racdb
Instance racdb1 is running on node rac1
Instance racdb2 is running on node rac2
Instance racdb3 is not running on node rac3
[oracle@rac1 ~]$ srvctl remove instance -d racdb -i racdb3
Remove instance racdb3 from the database racdb? (y/[n]) y
[oracle@rac1 ~]$ srvctl status asm -n rac3
ASM instance +ASM3 is not running on node rac3.
[oracle@rac1 ~]$ srvctl remove asm -n rac3
[oracle@rac1 ~]$ crs_stat -t -v
Name Type R/RA F/FT Target State Host
----------------------------------------------------------------------
ora....SM1.asm application 0/5 0/0 ONLINE ONLINE rac1
ora....C1.lsnr application 0/5 0/0 ONLINE ONLINE rac1
ora.rac1.gsd application 0/5 0/0 ONLINE ONLINE rac1
ora.rac1.ons application 0/3 0/0 ONLINE ONLINE rac1
ora.rac1.vip application 0/0 0/0 ONLINE ONLINE rac1
ora....SM2.asm application 0/5 0/0 ONLINE ONLINE rac2
ora....C2.lsnr application 0/5 0/0 ONLINE ONLINE rac2
ora.rac2.gsd application 0/5 0/0 ONLINE ONLINE rac2
ora.rac2.ons application 0/3 0/0 ONLINE ONLINE rac2
ora.rac2.vip application 0/0 0/0 ONLINE ONLINE rac2
ora....C3.lsnr application 0/5 0/0 OFFLINE OFFLINE
ora.rac3.gsd application 0/5 0/0 ONLINE ONLINE rac3
ora.rac3.ons application 0/3 0/0 ONLINE ONLINE rac3
ora.rac3.vip application 0/0 0/0 ONLINE ONLINE rac3
ora.racdb.db application 0/1 0/1 ONLINE ONLINE rac1
ora....b1.inst application 0/5 0/0 ONLINE ONLINE rac1
ora....b2.inst application 0/5 0/0 ONLINE ONLINE rac2
五:使用netca命令删除rac3节点上的监听器配置
[oracle@rac1 ~]$ netca
后台日志信息如下
Oracle Net Services Configuration:
rac3...
Deleted listener: LISTENER_RAC3
Oracle Net Services configuration successful. The exit code is 0
验证:
[oracle@rac1 ~]$ crs_stat -t -v
Name Type R/RA F/FT Target State Host
----------------------------------------------------------------------
ora....SM1.asm application 0/5 0/0 ONLINE ONLINE rac1
ora....C1.lsnr application 0/5 0/0 ONLINE ONLINE rac1
ora.rac1.gsd application 0/5 0/0 ONLINE ONLINE rac1
ora.rac1.ons application 0/3 0/0 ONLINE ONLINE rac1
ora.rac1.vip application 0/0 0/0 ONLINE ONLINE rac1
ora....SM2.asm application 0/5 0/0 ONLINE ONLINE rac2
ora....C2.lsnr application 0/5 0/0 ONLINE ONLINE rac2
ora.rac2.gsd application 0/5 0/0 ONLINE ONLINE rac2
ora.rac2.ons application 0/3 0/0 ONLINE ONLINE rac2
ora.rac2.vip application 0/0 0/0 ONLINE ONLINE rac2
ora.rac3.gsd application 0/5 0/0 ONLINE ONLINE rac3
ora.rac3.ons application 0/3 0/0 ONLINE ONLINE rac3
ora.rac3.vip application 0/0 0/0 ONLINE ONLINE rac3
ora.racdb.db application 0/1 0/1 ONLINE ONLINE rac1
ora....b1.inst application 0/5 0/0 ONLINE ONLINE rac1
ora....b2.inst application 0/5 0/0 ONLINE ONLINE rac2
清除rac配置信息
[oracle@rac3 ~]$ cat $ORA_CRS_HOME/opmn/conf/ons.config
localport=6100
remoteport=6200
loglevel=3
useocr=on
[oracle@rac1 ~]$ racgons remove_config rac3:6200
六:在rac3节点上以root用户身份运行删除节点脚本
[root@rac3 ~]# cd /u01/app/oracle/product/10.2.0/crs_1/install
[root@rac3 install]# ./rootdelete.sh
CRS-0210: Could not find resource 'ora.rac3.LISTENER_RAC3.lsnr'.
Shutting down Oracle Cluster Ready Services (CRS):
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons should exit soon.
Checking to see if Oracle CRS stack is down...
Checking to see if Oracle CRS stack is down...
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'
备注:在清除rac节点前,需要利用netca来删除监听,否则会报错如下!
CRS resources for listeners are still configured. You must remove the CRS listener resources before deconfiging CRS stack. Use NETCA to remove them.
1
也可以采用手工方式删除OCR信息
# ./srvctl remove nodeapps -n rac3
++++ 将信息crs中3节点的资源信息从ocr中清除 ++++
# ./crs_unregister ora.rac3.LISTENER_CALLRAC2.lsnr
# ./crs_unregister ora.rac3.ASM2.asm
# ./crs_unregister ora.rac3.gsd
# ./crs_unregister ora.rac3.ons
# ./crs_unregister ora.rac3.vip
七:在节点1上更新OCR信息
[root@rac1 ~]# cd /u01/app/oracle/product/10.2.0/crs_1/install
[root@rac1 install]# ./rootdeletenode.sh rac3,3
CRS-0210: Could not find resource 'ora.rac3.LISTENER_RAC3.lsnr'.
CRS-0210: Could not find resource 'ora.rac3.ons'.
CRS-0210: Could not find resource 'ora.rac3.vip'.
CRS-0210: Could not find resource 'ora.rac3.gsd'.
CRS-0210: Could not find resource ora.rac3.vip.
CRS nodeapps are deleted successfully
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully deleted 14 values from OCR.
Key SYSTEM.css.interfaces.noderac3 marked for deletion is not there. Ignoring.
Successfully deleted 5 keys from OCR.
Node deletion operation successful.
'rac3,3' deleted successfully
更新CRS:
[oracle@rac1 ~]$ cd $ORA_CRS_HOME/oui/bin
[oracle@rac1 bin]$ ./runInstaller -updateNodelist ORACLE_HOME=$ORA_CRS_HOME "CLUSTER_NODES={rac1,rac2}" CRS=TRUE
Starting Oracle Universal Installer...
No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
'UpdateNodeList' was successful.
八:验证
[oracle@rac1 ~]$ crs_stat -t -v
Name Type R/RA F/FT Target State Host
----------------------------------------------------------------------
ora....SM1.asm application 0/5 0/0 ONLINE ONLINE rac1
ora....C1.lsnr application 0/5 0/0 ONLINE ONLINE rac1
ora.rac1.gsd application 0/5 0/0 ONLINE ONLINE rac1
ora.rac1.ons application 0/3 0/0 ONLINE ONLINE rac1
ora.rac1.vip application 0/0 0/0 ONLINE ONLINE rac1
ora....SM2.asm application 0/5 0/0 ONLINE ONLINE rac2
ora....C2.lsnr application 0/5 0/0 ONLINE ONLINE rac2
ora.rac2.gsd application 0/5 0/0 ONLINE ONLINE rac2
ora.rac2.ons application 0/3 0/0 ONLINE ONLINE rac2
ora.rac2.vip application 0/0 0/0 ONLINE ONLINE rac2
ora.racdb.db application 0/1 0/1 ONLINE ONLINE rac1
ora....b1.inst application 0/5 0/0 ONLINE ONLINE rac1
ora....b2.inst application 0/5 0/0 ONLINE ONLINE rac2
[oracle@rac1 ~]$ olsnodes -n
rac1 1
rac2 2
也可以采用dbca图形界面的方式进行删除
$ dbca &
Screen Name Response Welcome Screen Select Oracle Real Application Clusters database. Operations Select Instance Management. Instance Management Select Delete an instance. List of cluster databases Provides a list of clustered databases running on the node. For the purpose of this example, the clustered database running on node linux1 is orcl. Select this clustered database. At the bottom of this screen, the DBCA requests you to "Specify a user with SYSDBA system privileges":
Username: sys
Password: <sys_password>Click Next to continue.
List of cluster
database instancesThis screen provides a list of all instances currently available on the cluster, their status, and which node they reside on. Select the node:instance to delete (linux3:orcl3) and Click Next to continue.
Database Services If the current clustered database has any database services defined, the next screen allows the DBA to re-configure those database services to account for the instance being removed. In this example, the existing clustered database has one service defined named orcl_taf. With the "orcl_taf" database service selected, change the details to Not used for the instance to be removed (orcl3) and leave the "TAF Policy" set to Basic. Click Finish to remove the instance.
Database Configuration
Assistant: SummaryAfter verifying the instance removal options in the summary dialog, Click OK to begin the instance management process. Database Configuration Assistant A second dialog box is presented which includes the warning: "The Database Configuration Assistance will delete the Oracle instance and its associated OFA directory structure. All information about this instance will be deleted. Do you want to proceed?"
Click OK to acknowledge this dialog.
Database Configuration Assistant
Progress ScreenA progress bar is display while the instance is being deleted. Once the instance management process is complete, the DBCA prompts the user with a dialog and the message "Do you want to perform another operation?" Click No to end and exit the DBCA utility.
参考至:http://ylw6006.blog.51cto.com/470441/731563
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle10gRAC/CLUSTER_23.shtml
http://www.killdb.com/2011/09/27/linux-rac-delete-node%E5%B0%8F%E8%AE%B0.html
本文原创,转载请注明出处、作者
如有错误,欢迎指正
邮箱:czmcj@163.com
相关推荐
某客户需要将一套Oracle 10gR2 双节点RAC 生产数据库升级至Oracle 11gR2 RAC,所以便有了本系列实战的教程。 为更贴切还原生产过程中的实际操作,本系列教程一个分两大部分: 第一部分已发 一步一步在Linux上部署...
### Oracle 11GR2 RAC节点Crash故障分析 #### 概述 在Oracle 11GR2 RAC环境中,遇到节点Crash的情况是非常严重的问题,它可能会导致整个集群的不可用,进而影响业务系统的正常运行。本文将详细介绍一个实际案例中...
现在的RAC环境是2节点的RAC,节点是RAC1和RAC2,在本文档中,我们要添加一个节点:RAC3。
《构建最高可用Oracle数据库系统:Oracle 11gR2 RAC管理、维护与性能优化》从硬件和软件两个维度系统且全面地讲解了Oracle 11g R2 RAC的架构、工作原理、管理及维护的系统理论和方法,以及性能优化的技巧和最佳实践...
第8章 RAC节点管理与升级 8.1添加节点 8.1.1服务器配置 8.1.2添加节点 8.1.3克隆节点 8.2删除节点 8.2.1删除节点实例 8.2.2卸载节点Database软件 8.2.3卸载节点Clusterware软件 8.3卸载工具 8.3.1 dei ...
总之,删除Oracle 11gR2 RAC中的节点是一项涉及多步骤且需要专业知识的任务。每个环节都至关重要,任何错误都可能导致数据丢失或系统不稳定。因此,熟悉RAC的架构和操作流程,以及在实践中进行充分的规划和备份,是...
Oracle 11gR2 RAC (Real Application Clusters) 是一种高可用性和容错性的数据库解决方案,允许在多台服务器之间共享一个数据库实例。在IBM AIX操作系统上配置Oracle RAC,可以确保数据的持续可用性,即使单个服务器...
Oracle 11gR2 RAC删除节点 案例
Oracle 11gR2 RAC(Real Application Clusters)是一种高可用性解决方案,它允许多个数据库实例共享同一物理数据库,从而实现故障切换和负载均衡。在本快速安装教程中,我们将深入探讨Oracle 11gR2 RAC的安装步骤,...
### ORACLE 10gR2 RAC环境增删节点 #### 一、初始化第3台节点 在向现有的RAC环境中添加第三个节点之前,我们需要确保这个新的节点(本例中为jssdbn3)已经正确配置了必要的系统设置,并且能够与现有的RAC集群中的...
### ORACLE 10gR2 RAC 升级至 10.2.0.4 的关键步骤 #### 1. 停止相关进程 在进行ORACLE 10gR2 RAC(Real Application Clusters)的升级之前,确保所有相关进程和服务已经停止是非常重要的一步。这不仅包括数据库...
### Oracle 11gR2 RAC 在 Linux 上的安装指南 #### 一、引言与新特性概述 本文档提供了 Oracle 11gR2 RAC 在 Linux 环境下的安装指导,旨在帮助数据库管理员顺利安装配置该版本的 RAC 系统。文档详细介绍了 11gR2 ...
某客户需要将一套Oracle 10gR2 双节点RAC 生产数据库升级至Oracle 11gR2 RAC,所以便有了本系列实战的教程。 为更贴切还原生产过程中的实际操作,本系列教程一个分两大部分: 第一部分:从零开始一步一步搭建一套在...
在深入探讨Oracle 11gR2 RAC(Real Application Clusters)的进程说明之前,我们首先需要理解Oracle Clusterware的基础概念以及它如何利用投票磁盘(Voting Disks)和Oracle Cluster Registry(OCR)来确保集群的...
### 实战完美搭建Oracle 11gR2_RAC+ASM+DG(最新精编版) #### 概述 本文档旨在提供一个详尽的指南,帮助读者在虚拟环境中搭建Oracle 11gR2_RAC(Real Application Clusters)、ASM(Automatic Storage Management...
在RedHat 5下安装Oracle 11gR2 RAC环境是一项复杂而细致的任务,涉及到多方面的系统配置与软件部署。以下是对该任务中关键知识点的深入解析: ### 安装环境概述 #### 主机操作系统 主机操作系统选择了Win7,这表明...
【Oracle 10gR2 RAC安装简明步骤】\n\nOracle 10g Release 2 (10gR2) Real Application Clusters (RAC) 是一种高可用性和可扩展性的数据库解决方案,允许多台服务器共享同一个数据库实例。在虚拟化环境中,如VMware ...