In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces how to check the failure time waiting events, problem sql and the number of session visits in the database, which has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article.
DBA_HIST_ACTIVE_SESS_HISTORY
DBA_HIST_ACTIVE_SESS_HISTORY displays the history of the contents of the in-memory active session history of recent system activity. This view contains snapshots of V$ACTIVE_SESSION_HISTORY. See "V$ACTIVE_SESSION_HISTORY" for further interpretation details for many of these columns (except SNAP_ID, DBID, and INSTANCE_NUMBER).
View waiting events during failure period, problem sql id, and number of session visits
-- alter session set nls_date_format='yyyy-mm-dd hh34:mi:ss' Select trunc (sample_time, 'mi') tm, sql_id,nvl (event,'CPU'), count (distinct session_id) cnt from dba_hist_active_sess_history where sample_time between to_date (' 2019-08-22 14 mi' 30 group by trunc group by trunc (sample_time, 'mi'), sql_id,nvl (event,'CPU') order by cnt desc
View the wait events related to the sql and the corresponding number of session visits
Select sql_id, nvl (event, 'CPU'), count (distinct session_id) sz from dba_hist_active_sess_history a, dba_hist_snapshot b where sample_time between to_date (' 2019-08-22 1400lv 00') and to_date ('2019-08-22 1500lv 00') and sql_id =' 4ksvn2rgjnhcm' and a.snap_id = b.snap_id and a.instance_number = b.instance_number group by sql_id, nvl (event) 'CPU') order by sz desc
Thank you for reading this article carefully. I hope the article "how to check downtime waiting events, problem sql and session visits in the database" shared by the editor will be helpful to you. At the same time, I hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.