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 :

相关推荐
你觉得脆皮鸡好吃吗几秒前
SQL注入总概述
数据库·sql·网络安全学习
2301_81527952几秒前
golang如何编译iOS库_golang编译iOS库实践
jvm·数据库·python
2402_854808372 分钟前
C#怎么开发CAD自定义命令_C#如何调用AutoCAD的API【教程】
jvm·数据库·python
m0_716430074 分钟前
mysql乐观锁更新失败如何处理_应用层重试逻辑编写建议
jvm·数据库·python
qq_654366985 分钟前
SQL嵌套查询中的变量传值_优化存储过程逻辑
jvm·数据库·python
Austindatabases5 分钟前
阿里云MongoDB 部署安全吗? 多可用区怎么搞?
数据库·安全·mongodb·阿里云·云计算
m0_748920367 分钟前
持久化存储如何与后端接口同步?解决本地缓存与数据库不一致痛点
jvm·数据库·python
qq_330037999 分钟前
Python如何安装特定架构包_32位与64位系统兼容性处理
jvm·数据库·python
y = xⁿ13 分钟前
MySQL常见八股:索引
数据库·mysql
希望永不加班15 分钟前
SpringBoot 缓存一致性:缓存与数据库双写策略
数据库·spring boot·后端·缓存·oracle