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 :

相关推荐
Database_Cool_7 分钟前
阿里云 Tair(企业级内存数据库)vs 腾讯云 Redis 云缓存深度对比:性能/数据结构/成本全维度 Benchmark
数据库·阿里云·缓存
流星白龙14 分钟前
【Redis】1.Redis特性
数据库·redis·缓存
奶糖 肥晨17 分钟前
DBeaver 安装与 MySQL 连接配置教程
数据库·mysql
woshihuanglaoshi36 分钟前
数据迁移与版本管理 - Flutter在鸿蒙平台实现数据库升级策略
数据库·学习·flutter·华为·harmonyos·鸿蒙·鸿蒙系统
java_logo3 小时前
Apache Doris Docker 部署指南:实时分析数据库实战
数据库·docker·apache·doris·apache doris·轩辕镜像·docker部署doris
广州灵眸科技有限公司10 小时前
xfce桌面触摸校准:基于灵眸科技EASY-EAl-Orin-Nano
数据库·windows·科技
Cloud云卷云舒12 小时前
云卷云舒:从Oracle/MySQL迁移到HaishanDB:迁移评估工具核心技术拆解
mysql·oracle·ai-native·haishandb·信创数据库替换
憧憬成为web高手13 小时前
皮卡丘靶场速通--sql 2
数据库·sql·mybatis
段一凡-华北理工大学13 小时前
向量数据库实战:选型、调优与落地~系列文章12:文本分块策略实战:chunk_size 怎么选?重叠多少?
开发语言·数据库·后端·oracle·rust·工业智能体·高炉智能化
oradh15 小时前
Oracle XTTS实现跨版本迁移和升级(Oracle 11g单库升级至19C RAC集群)
数据库·oracle·11g升级19c·xtts跨版本迁移和升级