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 :

相关推荐
xixiaoyunya8 分钟前
服务器备份怎么做?覆盖文件、数据库、虚拟机并落地异地容灾
服务器·数据库·oracle
TDengine (老段)30 分钟前
TDengine TSDB 磁盘占用清理与缩减指南
大数据·数据库·物联网·时序数据库·tdengine·涛思数据·iotdb
Pniubi31 分钟前
一条SQL语句在MySQL中的执行流程
数据库·sql·mysql
DataMover智迁1 小时前
MySQL 到 PostgreSQL 工单同步:主键、状态回写与 CDC 校验
数据库·mysql·postgresql
海鸥-w1 小时前
FastApi项目中 使用工具让AI agent 读取PostgreSQL数据库中的数据
数据库·postgresql·fastapi
dingdingfish1 小时前
Oracle数据库《高级安全指南》第9章 笔记:关于透明数据加密的常见问题
数据库·安全·oracle·database·security·tde
ShineWinsu2 小时前
对于Qt:绘图的解析
开发语言·数据库·c++·qt·面试·客户端·绘图
warpdrivelabs2 小时前
DCT / DOC / FLC 元数据定义体系 —— 通用化 · 国际化 · 业务化 演进方案
大数据·数据库·云原生·架构
2401_879692513 小时前
微信小程序练习:网络和数据库
网络·数据库·微信小程序
DataMover智迁3 小时前
免费数据库同步工具怎么选?DataMover 的定时全量、增量与 CDC
java·数据库·oracle