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

相关推荐
爱考证的小刘2 小时前
MySQL OCP认证、Oracle OCP认证
mysql·oracle·oracle数据库·oracle认证·mysql自学·mysql题库·oracle学习
last_zhiyin15 小时前
Oracle sql tuning guide 翻译 Part 6-4 --- Hint使用准则和Hint使用报告
数据库·sql·oracle·sql tunning
auspicious航18 小时前
PostgreSQL数据库关于pg_rewind的认识
数据库·postgresql·oracle
GZ_TOGOGO1 天前
Oracle OCP考试报名常见问题详解
数据库·oracle·ocp认证
大叶梧桐1 天前
oracle数据泵数据库自动备份脚本
oracle·计划任务·自动备份
蜡笔小炘1 天前
SQL sever数据库--第二次作业
数据库·sql·oracle
野犬寒鸦1 天前
从零起步学习MySQL || 第九章:从数据页的角度看B+树及MySQL中数据的底层存储原理(结合常见面试题深度解析)
java·服务器·数据库·后端·mysql·oracle·1024程序员节
蜡笔小炘2 天前
SQL sever数据库--第三次作业
数据库·sql·oracle
文档搬运工2 天前
Oracle 19.29
数据库·oracle
张毫洁2 天前
mysql、oracle的JDBC操作
数据库·mysql·oracle