如何检查oracle services 切换过 table(gv$(cursor(select * from v$diag_alert_ext)))

Rac Services used for fail over.

User195957 Posts: 125

Oct 3, 2011 3:53PM edited Oct 6, 2011 12:33PM 6 commentsAnswered

Hi all,How to check if any failed over services are running on other node instead of original node.How I can check on which date it got failed over to other node?

Please let me know the command or sql which can list time of failed over services.

I tried srvctl service status -d db

I also tried:
COLUMN instance_name FORMAT a13
COLUMN host_name FORMAT a9
COLUMN failover_method FORMAT a15
COLUMN failed_over FORMAT a11
SELECT DISTINCT
v.instance_name AS instance_name,
v.host_name AS host_name,
s.failover_type AS failover_type,
s.failover_method AS failover_method,
s.failed_over AS failed_over
FROM vinstance v, vsession s
But did not get the desired output.
Regards.

FlagQuoteOff TopicLike

Answers

----RAC one node

Yes, I need to find out when dtabase services switch over from one node of RAC , and this sql helps

select ORIGINATING_TIMESTAMP, MESSAGE_TEXT from table(gv(cursor(select \* from vdiag_alert_ext))) where ORIGINATING_TIMESTAMP >sysdate-0.1 and MESSAGE_TEXT like '%service%';

相关推荐
Mr.朱鹏1 小时前
RocketMQ安装与部署指南
java·数据库·spring·oracle·maven·rocketmq·seata
j***57683 小时前
【MySQL】mysqldump使用方法
数据库·mysql·oracle
M***29913 小时前
MySQL:基础操作(增删查改)
数据库·mysql·oracle
瀚高PG实验室6 小时前
HGDB兼容性之oracle的rowid
数据库·oracle·瀚高数据库
shykevin8 小时前
Actix-Web完整项目实战:博客 API
前端·数据库·oracle
O***Z61610 小时前
【MySQL】表的基本操作
数据库·mysql·oracle
f***147710 小时前
MySQL -- 约束
数据库·mysql·oracle
v***85711 小时前
解决Spring Boot中Druid连接池“discard long time none received connection“警告
spring boot·后端·oracle
xingyue_S11 小时前
MySQL 数据库(一) -- 初体验
数据库·mysql·oracle
u***276112 小时前
【MySQL】数据库和表的操作
数据库·mysql·oracle