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 :

相关推荐
Mike117.2 分钟前
GBase 8c 写入高峰抖一下,我通常会先看检查点和 WAL
数据库
C137的本贾尼11 分钟前
子查询与合并查询:SQL 的高级过滤技巧
数据库·sql
jingyu飞鸟27 分钟前
linux系统二进制安装MySQL 8.4、8.0版本数据库,配置crontab和xtrabackup数据库热备份脚本
linux·数据库·mysql
小江的记录本32 分钟前
【MySQL】《MySQL日志面试背诵版+思维导图》(核心考点 + MySQL 8.0最新优化)
java·数据库·后端·python·sql·mysql·面试
BD_Marathon34 分钟前
SQL学习指南——创建和填充数据库
数据库·sql
TDengine (老段)35 分钟前
TDengine RPC 通信层深度解析 — 协议格式、连接管理与重试机制
大数据·数据库·rpc·架构·时序数据库·tdengine·涛思数据
KaMeidebaby35 分钟前
卡梅德生物技术快报|噬菌体筛选全流程技术方案:弧菌抑菌菌株筛选、特性鉴定与效果测试
前端·数据库·其他·百度·新浪微博
蜀道山老天师36 分钟前
从零搭建 Prometheus 监控 MySQL:含二进制安装、授权、exporter 配置全流程
运维·数据库·mysql·adb·云原生·prometheus
yubin128557092337 分钟前
mysql正则函数REGEXP
android·数据库·mysql
塔能物联运维1 小时前
存量机房低成本改造:塔能两相液冷实现投入与效益双赢
大数据·数据库·人工智能