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 :

相关推荐
xiezhr15 小时前
逛GitHub发现了一款免费的带AI功能的数据库管理工具
数据库·ai编程·dba
吃糖的小孩2 天前
给 QQ AI 机器人设计“可控记忆”:会话摘要、手动长期记忆与角色卡边界
数据库
笃行3502 天前
金仓数据库数据安全双防线:静态存储加密与传输加密实战
数据库
笃行3502 天前
金仓数据库物理备份实战:sys_rman 全流程演练与误覆盖抢救
数据库
笃行3502 天前
金仓数据库逻辑备份实战:从全库导出到 Schema 替换的完整闭环
数据库
SelectDB3 天前
阶跃星辰基于 SelectDB 构建 PB 级 Agent 可观测平台
大数据·数据库·aigc
这个DBA有点耶3 天前
GROUP BY优化全解:如何写出既不丢数据又飞快的分组查询
数据库·mysql·架构
掉头发的王富贵3 天前
【StarRocks】极限十分钟入门StarRocks
数据库·sql·mysql
Nturmoils3 天前
WHERE 条件别凭习惯写,常用查询先跑一遍
数据库