首页 数据库 mysql教程 Oracle V$SYSTEM

Oracle V$SYSTEM

Jun 07, 2016 pm 03:46 PM
event oracle system

V$SYSTEM_EVENT V$SYSTEM_EVENT displaysinformation on total waits for an event. Note thatthe TIME_WAITED and AVERAGE_WAIT columnswill contain a value of zero on those platforms that do not supporta fast timing mechanism. If you are running

V$SYSTEM_EVENT

V$SYSTEM_EVENT displaysinformation on total waits for an event. Note thatthe TIME_WAITED and AVERAGE_WAIT columnswill contain a value of zero on those platforms that do not supporta fast timing mechanism. If you are running on one of theseplatforms and you want this column to reflect true wait times, thenyou must set TIMED_STATISTICS to TRUE inthe parameter file; doing this will have a small negative effect onsystem performance.

See Also:

"TIMED_STATISTICS"

Column Datatype Description
EVENT VARCHAR2(64) Name of the wait event
TOTAL_WAITS NUMBER Total number of waits for the event
TOTAL_TIMEOUTS NUMBER Total number of timeouts for the event
TIME_WAITED NUMBER Total amount of time waited for the event(in hundredths of a second)
AVERAGE_WAIT NUMBER Average amount of time waited for the event(in hundredths of a second)
TIME_WAITED_MICRO NUMBER Total amount of time waited for the event(in microseconds)
TOTAL_WAITS_FG NUMBER Total number of waits for the event, fromforeground sessions
TOTAL_TIMEOUTS_FG NUMBER Total number of timeouts for the event, fromforeground sessions
TIME_WAITED_FG NUMBER Amount of time waited for the event (inhundredths of a second), from foreground sessions
AVERAGE_WAIT_FG NUMBER Average amount of time waited for the event(in hundredths of a second), from foreground sessions
TIME_WAITED_MICRO_FG NUMBER Amount of time waited for the event (inmicroseconds), from foreground sessions
EVENT_ID NUMBER Identifier of the wait event
WAIT_CLASS_ID NUMBER Identifier of the class of the waitevent
WAIT_CLASS# NUMBER Number of the class of the wait event
WAIT_CLASS<br> <br> <br> VARCHAR2(64)<br> <br> Name of the class of the wait event


本视图概括了实例各项事件的等待信息。v$session_wait显示了系统的当前等待项,v$system_event则提供了自实例启动后各个等待事件的概括。常用于获取系统等待信息的历史影象。而通过两个snapshot获取等待项增量,则可以确定这段时间内系统的等待项。

 

V$SYSTEM_EVENT中的常用列

       EVENT:等待事件名称

       TOTAL_WAITS:此项事件总等待次数

       TIME_WAITED:此项事件的总等待时间(单位:百分之一秒)

       AVERAGE_WAIT:此项事件的平均等待用时(单位:百分之一秒)(time_waited/total_waits)

       TOTAL_TIMEOUTS:此项事情总等待超时次数

注释:

存在等待(某事),就可能会产生等待的该事没来,即所谓等待超时。

 

示例:

1.查看系统的各项等待,按总耗时排序

SELECT event,total_waits waits,total_timeouts timeouts,

      time_waited total_time,average_wait avg

FROM V$SYSTEM_EVENT

ORDER BY 4 DESC;

 

比如,通过checkpoint completed、log file switch(checkpointincomplete)可以查看检查点进程的性能。通过log file parallel write、log file switchcompleted可以查看联机重做日志文件的性能。通过log file switch(archivingneeded)事件可以检查归档进程的性能。

 

找出瓶颈:

1。通过Statspack列出空闲事件。

2。检查不同事件的等待时间开销。

3。检查每条等待记录的平均用时,因为某些等待事件(比较log file switchcompletion)可能周期性地发生,但发生时却造成了严重的性能损耗。

本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

AI Hentai Generator

AI Hentai Generator

免费生成ai无尽的。

热门文章

R.E.P.O.能量晶体解释及其做什么(黄色晶体)
1 个月前 By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.最佳图形设置
1 个月前 By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.如果您听不到任何人,如何修复音频
1 个月前 By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.聊天命令以及如何使用它们
1 个月前 By 尊渡假赌尊渡假赌尊渡假赌

热工具

记事本++7.3.1

记事本++7.3.1

好用且免费的代码编辑器

SublimeText3汉化版

SublimeText3汉化版

中文版,非常好用

禅工作室 13.0.1

禅工作室 13.0.1

功能强大的PHP集成开发环境

Dreamweaver CS6

Dreamweaver CS6

视觉化网页开发工具

SublimeText3 Mac版

SublimeText3 Mac版

神级代码编辑软件(SublimeText3)

oracle如何查表空间大小 oracle如何查表空间大小 Apr 11, 2025 pm 08:15 PM

要查询 Oracle 表空间大小,请遵循以下步骤:确定表空间名称,方法是运行查询:SELECT tablespace_name FROM dba_tablespaces;查询表空间大小,方法是运行查询:SELECT sum(bytes) AS total_size, sum(bytes_free) AS available_space, sum(bytes) - sum(bytes_free) AS used_space FROM dba_data_files WHERE tablespace_

oracle视图如何加密 oracle视图如何加密 Apr 11, 2025 pm 08:30 PM

Oracle 视图加密允许您加密视图中的数据,从而增强敏感信息安全性。步骤包括:1) 创建主加密密钥 (MEk);2) 创建加密视图,指定要加密的视图和 MEk;3) 授权用户访问加密视图。加密视图工作原理:当用户查询加密视图时,Oracle 使用 MEk 解密数据,确保只有授权用户可以访问可读数据。

oracle如何查看实例名 oracle如何查看实例名 Apr 11, 2025 pm 08:18 PM

在 Oracle 中查看实例名的方法有三种:命令行中使用 "sqlplus" 和 "select instance_name from v$instance;" 命令。在 SQL*Plus 中使用 "show instance_name;" 命令。通过操作系统的任务管理器、Oracle Enterprise Manager 或检查环境变量 (Linux 上的 ORACLE_SID)。

Oracle安装失败如何卸载 Oracle安装失败如何卸载 Apr 11, 2025 pm 08:24 PM

Oracle 安装失败的卸载方法:关闭 Oracle 服务,删除 Oracle 程序文件和注册表项,卸载 Oracle 环境变量,重新启动计算机。若卸载失败,可使用 Oracle 通用卸载工具手动卸载。

oracle如何获取时间 oracle如何获取时间 Apr 11, 2025 pm 08:09 PM

在 Oracle 中获取时间有以下方法:CURRENT_TIMESTAMP:返回当前系统时间,精确到秒。SYSTIMESTAMP:比 CURRENT_TIMESTAMP 更准确,精确到纳秒。SYSDATE:返回当前系统日期,不含时间部分。TO_CHAR(SYSDATE, 'YYYY-MM-DD HH24:MI:SS'): 将当前系统日期和时间转换为特定格式。EXTRACT:从时间值中提取特定部分,如年份、月份或小时。

oracle数据库如何导入 oracle数据库如何导入 Apr 11, 2025 pm 08:06 PM

数据导入方法:1. 使用 SQLLoader 实用程序:准备数据文件、创建控制文件、运行 SQLLoader;2. 使用 IMP/EXP 工具:导出数据、导入数据。提示:1. 大数据集推荐 SQL*Loader;2. 目标表应存在,列定义匹配;3. 导入后需验证数据完整性。

oracle如何设置用户 oracle如何设置用户 Apr 11, 2025 pm 08:21 PM

在 Oracle 中创建用户需遵循以下步骤:使用 CREATE USER 语句创建新用户。使用 GRANT 语句授予必要权限。可选:使用 RESOURCE 语句设置配额。配置其他选项,如默认角色和临时表空间。

oracle怎么循环创建游标 oracle怎么循环创建游标 Apr 12, 2025 am 06:18 AM

Oracle 中,FOR LOOP 循环可动态创建游标, 步骤为:1. 定义游标类型;2. 创建循环;3. 动态创建游标;4. 执行游标;5. 关闭游标。示例:可循环创建游标,显示前 10 名员工姓名和工资。

See all articles