如何检查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%';

相关推荐
小陈工21 小时前
Python Web开发入门(十二):使用Flask-RESTful构建API——让后端开发更优雅
开发语言·前端·python·安全·oracle·flask·restful
杨云龙UP1 天前
Oracle 19c:RMAN Duplicate异机复制数据库实操_20260402
linux·运维·服务器·数据库·网络协议·tcp/ip·oracle
wAEWQ6Ib71 天前
[拆解LangChain执行引擎]支持自然语言查询的长期存储
数据库·oracle·langchain
Yiyi_Coding1 天前
Oracle 、 Mysql、Guass 的 sequence
数据库·mysql·oracle
杨云龙UP2 天前
Oracle 中 NOMOUNT、MOUNT、OPEN 怎么理解? 在不同场景下如何操作?_20260402
linux·运维·数据库·oracle
Yushan Bai2 天前
ORACLE数据库无法查询到V$SESSION的BLOCKSESSION列问题的分析
数据库·oracle
阿波罗尼亚2 天前
函数、存储过程和聚集(聚合)函数
数据库·oracle
watersink2 天前
第21章 2012真题作文
数据库·oracle
dllxhcjla2 天前
苍穹外卖需要注意的地方
数据库·oracle
小码吃趴菜2 天前
服务器预约系统linux小项目-第八节课
linux·服务器·oracle