RAC 去除node的建议 dbca 和手动方法

Applies To

All Users

Summary

The purpose of this document is to demonstrate how to identify and remove online redo log files belonging to a RAC instance that has been removed from the cluster

(e.g. via srvctl remove instance -d <dbname> -i <inst_name>).

When all the log files of the related thread are dropped, the thread will be removed from v$thread.

Please note the preferred method to remove an instance is using dbca, this tool will automatically remove the instance related online redo logs, undo tablespaces and parameters.

Solution

1.) Disable the redo log thread of the removed instance:

alter database disable instance '<name of removed instance>';

2.) Check that the thread is disabled using:

select INSTANCE,THREAD#,STATUS,ENABLED from v$thread where INSTANCE = '<name of removed instance>';

3.) Archive the active logs (if any) from the removed instance:

alter system archive log instance '<name of removed instance>' all;

Note: this may report:

ORA-00263: there are no logs that need archiving for thread <n>

which can be ignored.

4.) Find all redo log groups belonging to the thread of the removed instance:

col instance format a15

col status format a10

col archived format a8

select a.INSTANCE,a.THREAD#,a.STATUS "Thread Status",b.group#,b.archived,b.status "Log Status"

from vthread a, vlog b

where a.THREAD# = b.THREAD# and a.INSTANCE = '<name of removed instance>';

5.) And then drop them:

if you later want to remove the actual file at the filesystem or ASM level then query v$logfile first:

select member from v$logfile where GROUP# = <n>;

then drop the group:

alter database drop logfile group <n>;

It is also necessary to remove the UNDO tablespace and instance specific parameters of the removed instance to complete the task.

Attachments :

相关推荐
TlYf NTLE2 小时前
redis分页查询
数据库·redis·缓存
翻斗包菜2 小时前
MySQL 全量、增量备份与恢复实战指南(含 mysqldump + binlog + XtraBackup)
数据库·oracle
|华|2 小时前
MySQL主从复制与读写分离
数据库·mysql
_下雨天.3 小时前
MySQL 全量、增量备份与恢复
数据库·mysql
TDengine (老段)3 小时前
TDengine IDMP 工业数据建模 —— 数据情景化
大数据·数据库·人工智能·时序数据库·iot·tdengine·涛思数据
Ujimatsu3 小时前
数据分析相关面试题-SQL部分
数据库·sql·数据分析
Omics Pro3 小时前
端到端单细胞空间组学数据分析
大数据·数据库·人工智能·算法·数据挖掘·数据分析·aigc
羊小蜜.3 小时前
Mysql 02:集合函数(聚合函数)查询全解——COUNT/SUM/AVG/MAX/MIN 实战指南
数据库·mysql·集合函数·聚合函数查询
wangjialelele3 小时前
一文读懂 Redis 持久化与事务
linux·数据库·redis·bootstrap