概述
34.Oracle深度学习笔记——12C的AWR初步解读
关于AWR,蛤蟆也经常看。因为经常看别人给出的建议,很难有深刻体会。对此,计划花费几个晚上时间好好体会一把并记录下来。此处以单实例为例。列出目录便于整体理解。
目录
1. 快照生成方法... 1
2. 生成AWR报告... 1
3. 系统描述... 3
4. 报告汇总... 3
l 负载信息... 3
5. 等待事件统计... 3
l 时间模型统计... 3
l 操作系统统计... 3
l 操作系统统计详细... 4
l 前台等待类... 4
l 前台等待事件... 4
l 后台等待事件... 4
l 等待事件直方图... 4
l 等待事件直方图的详细(64ms 到 2s)... 4
l 等待事件直方图的详细(4ms 到 2min)... 4
l 等待事件直方图的详细(4ms 到 1hr)... 4
l 服务统计... 5
l 服务等待类统计... 5
6. SQL统计... 5
l 通过执行时间排序... 5
l 通过CPU时间排序... 5
l 通过USER IO排序... 5
l 通过Gets排序... 5
l 通过Reads排序... 5
l 通过物理读(无优化)排序... 6
l 通过执行数量排序... 6
l 通过解析调用排序... 6
l 通过共享内存排序... 6
l 通过打开的子游标排序... 6
l SQL文本的完整列表... 6
7. 实例活动统计... 6
l 关键实例活动统计... 6
l 实例活动统计... 7
l 实例活动统计的绝对值... 7
l 实例活动统计的进程活动... 7
8. IO状态... 7
l 函数引起的IO.. 7
l 文件类型引起的IO.. 7
l 函数或文件类型的IO.. 7
l 表空间的IO.. 7
l 文件的IO.. 8
9. 缓存池统计... 8
10. 数据库建议统计... 8
l 实例汇通统计... 8
l MTTR建议... 8
l 缓存池建议... 8
l PGA 命中汇总... 8
l PGA 命中统计... 8
l PGA命中直方图... 9
l PGA内存建议... 9
l 共享库建议... 9
l SGA建议... 9
l 流池建议... 9
l JAVA POOL 建议... 9
11. 等待统计... 9
l 缓存等待统计... 9
l 队列等待活动... 10
12. 回滚统计... 10
l 回滚段汇总... 10
l 回滚段统计... 10
13. Latch统计... 10
l LACTH活动... 10
l LATCH 睡眠中断... 10
l LATCH 丢失源... 10
l Mutex 睡眠汇总... 11
l 父Latch统计... 11
l 子Latch统计... 11
14. 段信息统计... 11
l 段的逻辑读... 11
l 段的物理读... 11
l 段的物理读请求... 11
l 段的未优化读... 11
l 段的优化读... 12
l 段的直接物理读... 12
l 段的物理写... 12
l 段的物理写请求... 12
l 段的直接物理写... 12
l 表扫描... 12
l 块改变... 12
l 行锁等待... 12
l ITL等待... 12
l Buffer Busy等待... 13
15. 字典CACHE 统计... 13
16. 库缓存统计... 13
17. 内存统计... 13
l 内存动态组件... 13
l 内存组件大小重设置操作汇总... 13
l 进程内存汇总... 13
l SGA内存汇总... 14
l SGA中组件变化... 14
18. 复制统计(X流,GoldenGate)... 14
19. 流统计... 14
20. 资源限制统计... 14
21. 共享服务统计... 14
22. 启动参数汇总... 14
23. ASH 报告... 15
24. ADDM执行... 15
25. 12C 完整AWR报告... 16
1. 快照生成方法
如下:
SQL>execdbms_workload_repository.create_snapshot();
2. 生成AWR报告
如下:
SQL>@$ORACLE_HOME/rdbms/admin/awrrpt.sql
Current Instance
~~~~~~~~~~~~~~~~
DBId DB Name Inst Num Instance
----------- ------------ --------------------
53626287 TOADDB 1toaddb
Specify the Report Type
~~~~~~~~~~~~~~~~~~~~~~~
AWR reports can be generated in thefollowing formats. Pleaseenter the
name of the format at the prompt. Default value is 'html'.
'html' HTMLformat (default)
'text' Textformat
'active-html' Includes Performance Hub active report
Enter value for report_type:html
Type Specified: html
Instances in this Workload Repositoryschema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DBId Inst Num DB Name Instance Host
------------ -------- ------------------------ ------------
* 53626287 1 TOADDB toaddb OEL
Using 53626287for database Id
Using 1 for instance number
Specify the number of days of snapshots tochoose from
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Entering the number of days (n) will resultin the most recent
(n) days of snapshots being listed. Pressing <return> without
specifying a number lists all completed snapshots.
Enter value for num_days:1
Listing the last day's Completed Snapshots
Snap
Instance DB Name Snap Id Snap Started Level
------------ ------------ --------------------------- -----
toaddb TOADDB 10209 Mar 2016 16:48 1
10309 Mar 2016 17:19 1
Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap: 102
Begin Snapshot Id specified: 102
Enter value for end_snap: 103
End Snapshot Id specified: 103
Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name isawrrpt_1_102_103.html. Touse this name,
press <return> to continue, otherwiseenter an alternative.
Enter value for report_name: test_awr.html
Using the report name test_awr.html
……
然后在当前目录下生成一个test_awr.html的awr报告。
3. 系统描述
DB Name | DB Id | Instance | Inst num | Startup Time | Release | RAC |
TOADDB | 53626287 | toaddb | 1 | 09-Mar-16 16:03 | 12.1.0.2.0 | NO |
Host Name | Platform | CPUs | Cores | Sockets | Memory (GB) |
OEL | Linux x86 64-bit | 1 |
|
| 3.61 |
Snap Id | Snap Time | Sessions | Cursors/Session | |
Begin Snap: | 102 | 09-Mar-16 16:48:00 | 33 | 1.0 |
End Snap: | 103 | 09-Mar-16 17:19:01 | 32 | 1.1 |
Elapsed: |
| 31.01 (mins) |
|
|
DB Time: |
| 0.10 (mins) |
描述了数据的ID,数据库名字,启动时间,版本,快照号,运行的版本,CPU数量,内存大小,快照抓取时间,开始的会话数量,结束时候的会话数量,每个会话的游标数量等。
4. 报告汇总
l 负载信息
l 实例命中
l TOP10 等待的前台事件
l 按等待事件的等待类
l 主机系统CPU
l 实例的CPU
l IO负载总体
l 内存统计总体
l CACHAE大小
l 共享池统计
5. 等待事件统计
l 时间模型统计
l 操作系统统计
l 操作系统统计详细
l 前台等待类
l 前台等待事件
l 后台等待事件
l 等待事件直方图
l 等待事件直方图的详细(64ms到 2s)
l 等待事件直方图的详细(4ms到 2min)
l 等待事件直方图的详细(4ms到 1hr)
l 服务统计
l 服务等待类统计
6. SQL统计
l 通过执行时间排序
l 通过CPU时间排序
l 通过USER IO排序
l 通过Gets排序
l 通过Reads排序
l 通过物理读(无优化)排序
l 通过执行数量排序
l 通过解析调用排序
l 通过共享内存排序
l 通过打开的子游标排序
l SQL文本的完整列表
7. 实例活动统计
l 关键实例活动统计
l 实例活动统计
l 实例活动统计的绝对值
l 实例活动统计的进程活动
8. IO状态
l 函数引起的IO
l 文件类型引起的IO
l 函数或文件类型的IO
l 表空间的IO
l 文件的IO
9. 缓存池统计
缓冲池中包含默认的和其他块大小的。
10. 数据库建议统计
根据负载情况,AWR给DBA的一些建议
l 实例汇通统计
l MTTR建议
l 缓存池建议
l PGA 命中汇总
l PGA 命中统计
l PGA命中直方图
l PGA内存建议
l 共享库建议
l SGA建议
l 流池建议
l JAVA POOL 建议
11. 等待统计
l 缓存等待统计
l 队列等待活动
12. 回滚统计
l 回滚段汇总
l 回滚段统计
13. Latch统计
记录的所有LATCH的统计信息
l LACTH活动
l LATCH 睡眠中断
l LATCH 丢失源
l Mutex 睡眠汇总
l 父Latch统计
l 子Latch统计
14. 段信息统计
l 段的逻辑读
l 段的物理读
l 段的物理读请求
l 段的未优化读
l 段的优化读
l 段的直接物理读
l 段的物理写
l 段的物理写请求
l 段的直接物理写
l 表扫描
l 块改变
l 行锁等待
l ITL等待
l Buffer Busy等待
15. 字典CACHE 统计
16. 库缓存统计
17. 内存统计
l 内存动态组件
l 内存组件大小重设置操作汇总
l 进程内存汇总
l SGA内存汇总
l SGA中组件变化
18. 复制统计(X流,GoldenGate)
启用了GoldenGate或XStream后就有记录,蛤蟆这里都是空。
19. 流统计
没有设置就是空了,蛤蟆这里都是空。
20. 资源限制统计
资源限制管理,如果有没有设置就是空了,蛤蟆这里都是空。
21. 共享服务统计
数据库启动共享模式下才有记录。
如果是专有模式就都是0了。
22. 启动参数汇总
修改过的非默认的参数都列出来了,如下:
Parameter Name | Begin value | End value (if different) |
audit_file_dest | /u01/app/oracle/admin/toaddb/adump |
|
audit_trail | DB |
|
compatible | 12.1.0.2.0 |
|
control_files | +DATA/toaddb/control01.ctl, +DATA/toaddb/control02.ctl |
|
db_block_size | 8192 |
|
db_domain |
|
|
db_name | toaddb |
|
diagnostic_dest | /u01/app/oracle |
|
dispatchers | (PROTOCOL=TCP) (SERVICE=toaddbXDB) |
|
local_listener | LISTENER_TOADDB |
|
open_cursors | 300 |
|
optimizer_adaptive_features | FALSE |
|
parallel_max_servers | 8 |
|
parallel_min_servers | 0 |
|
pga_aggregate_target | 377487360 |
|
processes | 300 |
|
remote_login_passwordfile | EXCLUSIVE |
|
session_cached_cursors | 201 |
|
sga_target | 1140850688 |
|
undo_tablespace | UNDOTBS1 |
|
utl_file_dir | /home/oracle/logminer |
23. ASH 报告
12C 的AWR也包好了ASH报告,不用再手动去生成了。
24. ADDM执行
在12C中,AWR报告自带了ADDM了报告,不用再手动生成了。
25. 12C 完整AWR报告
WORKLOAD REPOSITORY report for
DB Name | DB Id | Instance | Inst num | Startup Time | Release | RAC |
TOADDB | 53626287 | toaddb | 1 | 09-Mar-16 16:03 | 12.1.0.2.0 | NO |
Host Name | Platform | CPUs | Cores | Sockets | Memory (GB) |
OEL | Linux x86 64-bit | 1 |
|
| 3.61 |
Snap Id | Snap Time | Sessions | Cursors/Session | |
Begin Snap: | 102 | 09-Mar-16 16:48:00 | 33 | 1.0 |
End Snap: | 103 | 09-Mar-16 17:19:01 | 32 | 1.1 |
Elapsed: |
| 31.01 (mins) |
|
|
DB Time: |
| 0.10 (mins) |
|
|
Report Summary
LoadProfile
Per Second | Per Transaction | Per Exec | Per Call | |
DB Time(s): | 0.0 | 0.1 | 0.00 | 0.01 |
DB CPU(s): | 0.0 | 0.0 | 0.00 | 0.00 |
Background CPU(s): | 0.0 | 0.1 | 0.00 | 0.00 |
Redo size (bytes): | 1,679.8 | 40,074.2 |
|
|
Logical read (blocks): | 40.5 | 966.7 |
|
|
Block changes: | 5.8 | 138.2 |
|
|
Physical read (blocks): | 0.8 | 19.9 |
|
|
Physical write (blocks): | 0.4 | 10.1 |
|
|
Read IO requests: | 0.8 | 19.5 |
|
|
Write IO requests: | 0.2 | 5.7 |
|
|
Read IO (MB): | 0.0 | 0.2 |
|
|
Write IO (MB): | 0.0 | 0.1 |
|
|
IM scan rows: | 0.0 | 0.0 |
|
|
Session Logical Read IM: |
|
|
|
|
User calls: | 0.4 | 10.1 |
|
|
Parses (SQL): | 2.9 | 70.0 |
|
|
Hard parses (SQL): | 0.3 | 6.0 |
|
|
SQL Work Area (MB): | 0.1 | 1.8 |
|
|
Logons: | 0.1 | 2.1 |
|
|
Executes (SQL): | 5.8 | 137.1 |
|
|
Rollbacks: | 0.0 | 0.0 |
|
|
Transactions: | 0.0 |
|
|
|
InstanceEfficiency Percentages (Target 100%)
Buffer Nowait %: | 100.00 | Redo NoWait %: | 100.00 |
Buffer Hit %: | 97.95 | In-memory Sort %: | 100.00 |
Library Hit %: | 89.21 | Soft Parse %: | 91.37 |
Execute to Parse %: | 48.96 | Latch Hit %: | 100.00 |
Parse CPU to Parse Elapsd %: | 47.06 | % Non-Parse CPU: | 50.82 |
Flash Cache Hit %: | 0.00 |
Top10 Foreground Events by Total Wait Time
Event | Waits | Total Wait Time (sec) | Wait Avg(ms) | % DB time | Wait Class |
DB CPU |
| 2 |
| 31.2 |
|
db file sequential read | 95 | 1.3 | 13.25 | 20.1 | User I/O |
log file sync | 21 | 1 | 47.21 | 15.8 | Commit |
Disk file operations I/O | 399 | .1 | 0.16 | 1.0 | User I/O |
control file sequential read | 217 | .1 | 0.24 | .8 | System I/O |
CSS initialization | 1 | 0 | 3.25 | .1 | Other |
latch: shared pool | 1 | 0 | 1.58 | .0 | Concurrency |
CSS operation: query | 6 | 0 | 0.12 | .0 | Other |
CSS operation: action | 1 | 0 | 0.68 | .0 | Other |
direct path write temp | 2 | 0 | 0.23 | .0 | User I/O |
WaitClasses by Total Wait Time
Wait Class | Waits | Total Wait Time (sec) | Avg Wait (ms) | % DB time | Avg Active Sessions |
System I/O | 5,881 | 10 | 1.72 | 161.5 | 0.0 |
User I/O | 2,320 | 6 | 2.45 | 90.7 | 0.0 |
Other | 894 | 3 | 3.47 | 49.6 | 0.0 |
DB CPU |
| 2 |
| 31.2 | 0.0 |
Commit | 25 | 1 | 39.83 | 15.9 | 0.0 |
Concurrency | 4 | 0 | 2.34 | .1 | 0.0 |
Network | 373 | 0 | 0.00 | .0 | 0.0 |
Application | 2 | 0 | 0.10 | .0 | 0.0 |
HostCPU
CPUs | Cores | Sockets | Load Average Begin | Load Average End | %User | %System | %WIO | %Idle |
1 |
|
| 0.16 | 0.10 | 0.8 | 0.4 | 1.1 | 98.8 |
InstanceCPU
%Total CPU | %Busy CPU | %DB time waiting for CPU (Resource Manager) |
0.4 | 35.7 | 0.0 |
IOProfile
Read+Write Per Second | Read per Second | Write Per Second | |
Total Requests: | 4.1 | 3.1 | 1.0 |
Database Requests: | 1.1 | 0.8 | 0.2 |
Optimized Requests: | 0.0 | 0.0 | 0.0 |
Redo Requests: | 0.1 | 0.0 | 0.1 |
Total (MB): | 0.1 | 0.0 | 0.0 |
Database (MB): | 0.0 | 0.0 | 0.0 |
Optimized Total (MB): | 0.0 | 0.0 | 0.0 |
Redo (MB): | 0.0 | 0.0 | 0.0 |
Database (blocks): | 1.3 | 0.8 | 0.4 |
Via Buffer Cache (blocks): | 1.2 | 0.8 | 0.4 |
Direct (blocks): | 0.0 | 0.0 | 0.0 |
MemoryStatistics
Begin | End | |
Host Mem (MB): | 3,693.9 | 3,693.9 |
SGA use (MB): | 1,088.0 | 1,088.0 |
PGA use (MB): | 140.9 | 140.1 |
% Host Mem used for SGA+PGA: | 33.27 | 33.25 |
CacheSizes
Begin | End | |||
Buffer Cache: | 736M | 736M | Std Block Size: | 8K |
Shared Pool Size: | 240M | 240M | Log Buffer: | 13,528K |
In-Memory Area: | 0M | 0M |
SharedPool Statistics
Begin | End | |
Memory Usage %: | 90.47 | 86.45 |
% SQL with executions>1: | 72.34 | 76.65 |
% Memory for SQL w/exec>1: | 70.97 | 61.66 |
Main Report
- Report Summary
- Wait Events Statistics
- SQL Statistics
- Instance Activity Statistics
- IO Stats
- Buffer Pool Statistics
- Advisory Statistics
- Wait Statistics
- Undo Statistics
- Latch Statistics
- Segment Statistics
- Dictionary Cache Statistics
- Library Cache Statistics
- Memory Statistics
- Replication Statistics (GoldenGate, XStream)
- Streams Statistics
- Resource Limit Statistics
- Shared Server Statistics
- init.ora Parameters
- Active Session History (ASH) Report
- ADDM Reports
Back to Top
Wait Events Statistics
- Time Model Statistics
- Operating System Statistics
- Operating System Statistics - Detail
- Foreground Wait Class
- Foreground Wait Events
- Background Wait Events
- Wait Event Histogram
- Wait Event Histogram Detail (64 msec to 2 sec)
- Wait Event Histogram Detail (4 sec to 2 min)
- Wait Event Histogram Detail (4 min to 1 hr)
- Service Statistics
- Service Wait Class Stats
Back to Top
Time Model Statistics
- DB Time represents total time in user calls
- DB CPU represents CPU time of foreground processes
- Total CPU Time represents foreground and background processes
- Statistics including the word "background" measure background process time, therefore do not contribute to the DB time statistic
- Ordered by % of DB time in descending order, followed by Statistic Name
Statistic Name | Time (s) | % of DB Time | % of Total CPU Time |
sql execute elapsed time | 4.64 | 74.11 |
|
DB CPU | 1.95 | 31.19 | 24.43 |
parse time elapsed | 1.88 | 30.05 |
|
hard parse elapsed time | 1.83 | 29.23 |
|
PL/SQL compilation elapsed time | 0.54 | 8.61 |
|
PL/SQL execution elapsed time | 0.18 | 2.88 |
|
connection management call elapsed time | 0.09 | 1.38 |
|
hard parse (sharing criteria) elapsed time | 0.04 | 0.63 |
|
failed parse elapsed time | 0.03 | 0.48 |
|
repeated bind elapsed time | 0.00 | 0.03 |
|
sequence load elapsed time | 0.00 | 0.01 |
|
DB time | 6.26 |
|
|
background elapsed time | 32.35 |
|
|
background cpu time | 6.04 |
| 75.57 |
total CPU time | 7.99 |
|
|
Back to Wait EventsStatistics
Back to Top
Operating System Statistics
- *TIME statistic values are diffed. All others display actual values. End Value is displayed if different
- ordered by statistic type (CPU Use, Virtual Memory, Hardware Config), Name
Statistic | Value | End Value |
FREE_MEMORY_BYTES | 921,088,000 | 907,710,464 |
INACTIVE_MEMORY_BYTES | 1,740,865,536 | 1,696,837,632 |
SWAP_FREE_BYTES | 2,097,147,904 |
|
BUSY_TIME | 2,240 |
|
IDLE_TIME | 177,120 |
|
IOWAIT_TIME | 1,925 |
|
SYS_TIME | 705 |
|
USER_TIME | 1,518 |
|
LOAD | 0 | 0 |
PHYSICAL_MEMORY_BYTES | 3,873,296,384 |
|
NUM_CPUS | 1 |
|
GLOBAL_RECEIVE_SIZE_MAX | 4,194,304 |
|
GLOBAL_SEND_SIZE_MAX | 1,048,586 |
|
TCP_RECEIVE_SIZE_DEFAULT | 87,380 |
|
TCP_RECEIVE_SIZE_MAX | 6,291,456 |
|
TCP_RECEIVE_SIZE_MIN | 4,096 |
|
TCP_SEND_SIZE_DEFAULT | 16,384 |
|
TCP_SEND_SIZE_MAX | 4,194,304 |
|
TCP_SEND_SIZE_MIN | 4,096 |
|
Back to Wait EventsStatistics
Back to Top
Operating System Statistics - Detail
Snap Time | Load | %busy | %user | %sys | %idle | %iowait |
09-Mar 16:48:00 | 0.16 |
|
|
|
|
|
09-Mar 17:19:01 | 0.10 | 1.25 | 0.85 | 0.39 | 98.75 | 1.07 |
Back to Wait EventsStatistics
Back to Top
Foreground Wait Class
- s - second, ms - millisecond - 1000th of a second
- ordered by wait time desc, waits desc
- %Timeouts: value of 0 indicates value was < .5%. Value of null is truly 0
- Captured Time accounts for 69.1% of Total DB time 6.26 (s)
- Total FG Wait Time: 2.37 (s) DB CPU time: 1.95 (s)
Wait Class | Waits | %Time -outs | Total Wait Time (s) | Avg wait (ms) | %DB time |
DB CPU |
|
| 2 |
| 31.19 |
User I/O | 496 | 0 | 1 | 2.67 | 21.12 |
Commit | 21 | 0 | 1 | 47.21 | 15.84 |
System I/O | 217 | 0 | 0 | 0.24 | 0.82 |
Other | 8 | 0 | 0 | 0.58 | 0.07 |
Concurrency | 1 | 0 | 0 | 1.58 | 0.03 |
Network | 233 | 0 | 0 | 0.00 | 0.00 |
Application | 2 | 0 | 0 | 0.10 | 0.00 |
Back to Wait EventsStatistics
Back to Top
Foreground Wait Events
- s - second, ms - millisecond - 1000th of a second
- Only events with Total Wait Time (s) >= .001 are shown
- ordered by wait time desc, waits desc (idle events last)
- %Timeouts: value of 0 indicates value was < .5%. Value of null is truly 0
Event | Waits | %Time -outs | Total Wait Time (s) | Avg wait (ms) | Waits /txn | % DB time |
db file sequential read | 95 |
| 1 | 13.25 | 1.22 | 20.11 |
log file sync | 21 |
| 1 | 47.21 | 0.27 | 15.84 |
Disk file operations I/O | 399 |
| 0 | 0.16 | 5.12 | 1.01 |
control file sequential read | 217 |
| 0 | 0.24 | 2.78 | 0.82 |
CSS initialization | 1 |
| 0 | 3.25 | 0.01 | 0.05 |
latch: shared pool | 1 |
| 0 | 1.58 | 0.01 | 0.03 |
SQL*Net message from client | 234 |
| 2,521 | 10774.05 | 3.00 |
|
jobq slave wait | 1,917 | 99 | 955 | 498.37 | 24.58 |
|
Back to Wait EventsStatistics
Back to Top
Background Wait Events
- ordered by wait time desc, waits desc (idle events last)
- Only events with Total Wait Time (s) >= .001 are shown
- %Timeouts: value of 0 indicates value was < .5%. Value of null is truly 0
Event | Waits | %Time -outs | Total Wait Time (s) | Avg wait (ms) | Waits /txn | % bg time |
control file parallel write | 618 | 0 | 5 | 8.72 | 7.92 | 16.66 |
db file sequential read | 1,558 | 0 | 4 | 2.70 | 19.97 | 13.00 |
db file parallel write | 406 | 0 | 3 | 6.62 | 5.21 | 8.31 |
oracle thread bootstrap | 101 | 0 | 2 | 21.02 | 1.29 | 6.56 |
log file parallel write | 243 | 0 | 2 | 6.57 | 3.12 | 4.93 |
os thread creation | 101 | 0 | 1 | 9.22 | 1.29 | 2.88 |
control file sequential read | 3,992 | 0 | 0 | 0.10 | 51.18 | 1.28 |
Disk file operations I/O | 205 | 0 | 0 | 0.22 | 2.63 | 0.14 |
LGWR wait for redo copy | 22 | 0 | 0 | 1.14 | 0.28 | 0.08 |
db file scattered read | 8 | 0 | 0 | 2.51 | 0.10 | 0.06 |
direct path write temp | 34 | 0 | 0 | 0.44 | 0.44 | 0.05 |
CSS initialization | 2 | 0 | 0 | 7.16 | 0.03 | 0.04 |
row cache lock | 1 | 0 | 0 | 6.96 | 0.01 | 0.02 |
local write wait | 4 | 0 | 0 | 1.13 | 0.05 | 0.01 |
log file sync | 4 | 0 | 0 | 1.09 | 0.05 | 0.01 |
direct path write | 2 | 0 | 0 | 1.15 | 0.03 | 0.01 |
ASM file metadata operation | 372 | 0 | 0 | 0.00 | 4.77 | 0.01 |
CSS operation: query | 12 | 0 | 0 | 0.13 | 0.15 | 0.00 |
CSS operation: action | 2 | 0 | 0 | 0.74 | 0.03 | 0.00 |
latch: lob segment hash table latch | 1 | 0 | 0 | 1.09 | 0.01 | 0.00 |
rdbms ipc message | 10,742 | 98 | 27,814 | 2589.30 | 137.72 |
|
Space Manager: slave idle wait | 1,221 | 96 | 5,918 | 4846.77 | 15.65 |
|
DIAG idle wait | 3,719 | 0 | 3,719 | 1000.08 | 47.68 |
|
shared server idle wait | 62 | 100 | 1,860 | 30007.41 | 0.79 |
|
AQPC idle | 62 | 100 | 1,860 | 30004.64 | 0.79 |
|
dispatcher timer | 31 | 100 | 1,860 | 60006.85 | 0.40 |
|
smon timer | 21 | 14 | 1,860 | 88576.39 | 0.27 |
|
ASM background timer | 372 | 0 | 1,860 | 5000.04 | 4.77 |
|
pmon timer | 620 | 100 | 1,860 | 2999.88 | 7.95 |
|
heartbeat redo informer | 1,859 | 0 | 1,860 | 1000.45 | 23.83 |
|
wait for unread message on broadcast channel | 619 | 100 | 1,859 | 3003.47 | 7.94 |
|
lreg timer | 619 | 100 | 1,858 | 3001.26 | 7.94 |
|
Streams AQ: qmn coordinator idle wait | 132 | 50 | 1,848 | 14003.43 | 1.69 |
|
Streams AQ: qmn slave idle wait | 66 | 0 | 1,848 | 28006.82 | 0.85 |
|
SQL*Net message from client | 175 | 0 | 0 | 0.38 | 2.24 |
|
class slave wait | 81 | 0 | 0 | 0.68 | 1.04 |
|
Back to Wait EventsStatistics
Back to Top
Wait Event Histogram
- Units for Total Waits column: K is 1000, M is 1000000, G is 1000000000
- % of Waits: value of .0 indicates value was <.05%; value of null is truly 0
- % of Waits: column heading of <=1s is truly <1024ms, >1s is truly >=1024ms
- Ordered by Event (idle events last)
|
| % of Waits | |||||||
Event | Total Waits | <1ms | <2ms | <4ms | <8ms | <16ms | <32ms | <=1s | >1s |
ASM file metadata operation | 372 | 100.0 |
|
|
|
|
|
|
|
CSS initialization | 3 |
|
| 33.3 | 33.3 | 33.3 |
|
|
|
CSS operation: action | 3 | 100.0 |
|
|
|
|
|
|
|
CSS operation: query | 18 | 100.0 |
|
|
|
|
|
|
|
Disk file operations I/O | 609 | 99.2 | .2 |
|
| .2 | .5 |
|
|
LGWR wait for redo copy | 22 | 40.9 | 59.1 |
|
|
|
|
|
|
SQL*Net break/reset to client | 2 | 100.0 |
|
|
|
|
|
|
|
SQL*Net message to client | 373 | 100.0 |
|
|
|
|
|
|
|
asynch descriptor resize | 277 | 100.0 |
|
|
|
|
|
|
|
buffer busy waits | 1 | 100.0 |
|
|
|
|
|
|
|
control file parallel write | 618 | 72.7 | 8.9 | 1.3 | 8.1 | 2.9 | 2.8 | 3.4 |
|
control file sequential read | 4216 | 98.6 | 1.2 | .1 | .0 | .1 |
| .0 |
|
db file async I/O submit | 406 | 100.0 |
|
|
|
|
|
|
|
db file parallel write | 406 | 71.7 | 4.7 | 4.2 | 5.7 | 4.2 | 4.7 | 4.9 |
|
db file scattered read | 8 | 75.0 |
|
| 12.5 | 12.5 |
|
|
|
db file sequential read | 1457 | 72.3 | 1.1 | 1.9 | 8.1 | 12.4 | 1.4 | 2.7 |
|
direct path write | 2 | 50.0 |
| 50.0 |
|
|
|
|
|
direct path write temp | 36 | 94.4 | 2.8 | 2.8 |
|
|
|
|
|
latch: lob segment hash table latch | 1 |
| 100.0 |
|
|
|
|
|
|
latch: shared pool | 2 | 50.0 | 50.0 |
|
|
|
|
|
|
local write wait | 4 | 75.0 | 25.0 |
|
|
|
|
|
|
log file parallel write | 243 | 39.9 | 49.4 | 3.3 | .8 | 2.1 | 1.2 | 3.3 |
|
log file sync | 25 | 52.0 | 32.0 | 4.0 |
|
|
| 12.0 |
|
oracle thread bootstrap | 103 |
|
|
| 1.9 | 51.5 | 20.4 | 26.2 |
|
os thread creation | 103 | 7.8 | 36.9 | 9.7 | 3.9 | 5.8 | 35.0 | 1.0 |
|
row cache lock | 1 |
|
|
| 100.0 |
|
|
|
|
AQPC idle | 62 |
|
|
|
|
|
|
| 100.0 |
ASM background timer | 372 |
|
|
|
|
|
|
| 100.0 |
DIAG idle wait | 3721 |
|
|
|
|
|
| 99.9 | .1 |
SQL*Net message from client | 409 | 89.5 | .7 | .7 |
| .2 | .5 | 7.6 | .7 |
Space Manager: slave idle wait | 1218 | .1 | .2 | .2 | .4 | .2 | .2 | 1.1 | 97.6 |
Streams AQ: qmn coordinator idle wait | 132 | 50.0 |
|
|
|
|
|
| 50.0 |
Streams AQ: qmn slave idle wait | 66 |
|
|
|
|
|
|
| 100.0 |
class slave wait | 83 | 96.4 | 1.2 |
| 1.2 |
| 1.2 |
|
|
dispatcher timer | 31 |
|
|
|
|
|
|
| 100.0 |
heartbeat redo informer | 1860 |
|
|
|
|
|
| 99.9 | .1 |
jobq slave wait | 1917 |
|
| .1 |
|
|
| 99.9 |
|
lreg timer | 620 |
|
|
|
|
|
|
| 100.0 |
pmon timer | 621 |
|
|
|
|
|
|
| 100.0 |
rdbms ipc message | 10.7K | .5 | .1 | .1 | .4 | .2 | .1 | 35.6 | 62.9 |
shared server idle wait | 62 |
|
|
|
|
|
|
| 100.0 |
smon timer | 19 | 15.8 | 5.3 |
| 5.3 |
| 10.5 | 10.5 | 52.6 |
wait for unread message on broadcast channel | 621 |
|
|
|
|
|
|
| 100.0 |
Back to Wait Events Statistics
Back to Top
Wait Event Histogram Detail (64 msec to2 sec)
- Units for Total Waits column: K is 1000, M is 1000000, G is 1000000000
- Units for % of Total Waits: ms is milliseconds s is 1024 milliseconds (approximately 1 second)
- % of Total Waits: total waits for all wait classes, including Idle
- % of Total Waits: value of .0 indicates value was <.05%; value of null is truly 0
- Ordered by Event (only non-idle events are displayed)
|
| % of Total Waits | |||||||
Event | Waits 64ms to 2s | <32ms | <64ms | <1/8s | <1/4s | <1/2s | <1s | <2s | >=2s |
control file parallel write | 21 | 96.6 | .8 | 1.1 | .5 | .8 | .2 |
|
|
control file sequential read | 1 | 100.0 | .0 |
|
|
|
|
|
|
db file parallel write | 20 | 95.1 | 2.7 | 1.2 | 1.0 |
|
|
|
|
db file sequential read | 40 | 97.3 | 1.2 | 1.3 | .2 |
|
|
|
|
log file parallel write | 8 | 96.7 | 1.6 | .4 | .4 | .8 |
|
|
|
log file sync | 3 | 88.0 |
| 4.0 | 4.0 |
| 4.0 |
|
|
oracle thread bootstrap | 27 | 73.8 | 25.2 | 1.0 |
|
|
|
|
|
os thread creation | 1 | 99.0 | 1.0 |
|
|
|
|
|
|
Back to Wait EventsStatistics
Back to Top
Wait Event Histogram Detail (4 sec to 2min)
Nodata exists for this section of the report.
Back to Wait EventsStatistics
Back to Top
Wait Event Histogram Detail (4 min to 1hr)
Nodata exists for this section of the report.
Back to Wait EventsStatistics
Back to Top
Service Statistics
- ordered by DB Time
Service Name | DB Time (s) | DB CPU (s) | Physical Reads (K) | Logical Reads (K) |
SYS$USERS | 6 | 2 | 0 | 23 |
SYS$BACKGROUND | 0 | 0 | 1 | 51 |
toaddb | 0 | 0 | 0 | 0 |
toaddbXDB | 0 | 0 | 0 | 0 |
Back to Wait EventsStatistics
Back to Top
Service Wait Class Stats
- Wait Class info for services in the Service Statistics section.
- Total Waits and Time Waited displayed for the following wait classes: User I/O, Concurrency, Administrative, Network
- Time Waited (Wt Time) in seconds
Service Name | User I/O Total Wts | User I/O Wt Time | Concurcy Total Wts | Concurcy Wt Time | Admin Total Wts | Admin Wt Time | Network Total Wts | Network Wt Time |
SYS$USERS | 579 | 5 | 1 | 0 | 0 | 0 | 233 | 0 |
SYS$BACKGROUND | 1434 | 3 | 3 | 0 | 0 | 0 | 0 | 0 |
Back to Wait EventsStatistics
Back to Top
SQL Statistics
- SQL ordered by Elapsed Time
- SQL ordered by CPU Time
- SQL ordered by User I/O Wait Time
- SQL ordered by Gets
- SQL ordered by Reads
- SQL ordered by Physical Reads (UnOptimized)
- SQL ordered by Executions
- SQL ordered by Parse Calls
- SQL ordered by Sharable Memory
- SQL ordered by Version Count
- Complete List of SQL Text
Back to Top
SQL ordered by Elapsed Time
- Resources reported for PL/SQL code includes the resources used by all SQL statements called by the code.
- % Total DB Time is the Elapsed Time of the SQL statement divided into the Total Database Time multiplied by 100
- %Total - Elapsed Time as a percentage of Total DB time
- %CPU - CPU Time as a percentage of Elapsed Time
- %IO - User I/O Time as a percentage of Elapsed Time
- Captured SQL account for 304.3% of Total DB Time (s): 6
- Captured PL/SQL account for 272.8% of Total DB Time (s): 6
Elapsed Time (s) | Executions | Elapsed Time per Exec (s) | %Total | %CPU | %IO | SQL Id | SQL Module | SQL Text |
13.57 | 0 |
| 216.80 | 8.28 | 89.76 | bc7gjv3ppdtbz | sqlplus@OEL (TNS V1-V3) | BEGIN dbms_workload_repository... |
2.52 | 1 | 2.52 | 40.31 | 45.55 | 37.56 | fhf8upax5cxsz | MMON_SLAVE | BEGIN sys.dbms_auto_report_int... |
2.19 | 1 | 2.19 | 35.01 | 50.71 | 29.50 | 5k5207588w9ry | MMON_SLAVE | SELECT DBMS_REPORT.GET_REPORT(... |
1.90 | 26 | 0.07 | 30.43 | 1.31 | 99.24 | c3zymn7x3k6wy |
| select obj#, dataobj#, part#, ... |
1.54 | 1 | 1.54 | 24.69 | 0.71 | 99.39 | g67y24u07t83k |
| insert into wrh$_seg_stat (sna... |
1.14 | 74 | 0.02 | 18.21 | 2.72 | 97.35 | 3y6pgnk2ubw7g |
| insert into wrm$_snapshot_deta... |
1.14 | 23 | 0.05 | 18.15 | 2.02 | 99.06 | 130dvvr5s8bgn |
| select obj#, dataobj#, part#, ... |
1.03 | 1 | 1.03 | 16.45 | 1.46 | 91.26 | 4bc30jxu2tnn5 |
| insert into wrh$_tablespace_st... |
0.98 | 1 | 0.98 | 15.60 | 1.54 | 98.65 | 4r62dbqxw2r10 |
| insert into wrh$_bg_event_summ... |
0.61 | 1 | 0.61 | 9.70 | 1.65 | 98.44 | antwva8smnnmt |
| insert into wrh$_enqueue_stat ... |
0.56 | 1 | 0.56 | 8.98 | 3.56 | 96.18 | 8adcur42pddxj |
| insert into wrh$_java_pool_adv... |
0.53 | 91 | 0.01 | 8.40 | 9.32 | 96.52 | cvn54b7yz0s8u |
| select /*+ index(idl_ub1$ i_id... |
0.52 | 91 | 0.01 | 8.28 | 2.12 | 98.76 | 39m4sx9k63ba2 |
| select /*+ index(idl_ub2$ i_id... |
0.51 | 1 | 0.51 | 8.22 | 3.11 | 97.01 | cd1q0zw912c1p |
| insert into WRH$_SERVICE_STAT ... |
0.44 | 1 | 0.44 | 7.05 | 1.13 | 98.49 | daa1t30srjkgy |
| insert into wrh$_waitstat (dbi... |
0.34 | 1 | 0.34 | 5.46 | 22.83 | 76.31 | 9ctt1scmwbmbg |
| begin dbsnmp.bsln_internal.mai... |
0.31 | 1 | 0.31 | 4.95 | 4.52 | 95.76 | 1uaz41wrxw03k |
| insert into wrh$_osstat (dbid,... |
0.30 | 1 | 0.30 | 4.84 | 64.72 | 21.88 | grjtn5w5y8jfj | MMON_SLAVE | SELECT XMLELEMENT( "spot_addm"... |
0.28 | 1 | 0.28 | 4.50 | 3.20 | 96.94 | b0213nvxps96x |
| insert into wrh$_filestatxs (d... |
0.28 | 1 | 0.28 | 4.45 | 3.59 | 96.57 | 43ndx0zqwbfr8 |
| insert into wrh$_tempstatxs (d... |
0.28 | 1 | 0.28 | 4.44 | 6.12 | 94.61 | c6ba83wrttjwx |
| insert into WRH$_SERVICE_WAIT_... |
0.28 | 2 | 0.14 | 4.41 | 27.87 | 73.50 | 3cuh5pwuv6m5v | sqlplus@OEL (TNS V1-V3) | SELECT NUM_ROWS, BLOCKS, EMPTY... |
0.26 | 1 | 0.26 | 4.22 | 67.82 | 22.36 | 0v63zun6jkb47 | MMON_SLAVE | SELECT XMLCONCAT(XMLELEMENT( "... |
0.25 | 1 | 0.25 | 4.07 | 1.57 | 98.93 | bkw3supfuskbc |
| insert into wrh$_seg_stat_obj ... |
0.25 | 1 | 0.25 | 4.06 | 57.13 | 33.91 | 0vcs754gpmxrc | MMON_SLAVE | WITH binds as (select :dbid as... |
0.25 | 1 | 0.25 | 3.98 | 7.22 | 92.66 | bnznj24yxuzah |
| insert into WRH$_IOSTAT_FILETY... |
0.25 | 1 | 0.25 | 3.96 | 12.90 | 4.09 | 71yg7b00vhz0v | MMON_SLAVE | SELECT SQL_LIST.* FROM XMLTABL... |
0.22 | 1 | 0.22 | 3.57 | 4.92 | 94.97 | 71rqmw80jcqcw |
| insert into wrh$_parameter (db... |
0.20 | 1 | 0.20 | 3.18 | 47.25 | 53.04 | gwg69nz9j8vvb |
| insert into wrh$_latch (dbid, ... |
0.19 | 1 | 0.19 | 3.08 | 21.80 | 72.84 | 5h7xwu611bxv2 | MMON_SLAVE | select xmlagg(nvl2(event, xml... |
0.18 | 31 | 0.01 | 2.82 | 93.90 | 6.65 | 4phvdvx32a3mf |
| begin prvt_ilm.stopjobs(-1, tr... |
0.17 | 31 | 0.01 | 2.73 | 88.41 | 0.00 | 7kmbrw7q8hn4g |
| begin prvt_ilm.ilm_cleanup; en... |
0.13 | 1 | 0.13 | 2.09 | 50.37 | 37.33 | 8p908gp3h35z7 |
| DECLARE job BINARY_INTEGER := ... |
0.12 | 1 | 0.12 | 1.93 | 70.56 | 3.17 | 4kvhga64b6wah | MMON_SLAVE | WITH binds as (select :dbid as... |
0.12 | 31 | 0.00 | 1.84 | 90.37 | 10.21 | a6ygk0r9s5xuj |
| SELECT A.JOB_NAME, ( CASE A.ST... |
0.11 | 91 | 0.00 | 1.79 | 20.55 | 81.23 | ga9j9xk5cy9s0 |
| select /*+ index(idl_sb4$ i_id... |
0.11 | 110 | 0.00 | 1.73 | 18.51 | 83.40 | 3un99a0zwp4vd |
| select owner#, name, namespace... |
0.10 | 31 | 0.00 | 1.67 | 83.30 | 0.00 | 7jycxu86n60qh | oraagent.bin@OEL (TNS V1-V3) | SELECT value FROM v$parameter ... |
0.10 | 1 | 0.10 | 1.54 | 42.66 | 38.11 | 4tmd72wfn52m4 | MMON_SLAVE | with base_data as( select buc... |
0.10 | 31 | 0.00 | 1.52 | 71.27 | 28.97 | fk09qjuf9c3f1 | oraagent.bin@OEL (TNS V1-V3) | select cdb from v$database |
0.09 | 91 | 0.00 | 1.44 | 7.76 | 94.65 | c6awqs517jpj0 |
| select /*+ index(idl_char$ i_i... |
0.09 | 1 | 0.09 | 1.44 | 56.78 | 0.00 | adzjh275fvvx4 | DBMS_SCHEDULER | call WWV_FLOW_WORKSHEET_API.DO... |
0.08 | 139 | 0.00 | 1.31 | 77.97 | 29.72 | 616m6uhpa2usu |
| select i.obj#, i.ts#, i.file#,... |
0.08 | 1 | 0.08 | 1.30 | 83.33 | 3.28 | d2tvgg49y2ap6 | MMON_SLAVE | with base_metrics as ( select... |
0.08 | 948 | 0.00 | 1.29 | 90.29 | 0.79 | 3c1kubcdjnppq |
| update sys.col_usage$ set equa... |
0.08 | 0 |
| 1.29 | 97.93 | 0.00 | 9yrw99s2ww388 |
| select addr, latch#, level#, n... |
0.08 | 1 | 0.08 | 1.28 | 105.28 | 0.00 | 79vddxwy7qz3b |
| select /*+ no_monitor */ CON_I... |
0.08 | 199 | 0.00 | 1.27 | 12.53 | 87.45 | 1p5grz1gs7fjq |
| select obj#, type#, ctime, mti... |
0.08 | 0 |
| 1.27 | 99.14 | 0.00 | 0wr2vfr5t2raw |
| select lt.inst_id, lt.kslltadd... |
0.08 | 1 | 0.08 | 1.25 | 80.55 | 16.63 | aksaf74grz97n | MMON_SLAVE | with alloc_hist as ( -- condi... |
0.07 | 3 | 0.02 | 1.15 | 64.03 | 0.00 | 77nbshknaxk50 | DBMS_SCHEDULER | DECLARE job BINARY_INTEGER := ... |
0.07 | 1 | 0.07 | 1.11 | 61.67 | 37.14 | bt3qs0a178mgd | sqlplus@OEL (TNS V1-V3) | SELECT NUM_ROWS, BLOCKS, EMPTY... |
0.07 | 110 | 0.00 | 1.08 | 17.78 | 79.77 | 8swypbbr0m372 |
| select order#, columns, types ... |
Back to SQL Statistics
Back to Top
SQL ordered by CPU Time
- Resources reported for PL/SQL code includes the resources used by all SQL statements called by the code.
- %Total - CPU Time as a percentage of Total DB CPU
- %CPU - CPU Time as a percentage of Elapsed Time
- %IO - User I/O Time as a percentage of Elapsed Time
- Captured SQL account for 195.1% of Total CPU Time (s): 2
- Captured PL/SQL account for 145.0% of Total CPU Time (s): 2
CPU Time (s) | Executions | CPU per Exec (s) | %Total | Elapsed Time (s) | %CPU | %IO | SQL Id | SQL Module | SQL Text |
1.15 | 1 | 1.15 | 58.86 | 2.52 | 45.55 | 37.56 | fhf8upax5cxsz | MMON_SLAVE | BEGIN sys.dbms_auto_report_int... |
1.12 | 0 |
| 57.53 | 13.57 | 8.28 | 89.76 | bc7gjv3ppdtbz | sqlplus@OEL (TNS V1-V3) | BEGIN dbms_workload_repository... |
1.11 | 1 | 1.11 | 56.92 | 2.19 | 50.71 | 29.50 | 5k5207588w9ry | MMON_SLAVE | SELECT DBMS_REPORT.GET_REPORT(... |
0.20 | 1 | 0.20 | 10.04 | 0.30 | 64.72 | 21.88 | grjtn5w5y8jfj | MMON_SLAVE | SELECT XMLELEMENT( "spot_addm"... |
0.18 | 1 | 0.18 | 9.17 | 0.26 | 67.82 | 22.36 | 0v63zun6jkb47 | MMON_SLAVE | SELECT XMLCONCAT(XMLELEMENT( "... |
0.17 | 31 | 0.01 | 8.50 | 0.18 | 93.90 | 6.65 | 4phvdvx32a3mf |
| begin prvt_ilm.stopjobs(-1, tr... |
0.15 | 31 | 0.00 | 7.74 | 0.17 | 88.41 | 0.00 | 7kmbrw7q8hn4g |
| begin prvt_ilm.ilm_cleanup; en... |
0.15 | 1 | 0.15 | 7.43 | 0.25 | 57.13 | 33.91 | 0vcs754gpmxrc | MMON_SLAVE | WITH binds as (select :dbid as... |
0.10 | 31 | 0.00 | 5.33 | 0.12 | 90.37 | 10.21 | a6ygk0r9s5xuj |
| SELECT A.JOB_NAME, ( CASE A.ST... |
0.09 | 1 | 0.09 | 4.82 | 0.20 | 47.25 | 53.04 | gwg69nz9j8vvb |
| insert into wrh$_latch (dbid, ... |
0.09 | 31 | 0.00 | 4.46 | 0.10 | 83.30 | 0.00 | 7jycxu86n60qh | oraagent.bin@OEL (TNS V1-V3) | SELECT value FROM v$parameter ... |
0.09 | 1 | 0.09 | 4.35 | 0.12 | 70.56 | 3.17 | 4kvhga64b6wah | MMON_SLAVE | WITH binds as (select :dbid as... |
0.08 | 1 | 0.08 | 4.30 | 0.08 | 105.28 | 0.00 | 79vddxwy7qz3b |
| select /*+ no_monitor */ CON_I... |
0.08 | 0 |
| 4.05 | 0.08 | 99.14 | 0.00 | 0wr2vfr5t2raw |
| select lt.inst_id, lt.kslltadd... |
0.08 | 0 |
| 4.05 | 0.08 | 97.93 | 0.00 | 9yrw99s2ww388 |
| select addr, latch#, level#, n... |
0.08 | 1 | 0.08 | 4.00 | 0.34 | 22.83 | 76.31 | 9ctt1scmwbmbg |
| begin dbsnmp.bsln_internal.mai... |
0.08 | 2 | 0.04 | 3.94 | 0.28 | 27.87 | 73.50 | 3cuh5pwuv6m5v | sqlplus@OEL (TNS V1-V3) | SELECT NUM_ROWS, BLOCKS, EMPTY... |
0.07 | 948 | 0.00 | 3.74 | 0.08 | 90.29 | 0.79 | 3c1kubcdjnppq |
| update sys.col_usage$ set equa... |
0.07 | 1 | 0.07 | 3.48 | 0.08 | 83.33 | 3.28 | d2tvgg49y2ap6 | MMON_SLAVE | with base_metrics as ( select... |
0.07 | 31 | 0.00 | 3.48 | 0.10 | 71.27 | 28.97 | fk09qjuf9c3f1 | oraagent.bin@OEL (TNS V1-V3) | select cdb from v$database |
0.07 | 1 | 0.07 | 3.38 | 0.13 | 50.37 | 37.33 | 8p908gp3h35z7 |
| DECLARE job BINARY_INTEGER := ... |
0.06 | 139 | 0.00 | 3.28 | 0.08 | 77.97 | 29.72 | 616m6uhpa2usu |
| select i.obj#, i.ts#, i.file#,... |
0.06 | 1 | 0.06 | 3.23 | 0.08 | 80.55 | 16.63 | aksaf74grz97n | MMON_SLAVE | with alloc_hist as ( -- condi... |
0.06 | 1 | 0.06 | 2.87 | 0.06 | 90.12 | 6.78 | 3za5u1vmpa2zj | MMON_SLAVE | WITH ash as (SELECT round((cas... |
0.05 | 1 | 0.05 | 2.61 | 0.09 | 56.78 | 0.00 | adzjh275fvvx4 | DBMS_SCHEDULER | call WWV_FLOW_WORKSHEET_API.DO... |
0.05 | 91 | 0.00 | 2.51 | 0.53 | 9.32 | 96.52 | cvn54b7yz0s8u |
| select /*+ index(idl_ub1$ i_id... |
0.05 | 1 | 0.05 | 2.46 | 0.06 | 79.05 | 0.00 | cq8s0cpgt7xn9 |
| SELECT xs.sid FROM sys.rxs$ses... |
0.05 | 3 | 0.02 | 2.36 | 0.07 | 64.03 | 0.00 | 77nbshknaxk50 | DBMS_SCHEDULER | DECLARE job BINARY_INTEGER := ... |
0.04 | 1 | 0.04 | 2.25 | 0.05 | 94.28 | 0.00 | g9pu3v9m3q9zm |
| UPDATE /*+ INDEX( wrh$_seg_st... |
0.04 | 1 | 0.04 | 2.20 | 0.07 | 61.67 | 37.14 | bt3qs0a178mgd | sqlplus@OEL (TNS V1-V3) | SELECT NUM_ROWS, BLOCKS, EMPTY... |
0.04 | 1 | 0.04 | 2.15 | 0.19 | 21.80 | 72.84 | 5h7xwu611bxv2 | MMON_SLAVE | select xmlagg(nvl2(event, xml... |
0.04 | 1 | 0.04 | 2.10 | 0.10 | 42.66 | 38.11 | 4tmd72wfn52m4 | MMON_SLAVE | with base_data as( select buc... |
0.03 | 1 | 0.03 | 1.64 | 0.25 | 12.90 | 4.09 | 71yg7b00vhz0v | MMON_SLAVE | SELECT SQL_LIST.* FROM XMLTABL... |
0.03 | 74 | 0.00 | 1.59 | 1.14 | 2.72 | 97.35 | 3y6pgnk2ubw7g |
| insert into wrm$_snapshot_deta... |
0.03 | 1 | 0.03 | 1.54 | 0.06 | 48.97 | 15.55 | 3hftmabv1a652 | MMON_SLAVE | WITH chains as (SELECT w.insta... |
0.03 | 1 | 0.03 | 1.38 | 0.03 | 105.35 | 0.00 | 7d0ffav06dqyd |
| SELECT /*+ no_monitor */ CON_I... |
0.03 | 2 | 0.01 | 1.28 | 0.03 | 87.87 | 0.00 | 00ajuu5902429 |
| merge /*+ dynamic_sampling(mm... |
0.03 | 26 | 0.00 | 1.28 | 1.90 | 1.31 | 99.24 | c3zymn7x3k6wy |
| select obj#, dataobj#, part#, ... |
0.03 | 31 | 0.00 | 1.28 | 0.04 | 68.49 | 0.00 | d9vzav10pcpfh |
| select count(*) from dba_sched... |
0.02 | 1 | 0.02 | 1.23 | 0.03 | 92.74 | 5.24 | 4df3aqh8v98k9 | MMON_SLAVE | WITH iometric as ( select buc... |
0.02 | 1 | 0.02 | 1.23 | 0.03 | 94.31 | 0.00 | bvwv6jvt9b0mj | MMON_SLAVE | WITH binds as (select :dbid as... |
0.02 | 1 | 0.02 | 1.18 | 0.02 | 95.34 | 0.00 | 0vcz1xqfrykmw | MMON_SLAVE | with metrics as ( select inst... |
0.02 | 23 | 0.00 | 1.18 | 1.14 | 2.02 | 99.06 | 130dvvr5s8bgn |
| select obj#, dataobj#, part#, ... |
0.02 | 1 | 0.02 | 1.18 | 0.02 | 99.13 | 0.00 | 9tpnr4jz10j3y | MMON_SLAVE | with metrics as ( select inst... |
0.02 | 91 | 0.00 | 1.18 | 0.11 | 20.55 | 81.23 | ga9j9xk5cy9s0 |
| select /*+ index(idl_sb4$ i_id... |
0.02 | 181 | 0.00 | 1.13 | 0.03 | 83.60 | 0.00 | 14d7z6mh1sxuz |
| select name, intcol#, segcol#,... |
0.02 | 1 | 0.02 | 1.13 | 0.02 | 97.02 | 0.00 | 7qst2kv4mtkv5 |
| SELECT /*+ no_monitor */ CON_I... |
0.02 | 1 | 0.02 | 1.08 | 0.02 | 93.83 | 4.19 | 56t3547hgj91f | MMON_SLAVE | WITH names as (SELECT metric_n... |
0.02 | 110 | 0.00 | 1.02 | 0.11 | 18.51 | 83.40 | 3un99a0zwp4vd |
| select owner#, name, namespace... |
0.02 | 1 | 0.02 | 1.02 | 0.56 | 3.56 | 96.18 | 8adcur42pddxj |
| insert into wrh$_java_pool_adv... |
Back to SQL Statistics
Back to Top
SQL ordered by User I/O Wait Time
- Resources reported for PL/SQL code includes the resources used by all SQL statements called by the code.
- %Total - User I/O Time as a percentage of Total User I/O Wait time
- %CPU - CPU Time as a percentage of Elapsed Time
- %IO - User I/O Time as a percentage of Elapsed Time
- Captured SQL account for 252.3% of Total User I/O Wait Time (s): 6
- Captured PL/SQL account for 236.9% of Total User I/O Wait Time (s): 6
User I/O Time (s) | Executions | UIO per Exec (s) | %Total | Elapsed Time (s) | %CPU | %IO | SQL Id | SQL Module | SQL Text |
12.18 | 0 |
| 214.58 | 13.57 | 8.28 | 89.76 | bc7gjv3ppdtbz | sqlplus@OEL (TNS V1-V3) | BEGIN dbms_workload_repository... |
1.89 | 26 | 0.07 | 33.30 | 1.90 | 1.31 | 99.24 | c3zymn7x3k6wy |
| select obj#, dataobj#, part#, ... |
1.54 | 1 | 1.54 | 27.06 | 1.54 | 0.71 | 99.39 | g67y24u07t83k |
| insert into wrh$_seg_stat (sna... |
1.13 | 23 | 0.05 | 19.83 | 1.14 | 2.02 | 99.06 | 130dvvr5s8bgn |
| select obj#, dataobj#, part#, ... |
1.11 | 74 | 0.01 | 19.54 | 1.14 | 2.72 | 97.35 | 3y6pgnk2ubw7g |
| insert into wrm$_snapshot_deta... |
0.96 | 1 | 0.96 | 16.97 | 0.98 | 1.54 | 98.65 | 4r62dbqxw2r10 |
| insert into wrh$_bg_event_summ... |
0.95 | 1 | 0.95 | 16.69 | 2.52 | 45.55 | 37.56 | fhf8upax5cxsz | MMON_SLAVE | BEGIN sys.dbms_auto_report_int... |
0.94 | 1 | 0.94 | 16.55 | 1.03 | 1.46 | 91.26 | 4bc30jxu2tnn5 |
| insert into wrh$_tablespace_st... |
0.65 | 1 | 0.65 | 11.39 | 2.19 | 50.71 | 29.50 | 5k5207588w9ry | MMON_SLAVE | SELECT DBMS_REPORT.GET_REPORT(... |
0.60 | 1 | 0.60 | 10.53 | 0.61 | 1.65 | 98.44 | antwva8smnnmt |
| insert into wrh$_enqueue_stat ... |
0.54 | 1 | 0.54 | 9.52 | 0.56 | 3.56 | 96.18 | 8adcur42pddxj |
| insert into wrh$_java_pool_adv... |
0.51 | 91 | 0.01 | 9.01 | 0.52 | 2.12 | 98.76 | 39m4sx9k63ba2 |
| select /*+ index(idl_ub2$ i_id... |
0.51 | 91 | 0.01 | 8.94 | 0.53 | 9.32 | 96.52 | cvn54b7yz0s8u |
| select /*+ index(idl_ub1$ i_id... |
0.50 | 1 | 0.50 | 8.79 | 0.51 | 3.11 | 97.01 | cd1q0zw912c1p |
| insert into WRH$_SERVICE_STAT ... |
0.43 | 1 | 0.43 | 7.65 | 0.44 | 1.13 | 98.49 | daa1t30srjkgy |
| insert into wrh$_waitstat (dbi... |
0.30 | 1 | 0.30 | 5.23 | 0.31 | 4.52 | 95.76 | 1uaz41wrxw03k |
| insert into wrh$_osstat (dbid,... |
0.27 | 1 | 0.27 | 4.81 | 0.28 | 3.20 | 96.94 | b0213nvxps96x |
| insert into wrh$_filestatxs (d... |
0.27 | 1 | 0.27 | 4.73 | 0.28 | 3.59 | 96.57 | 43ndx0zqwbfr8 |
| insert into wrh$_tempstatxs (d... |
0.26 | 1 | 0.26 | 4.63 | 0.28 | 6.12 | 94.61 | c6ba83wrttjwx |
| insert into WRH$_SERVICE_WAIT_... |
0.26 | 1 | 0.26 | 4.59 | 0.34 | 22.83 | 76.31 | 9ctt1scmwbmbg |
| begin dbsnmp.bsln_internal.mai... |
0.25 | 1 | 0.25 | 4.44 | 0.25 | 1.57 | 98.93 | bkw3supfuskbc |
| insert into wrh$_seg_stat_obj ... |
0.23 | 1 | 0.23 | 4.07 | 0.25 | 7.22 | 92.66 | bnznj24yxuzah |
| insert into WRH$_IOSTAT_FILETY... |
0.21 | 1 | 0.21 | 3.74 | 0.22 | 4.92 | 94.97 | 71rqmw80jcqcw |
| insert into wrh$_parameter (db... |
0.20 | 2 | 0.10 | 3.58 | 0.28 | 27.87 | 73.50 | 3cuh5pwuv6m5v | sqlplus@OEL (TNS V1-V3) | SELECT NUM_ROWS, BLOCKS, EMPTY... |
0.14 | 1 | 0.14 | 2.47 | 0.19 | 21.80 | 72.84 | 5h7xwu611bxv2 | MMON_SLAVE | select xmlagg(nvl2(event, xml... |
0.11 | 1 | 0.11 | 1.86 | 0.20 | 47.25 | 53.04 | gwg69nz9j8vvb |
| insert into wrh$_latch (dbid, ... |
0.09 | 91 | 0.00 | 1.60 | 0.11 | 20.55 | 81.23 | ga9j9xk5cy9s0 |
| select /*+ index(idl_sb4$ i_id... |
0.09 | 110 | 0.00 | 1.59 | 0.11 | 18.51 | 83.40 | 3un99a0zwp4vd |
| select owner#, name, namespace... |
0.09 | 1 | 0.09 | 1.52 | 0.25 | 57.13 | 33.91 | 0vcs754gpmxrc | MMON_SLAVE | WITH binds as (select :dbid as... |
0.09 | 91 | 0.00 | 1.50 | 0.09 | 7.76 | 94.65 | c6awqs517jpj0 |
| select /*+ index(idl_char$ i_i... |
0.07 | 199 | 0.00 | 1.23 | 0.08 | 12.53 | 87.45 | 1p5grz1gs7fjq |
| select obj#, type#, ctime, mti... |
0.07 | 1 | 0.07 | 1.17 | 0.30 | 64.72 | 21.88 | grjtn5w5y8jfj | MMON_SLAVE | SELECT XMLELEMENT( "spot_addm"... |
0.06 | 1 | 0.06 | 1.04 | 0.26 | 67.82 | 22.36 | 0v63zun6jkb47 | MMON_SLAVE | SELECT XMLCONCAT(XMLELEMENT( "... |
Back to SQL Statistics
Back to Top
SQL ordered by Gets
- Resources reported for PL/SQL code includes the resources used by all SQL statements called by the code.
- %Total - Buffer Gets as a percentage of Total Buffer Gets
- %CPU - CPU Time as a percentage of Elapsed Time
- %IO - User I/O Time as a percentage of Elapsed Time
- Total Buffer Gets: 75,400
- Captured SQL account for 85.9% of Total
Buffer Gets | Executions | Gets per Exec | %Total | Elapsed Time (s) | %CPU | %IO | SQL Id | SQL Module | SQL Text |
23,313 | 0 |
| 30.92 | 13.57 | 8.3 | 89.8 | bc7gjv3ppdtbz | sqlplus@OEL (TNS V1-V3) | BEGIN dbms_workload_repository... |
16,337 | 1 | 16,337.00 | 21.67 | 2.52 | 45.5 | 37.6 | fhf8upax5cxsz | MMON_SLAVE | BEGIN sys.dbms_auto_report_int... |
14,630 | 1 | 14,630.00 | 19.40 | 2.19 | 50.7 | 29.5 | 5k5207588w9ry | MMON_SLAVE | SELECT DBMS_REPORT.GET_REPORT(... |
5,208 | 31 | 168.00 | 6.91 | 0.18 | 93.9 | 6.6 | 4phvdvx32a3mf |
| begin prvt_ilm.stopjobs(-1, tr... |
3,816 | 424 | 9.00 | 5.06 | 0.03 | 59.4 | 0 | 04kug40zbu4dm |
| select policy#, action# from a... |
3,317 | 31 | 107.00 | 4.40 | 0.17 | 88.4 | 0 | 7kmbrw7q8hn4g |
| begin prvt_ilm.ilm_cleanup; en... |
3,224 | 62 | 52.00 | 4.28 | 0.02 | 83.1 | 0 | fq3f1vdv581ds |
| SELECT COUNT(*) FROM DBA_SCHED... |
3,213 | 948 | 3.39 | 4.26 | 0.08 | 90.3 | .8 | 3c1kubcdjnppq |
| update sys.col_usage$ set equa... |
3,171 | 1 | 3,171.00 | 4.21 | 0.09 | 56.8 | 0 | adzjh275fvvx4 | DBMS_SCHEDULER | call WWV_FLOW_WORKSHEET_API.DO... |
2,691 | 1 | 2,691.00 | 3.57 | 0.25 | 57.1 | 33.9 | 0vcs754gpmxrc | MMON_SLAVE | WITH binds as (select :dbid as... |
2,371 | 1 | 2,371.00 | 3.14 | 0.30 | 64.7 | 21.9 | grjtn5w5y8jfj | MMON_SLAVE | SELECT XMLELEMENT( "spot_addm"... |
1,976 | 1 | 1,976.00 | 2.62 | 0.34 | 22.8 | 76.3 | 9ctt1scmwbmbg |
| begin dbsnmp.bsln_internal.mai... |
1,909 | 1 | 1,909.00 | 2.53 | 0.26 | 67.8 | 22.4 | 0v63zun6jkb47 | MMON_SLAVE | SELECT XMLCONCAT(XMLELEMENT( "... |
1,894 | 110 | 17.22 | 2.51 | 0.11 | 18.5 | 83.4 | 3un99a0zwp4vd |
| select owner#, name, namespace... |
1,891 | 31 | 61.00 | 2.51 | 0.12 | 90.4 | 10.2 | a6ygk0r9s5xuj |
| SELECT A.JOB_NAME, ( CASE A.ST... |
1,713 | 110 | 15.57 | 2.27 | 0.07 | 17.8 | 79.8 | 8swypbbr0m372 |
| select order#, columns, types ... |
1,612 | 31 | 52.00 | 2.14 | 0.04 | 68.5 | 0 | d9vzav10pcpfh |
| select count(*) from dba_sched... |
1,550 | 214 | 7.24 | 2.06 | 0.01 | 64.9 | 0 | 5n1fs4m2n2y0r |
| select pos#, intcol#, col#, sp... |
1,545 | 2 | 772.50 | 2.05 | 0.28 | 27.9 | 73.5 | 3cuh5pwuv6m5v | sqlplus@OEL (TNS V1-V3) | SELECT NUM_ROWS, BLOCKS, EMPTY... |
1,267 | 91 | 13.92 | 1.68 | 0.53 | 9.3 | 96.5 | cvn54b7yz0s8u |
| select /*+ index(idl_ub1$ i_id... |
1,234 | 1 | 1,234.00 | 1.64 | 0.20 | 47.2 | 53 | gwg69nz9j8vvb |
| insert into wrh$_latch (dbid, ... |
1,036 | 1 | 1,036.00 | 1.37 | 0.13 | 50.4 | 37.3 | 8p908gp3h35z7 |
| DECLARE job BINARY_INTEGER := ... |
970 | 139 | 6.98 | 1.29 | 0.08 | 78 | 29.7 | 616m6uhpa2usu |
| select i.obj#, i.ts#, i.file#,... |
879 | 98 | 8.97 | 1.17 | 0.02 | 92.5 | 0 | bb926a5dcb8kr |
| merge into sys.mon_mods$ m usi... |
Back to SQL Statistics
Back to Top
SQL ordered by Reads
- %Total - Physical Reads as a percentage of Total Disk Reads
- %CPU - CPU Time as a percentage of Elapsed Time
- %IO - User I/O Time as a percentage of Elapsed Time
- Total Disk Reads: 1,548
- Captured SQL account for 57.6% of Total
Physical Reads | Executions | Reads per Exec | %Total | Elapsed Time (s) | %CPU | %IO | SQL Id | SQL Module | SQL Text |
302 | 1 | 302.00 | 19.51 | 2.52 | 45.55 | 37.56 | fhf8upax5cxsz | MMON_SLAVE | BEGIN sys.dbms_auto_report_int... |
285 | 0 |
| 18.41 | 13.57 | 8.28 | 89.76 | bc7gjv3ppdtbz | sqlplus@OEL (TNS V1-V3) | BEGIN dbms_workload_repository... |
245 | 1 | 245.00 | 15.83 | 2.19 | 50.71 | 29.50 | 5k5207588w9ry | MMON_SLAVE | SELECT DBMS_REPORT.GET_REPORT(... |
189 | 91 | 2.08 | 12.21 | 0.53 | 9.32 | 96.52 | cvn54b7yz0s8u |
| select /*+ index(idl_ub1$ i_id... |
76 | 26 | 2.92 | 4.91 | 1.90 | 1.31 | 99.24 | c3zymn7x3k6wy |
| select obj#, dataobj#, part#, ... |
65 | 1 | 65.00 | 4.20 | 0.34 | 22.83 | 76.31 | 9ctt1scmwbmbg |
| begin dbsnmp.bsln_internal.mai... |
45 | 23 | 1.96 | 2.91 | 1.14 | 2.02 | 99.06 | 130dvvr5s8bgn |
| select obj#, dataobj#, part#, ... |
42 | 2 | 21.00 | 2.71 | 0.28 | 27.87 | 73.50 | 3cuh5pwuv6m5v | sqlplus@OEL (TNS V1-V3) | SELECT NUM_ROWS, BLOCKS, EMPTY... |
39 | 91 | 0.43 | 2.52 | 0.52 | 2.12 | 98.76 | 39m4sx9k63ba2 |
| select /*+ index(idl_ub2$ i_id... |
26 | 1 | 26.00 | 1.68 | 0.30 | 64.72 | 21.88 | grjtn5w5y8jfj | MMON_SLAVE | SELECT XMLELEMENT( "spot_addm"... |
25 | 1 | 25.00 | 1.61 | 0.26 | 67.82 | 22.36 | 0v63zun6jkb47 | MMON_SLAVE | SELECT XMLCONCAT(XMLELEMENT( "... |
21 | 1 | 21.00 | 1.36 | 0.25 | 57.13 | 33.91 | 0vcs754gpmxrc | MMON_SLAVE | WITH binds as (select :dbid as... |
18 | 1 | 18.00 | 1.16 | 0.19 | 21.80 | 72.84 | 5h7xwu611bxv2 | MMON_SLAVE | select xmlagg(nvl2(event, xml... |
Back to SQL Statistics
Back to Top
SQL ordered by Physical Reads(UnOptimized)
- UnOptimized Read Reqs = Physical Read Reqts - Optimized Read Reqs
- %Opt - Optimized Reads as percentage of SQL Read Requests
- %Total - UnOptimized Read Reqs as a percentage of Total UnOptimized Read Reqs
- Total Physical Read Requests: 1,519
- Captured SQL account for 95.7% of Total
- Total UnOptimized Read Requests: 1,519
- Captured SQL account for 95.7% of Total
- Total Optimized Read Requests: 1
- Captured SQL account for 0.0% of Total
UnOptimized Read Reqs | Physical Read Reqs | Executions | UnOptimized Reqs per Exec | %Opt | %Total | SQL Id | SQL Module | SQL Text |
410 | 410 | 0 |
| 0.00 | 26.99 | bc7gjv3ppdtbz | sqlplus@OEL (TNS V1-V3) | BEGIN dbms_workload_repository... |
374 | 374 | 1 | 374.00 | 0.00 | 24.62 | fhf8upax5cxsz | MMON_SLAVE | BEGIN sys.dbms_auto_report_int... |
310 | 310 | 1 | 310.00 | 0.00 | 20.41 | 5k5207588w9ry | MMON_SLAVE | SELECT DBMS_REPORT.GET_REPORT(... |
217 | 217 | 31 | 7.00 | 0.00 | 14.29 | 4phvdvx32a3mf |
| begin prvt_ilm.stopjobs(-1, tr... |
217 | 217 | 31 | 7.00 | 0.00 | 14.29 | a6ygk0r9s5xuj |
| SELECT A.JOB_NAME, ( CASE A.ST... |
217 | 217 | 31 | 7.00 | 0.00 | 14.29 | fk09qjuf9c3f1 | oraagent.bin@OEL (TNS V1-V3) | select cdb from v$database |
189 | 189 | 91 | 2.08 | 0.00 | 12.44 | cvn54b7yz0s8u |
| select /*+ index(idl_ub1$ i_id... |
76 | 76 | 26 | 2.92 | 0.00 | 5.00 | c3zymn7x3k6wy |
| select obj#, dataobj#, part#, ... |
62 | 62 | 1 | 62.00 | 0.00 | 4.08 | 9ctt1scmwbmbg |
| begin dbsnmp.bsln_internal.mai... |
45 | 45 | 23 | 1.96 | 0.00 | 2.96 | 130dvvr5s8bgn |
| select obj#, dataobj#, part#, ... |
42 | 42 | 2 | 21.00 | 0.00 | 2.76 | 3cuh5pwuv6m5v | sqlplus@OEL (TNS V1-V3) | SELECT NUM_ROWS, BLOCKS, EMPTY... |
39 | 39 | 91 | 0.43 | 0.00 | 2.57 | 39m4sx9k63ba2 |
| select /*+ index(idl_ub2$ i_id... |
37 | 37 | 1 | 37.00 | 0.00 | 2.44 | bnznj24yxuzah |
| insert into WRH$_IOSTAT_FILETY... |
33 | 33 | 1 | 33.00 | 0.00 | 2.17 | grjtn5w5y8jfj | MMON_SLAVE | SELECT XMLELEMENT( "spot_addm"... |
32 | 32 | 1 | 32.00 | 0.00 | 2.11 | 0v63zun6jkb47 | MMON_SLAVE | SELECT XMLCONCAT(XMLELEMENT( "... |
18 | 18 | 1 | 18.00 | 0.00 | 1.18 | 5h7xwu611bxv2 | MMON_SLAVE | select xmlagg(nvl2(event, xml... |
Back to SQL Statistics
Back to Top
SQL ordered by Executions
- %CPU - CPU Time as a percentage of Elapsed Time
- %IO - User I/O Time as a percentage of Elapsed Time
- Total Executions: 10,692
- Captured SQL account for 39.4% of Total
Executions | Rows Processed | Rows per Exec | Elapsed Time (s) | %CPU | %IO | SQL Id | SQL Module | SQL Text |
948 | 948 | 1.00 | 0.08 | 90.3 | .8 | 3c1kubcdjnppq |
| update sys.col_usage$ set equa... |
424 | 0 | 0.00 | 0.03 | 59.4 | 0 | 04kug40zbu4dm |
| select policy#, action# from a... |
214 | 561 | 2.62 | 0.01 | 64.9 | 0 | 5n1fs4m2n2y0r |
| select pos#, intcol#, col#, sp... |
199 | 137 | 0.69 | 0.08 | 12.5 | 87.5 | 1p5grz1gs7fjq |
| select obj#, type#, ctime, mti... |
181 | 2,909 | 16.07 | 0.03 | 83.6 | 0 | 14d7z6mh1sxuz |
| select name, intcol#, segcol#,... |
139 | 214 | 1.54 | 0.08 | 78 | 29.7 | 616m6uhpa2usu |
| select i.obj#, i.ts#, i.file#,... |
133 | 132 | 0.99 | 0.01 | 108.4 | 0 | 9tgj4g8y4rwy8 |
| select type#, blocks, extents,... |
110 | 768 | 6.98 | 0.11 | 18.5 | 83.4 | 3un99a0zwp4vd |
| select owner#, name, namespace... |
110 | 745 | 6.77 | 0.07 | 17.8 | 79.8 | 8swypbbr0m372 |
| select order#, columns, types ... |
108 | 108 | 1.00 | 0.00 | 64.3 | 17.8 | grwydz59pu6mc |
| select text from view$ where r... |
Back to SQL Statistics
Back to Top
SQL ordered by Parse Calls
- Total Parse Calls: 5,457
- Captured SQL account for 48.7% of Total
Parse Calls | Executions | % Total Parses | SQL Id | SQL Module | SQL Text |
424 | 424 | 7.77 | 04kug40zbu4dm |
| select policy#, action# from a... |
352 | 948 | 6.45 | 3c1kubcdjnppq |
| update sys.col_usage$ set equa... |
110 | 110 | 2.02 | 3un99a0zwp4vd |
| select owner#, name, namespace... |
110 | 110 | 2.02 | 8swypbbr0m372 |
| select order#, columns, types ... |
108 | 108 | 1.98 | grwydz59pu6mc |
| select text from view$ where r... |
98 | 98 | 1.80 | bb926a5dcb8kr |
| merge into sys.mon_mods$ m usi... |
91 | 91 | 1.67 | 39m4sx9k63ba2 |
| select /*+ index(idl_ub2$ i_id... |
91 | 91 | 1.67 | c6awqs517jpj0 |
| select /*+ index(idl_char$ i_i... |
91 | 91 | 1.67 | cvn54b7yz0s8u |
| select /*+ index(idl_ub1$ i_id... |
91 | 91 | 1.67 | ga9j9xk5cy9s0 |
| select /*+ index(idl_sb4$ i_id... |
89 | 89 | 1.63 | asvzxj61dc5vs |
| select timestamp, flags from f... |
74 | 74 | 1.36 | 3y6pgnk2ubw7g |
| insert into wrm$_snapshot_deta... |
63 | 63 | 1.15 | 5ms6rbzdnq16t |
| select job, nvl2(last_date, 1,... |
62 | 62 | 1.14 | fq3f1vdv581ds |
| SELECT COUNT(*) FROM DBA_SCHED... |
Back to SQL Statistics
Back to Top
SQL ordered by Sharable Memory
- Only Statements with Sharable Memory greater than 1048576 are displayed
Sharable Mem (b) | Executions | % Total | SQL Id | SQL Module | SQL Text |
1,116,398 | 1 | 0.44 | 0vcs754gpmxrc | MMON_SLAVE | WITH binds as (select :dbid as... |
Back to SQL Statistics
Back to Top
SQL ordered by Version Count
Nodata exists for this section of the report.
Back to SQL Statistics
Back to Top
Complete List of SQL Text
SQL Id | SQL Text |
00ajuu5902429 | merge /*+ dynamic_sampling(mm 4) dynamic_sampling_est_cdn(mm) dynamic_sampling(m 4) dynamic_sampling_est_cdn(m) */ into mon_mods_all$ mm using (select decode(grouping_id(tp.bo#, m.obj#), 1, tp.bo#, m.obj#) obj#, sum(m.inserts) inserts, sum(m.updates) updates, sum(m.deletes) deletes, case when grouping_id(tp.bo#, m.obj#) = 0 then (/* IF THIS IS A PARTITION AGGREGATE THE TRUNCATE BIT */ decode(sum(bitand(m.flags, 1)), 0, 0, 1) +decode(sum(bitand(m.flags, 2)), 0, 0, 2) +decode(sum(bitand(m.flags, 4)), 0, 0, 4) /* ADD NEW KSXM BITS HERE */ ) else (/* IF THIS IS A TABLE DO NOT AGGREAGATE THE TRUNCATE BIT */ decode(sum(bitand(m.flags, 2)), 0, 0, 2) +decode(sum(bitand(m.flags, 4)), 0, 0, 4) /* ADD NEW KSXM BITS HERE */ ) end as flags, max(m.timestamp) timestamp, sum(m.drop_segments) drop_segments from sys.mon_mods$ m, (select obj#, bo# from sys.tabpart$ where :objn = 0 union all select obj#, bo# from sys.tabcompart$ where :objn = 0 union all select obj#, bo# from sys.tabpart$ where :objn > 0 and (bo# = :objn or obj# = :objn) union all select obj#, bo# from sys.tabcompart$ where :objn > 0 and (bo# = :objn or obj# = :objn) ) tp where m.obj# = tp.obj# group by rollup(tp.bo#, m.obj #) having grouping_id(tp.bo#, m.obj#) < 3 ) v on (mm.obj# = v.obj#) when matched then update set mm.inserts = mm.inserts + v.inserts, mm.updates = mm.updates + v.updates, mm.deletes = mm.deletes + v.deletes, mm.flags = mm.flags + v.flags - bitand(mm.flags, v.flags) /* bitor(mm.flags, v.flags) */, mm.timestamp = v.timestamp, mm.drop_segments = mm.drop_segments + v.drop_segments when NOT matched then i nsert (obj#, inserts, updates, deletes, timestamp, flags, drop_segments) values (v.obj#, v.inserts, v.updates, v.deletes, sysdate, v.flags, v.drop_segments) |
04kug40zbu4dm | select policy#, action# from aud_object_opt$ where object# = :1 and type = 2 |
0v63zun6jkb47 | SELECT XMLCONCAT(XMLELEMENT( "sql_data", SYS.PRVT_RTADDM.GETSECTIONS(:B2 , :B1 , 'all'))) FROM DUAL |
0vcs754gpmxrc | WITH binds as (select :dbid as dbid , :inst_id_low as instIdLow , :inst_id_high as instIdHigh , :begin_snap as beginSnap , :end_snap as endSnap , :begin_time as beginTime , :end_time as endTime , :disk_begin_time as diskBeginTime , :disk_end_time as diskEndTime , :mem_begin_time as memBeginTime , :mem_end_time as memEndTime , :bucket_count as bucketCount , :bucket_interval as bucketInterval , :mem_enable as memEnable , :disk_enable as diskEnable , :disk_filter_ratio as filterRatio, :filter_action as filter_action, :filter_blocking_session as filter_blocking_session, :filter_capture_id as filter_capture_id, :filter_client_id as filter_client_id, :filter_consumer_group_id as filter_consumer_group_id, :filter_dbop as filter_dbop, :filter_ecid as filter_ecid, :filter_event as filter_event, :filter_instance_number as filter_instance_number, :filter_is_captured as filter_is_captured, :filter_is_filtered_out as filter_is_filtered_out, :filter_is_nc_background as filter_is_nc_background, :filter_is_replayed as filter_is_replayed, :filter_machine as filter_machine, :filter_machine_port as filter_machine_port, :filter_module as filter_module, :filter_object as filter_object, :filter_pdb as filter_pdb, :filter_physical_session as filter_physical_session, :filter_pl_sql as filter_pl_sql, :filter_pl_sql_top as filter_pl_sql_top, :filter_program as filter_program, :filter_px_process as filter_px_process, :filter_service_hash as filter_service_hash, :filter_session_type as filter_session_type, :filter_sql_fms as filter_sql_fms, :filter_sql_id_top as filter _sql_id_top, :filter_sql_opcode as filter_sql_opcode, :filter_sql_opcode_top as filter_sql_opcode_top, :filter_sql_rws as filter_sql_rws, :filter_sql_rws_line as filter_sql_rws_line, :filter_sqlid as filter_sqlid, :filter_sqlid_fullphv as filter_sqlid_fullphv, :filter_sqlid_phv as filter_sqlid_phv, :filter_user_id as filter_user_id, :filter_wait_class as filter_wait_class, :filter_xid as filter_xid from dual) , unified_ash as (SELECT a.sample_id , a.sample_time , a.session_id , a.session_serial# , a.session_type , a.session_state , a.flags , a.user_id , a.sql_id , a.sql_opcode , a.sql_opname , a.top_level_sql_id , a.top_level_sql_opcode , a.sql_child_number , a.sql_plan_hash_value , a.sql_full_plan_hash_value , a.sql_plan_line_id , a.sql_plan_operation , a.sql_plan_options , a.sql_exec_id , a.force_ matching_signature , a.plsql_entry_object_id , a.plsql_entry_subprogram_id , a.plsql_object_id , a.plsql_subprogram_id , a.service_hash , a.qc_session_id , a.qc_instance_id , a.qc_session_serial# , nvl(a.event, CASE WHEN bitand(a.time_model, power(2, 19)) > 0 THEN 'CPU: IM Populate' WHEN bitand(a.time_model, power(2, 20)) > 0 THEN 'CPU: IM Prepopulate' WHEN bitand(a.time_model, power(2, 21)) > 0 THEN 'CPU: IM Repopulate' WHEN bitand(a.time_model, power(2, 22)) > 0 THEN 'CPU: IM Trickle Repop' WHEN bitand(a.time_model, power(2, 18)) > 0 THEN 'CPU: IM Query' ELSE 'CPU + Wait for CPU' END) as event , nvl(a.event_id, 1) as event_id , nvl(a.wait_class, 'CPU') as wait_class , nvl(a.wait_class_id, 9999) as wait_class_id , a.seq# , a.p1 , a.p1text , a.p2 , a.p2text , a.p3 , a.p3text , a.wait_time , a.time_waited , rawtohex(a.xid) as xid , a.blocking_session , a.blocking_session_serial# , a.blocking_session_status , a.blocking_inst_id , a.current_obj# , a.current_file# , a.current_block# , a.top_level_call# , a.top_level_call_name , a.program , a.module , a.action , a.client_id , a.remote_instance# , a.ecid , a.consumer_group_id , a.machine , a.port , a.in_connection_mgmt , a.in_parse , a.in_hard_parse , a.in_sql_execution , a.in_plsql_execution , a.in_plsql_rpc , a.in_plsql_compilation , a.in_java_execution , a.in_bind , a.in_cursor_close , a.in_sequence_load , a.is_captured , a.is_replayed , a.dbreplay_file_id , a.dbop_name , a.con_dbid, decode(binds.diskEnable, 0, 1, binds.filterRatio) as sample_count , inst_id as instance_number FROM gv$active_session_history a, binds WHERE binds.memEnable = 1 AND ( binds.diskEnable = 0 OR ( binds.diskEnable = 1 AND a.is_awr_sample = 'Y' AND bitand(a.flags, 128) = 0 ) ) AND a.inst_id between binds.instIdLow and binds.instIdHigh AND a.sample_time between binds.beginTime and binds.endTime UNION ALL SELECT a.sample_id , a.sample_time , a.session_id , a. session_serial# , a.session_type , a.session_state , a.flags , a.user_id , a.sql_id , a.sql_opcode , a.sql_opname , a.top_level_sql_id , a.top_level_sql_opcode , a.sql_child_number , a.sql_plan_hash_value , a.sql_full_plan_hash_value , a.sql_plan_line_id , a.sql_plan_operation , a.sql_plan_options , a.sql_exec_id , a.force_matching_signature , a.plsql_entry_object_id , a.plsql_entry_subprogram_id , a.plsql_object_id , a.plsql_subprogram_id , a.service_hash , a.qc_session_id , a.qc_instance_id , a.qc_session_serial# , nvl(a.event, CASE WHEN bitand(a.time_model, power(2, 19)) > 0 THEN 'CPU: IM Populate' WHEN bitand(a.time_model, power(2, 20)) > 0 THEN 'CPU: IM Prepopulate' WHEN bitand(a .time_model, power(2, 21)) > 0 THEN 'CPU: IM Repopulate' WHEN bitand(a.time_model, power(2, 22)) > 0 THEN 'CPU: IM Trickle Repop' WHEN bitand(a.time_model, power(2, 18)) > 0 THEN 'CPU: IM Query' ELSE 'CPU + Wait for CPU' END) as event , nvl(a.event_id, 1) as event_id , nvl(a.wait_class, 'CPU') as wait_class , nvl(a.wait_class_id, 9999) as wait_class_id , a.seq# , a.p1 , a.p1text , a.p2 , a.p2text , a.p3 , a.p3text , a.wait_time , a.time_waited , rawtohex(a.xid) as xid , a.blocking_session , a.blocking_session_serial# , a.blocking_session_status , a.blocking_inst_id , a.current_obj# , a.current_file# , a.current_block# , a.top_level_call# , a.top_level_call_name , a.program , a.module , a.action , a.client_id , a.remote_instance# , a.ecid , a.consumer_group_id , a.machine , a.port , a.in_connection_mgmt , a.in_parse , a.in_hard_parse , a.in_sql_execution , a.in_plsql_execution , a.in_plsql_rpc , a.in_plsql_compilation , a.in_java_execution , a.in_bind , a.in_cursor_close , a.in_sequence_load , a.is_captured , a.is_replayed , a.dbreplay_file_id , a.dbop_name , a.con_dbid, binds.filterRatio as sample_count , instance_number as instance_number FROM dba_hist_active_sess_history a, binds WHERE binds.diskEnable = 1 AND a.dbid = binds.dbid AND a.instance_number between binds.instIdLow and binds.instIdHigh AND a.snap_id between binds.beginSnap and binds.endSnap AND a.sample_time between binds.beginTime and binds.endTime ), logical_ash as (select sample_id , sample_time , sample_count , instance_number as inst_id, action as action, event as event, instance_number as instance_number, module as module, instance_number || ':' || session_id || ', ' || session_serial# as physical_session, service_hash as service_hash, sql_id as sqlid, wait_class as wait_class, xid as xid, user_id as user_id, program as program from unified_ash) , bucketized_ash as (SELECT ash0.*, (case when binds.bucketCount > 1 then trunc( ( (24 * 60 * 60 * extract(day from sample_t ime - binds.beginTime)) + (60 * 60 * extract(hour from sample_time - binds.beginTime)) + (60 * extract(minute from sample_time - binds.beginTime)) + (1 * extract(second from sample_time - binds.beginTime)) ) / binds.bucketInterval ) + 1 else 1 end) as bucket_number FROM logical_ash ash0, binds), filter_xml as (SELECT xmlconcat(xmlelement("filters" ) , xmlelement(" report_time", xmlattributes( to_char(o.begintime, 'HH24:MI:SS MM/DD/YYYY') as "begin_time", to_char(o.endtime, 'HH24:MI:SS MM/DD/YYYY') as "end_time"))) as xml_frag FROM (select binds.*, nvl(to_number(filter_pdb), 0) as con_dbid from binds) o) , filtered_ash as (SELECT ash.*, 1 filtered FROM bucketized_ash ash, binds WHERE 1=1 ), grouped_ash as (SELECT ash.*, 0 AS bucket_type FROM (SELECT sqlid, physical_session, action, module, service_hash, instance_number, event, wait_class , grouping_id(sqlid, physical_session, action, module, service_hash, instance_number, event, wait_class) as gid , max(inst_id) as inst_id , sum(sample_count) as sample_count , count(distinct sqlid) as uniq_sqlids , count(distinct xid) as uniq_xids , count(distinct physical_session) as uniq_sessions , count(distinct instance_number) as uniq_instances, max(user_id) as user_id, max(program) as program from filtered_ash group by grouping sets( (wait_class), (sqlid), (module), (event), (action), (instance_number), (physical_session), (service_hash)) ) ash ), component_1_treemap as (select dim_val , inst_id , sample_count , num_mem , mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , 0 AS bucket_type --target(not global)/filtered bucket from (select max(case when mem_rank <= 13 then dim_val else null end) as dim_val , sum(sample_count) as sample_count , count(*) as num_mem , max(case when mem_rank <= 13 then mem_rank else (13 + 1) end) as mem_rank , max(case when mem_rank <= 13 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when mem_rank <= 13 then uniq_xids else 0 end) as uniq_xids , max(case when mem_rank <= 13 then uniq_sessions else 0 end) as uniq_sessions , max(case when mem_rank <= 13 then uniq_instances else 0 end) as uniq_instances , max(inst_id) as inst_id from (select wait_class as dim_val , sample_count , dense_rank() over (order by sample_count desc , wait_class) as mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 254 and wait_class is not null) group by (case when mem_rank <= 13 then dim_val else null end) ) left ) , component_1_xml as (select xmlelement("item" , xmlattributes('wait_class' as "id" , topmems.cnt_all as "count" , topmems.num_mem as "num_mem" , topmems.nu m_others as "num_others") , topmems.topmems_frag) as dim_frag from (select xmlelement( "top_mems" , xmlattributes(sum(case when mem_rank <= 13 then sample_count else 0 end) as "count") , xmlagg(xmlelement( "mem" , xmlattributes(mem_rank as "id" , dim_val as "name" , sample_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances") ) order by sample_count desc)) as topmems_frag , sum(case when mem_rank <= 13 then 1 else 0 end) as num_mem , sum(sample_count) as cnt_all , max(case when mem_rank <= 13 then 0 else num_mem end) as num_others f rom (component_1_treemap) t ) topmems), component_2_treemap as (select dim_val , inst_id , sample_count , num_mem , mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , 0 AS bucket_type --target(not global)/filtered bucket from (select max(case when mem_rank <= 5 then dim_val else null end) as dim_val , sum(sample_count) as sample_count , count(*) as num_mem , max(case when mem_rank <= 5 then mem_rank else (5 + 1) end) as mem_rank , max(case when mem_rank <= 5 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when mem_rank <= 5 then uniq_xids else 0 end) as uniq_xids , max(case when mem_rank <= 5 then uniq_sessions else 0 end) as uniq_sessions , max(case when mem_rank <= 5 then uniq_instances else 0 end) as uniq_instances , max(inst_id) as inst_id from (select event as dim_val , sample_count , dense_rank() over (order by sample_count desc , event) as mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 253 and event is not null) group by (case when mem_rank <= 5 then dim_val else null end) ) left ) , component_2_xml as (select xmlelement("item" , xmlattributes('event' as "id" , topmems.cnt_all as "count" , topmems.num_mem as "num_mem" , topmems.num_others as "num_others") , topmems.topmems_frag) as dim_frag from (select xmlelement( "top_mems" , xmlattributes(sum(case when mem_rank <= 5 then sample_count else 0 end) as "count") , xmlagg (xmlelement( "mem" , xmlattributes(mem_rank as "id" , dim_val as "name" , sample_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances") ) order by sample_count desc)) as topmems_frag , sum(case when mem_rank <= 5 then 1 else 0 end) as num_mem , sum(sample_count) as cnt_all , max(case when mem_rank <= 5 then 0 else num_mem end) as num_others from (component_2_treemap) t ) topmems), component_3_treemap as (select dim_val , inst_id , sample_count , num_mem , mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , 0 AS bucket_type --target(not global)/filtered bucket from (select max(case when mem_rank <= 5 then dim_val else null end) as dim_val , sum(sample_count) as sample_count , count(*) as num_mem , max(case when mem_rank <= 5 then mem_rank else (5 + 1) end) as mem_rank , max(case when mem_rank <= 5 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when mem_rank <= 5 then uniq_xids else 0 end) as uniq_xids , max(case when mem_rank <= 5 then uniq_sessions else 0 end) as uniq_sessions , max(case when mem_rank <= 5 then uniq_instances else 0 end) as uniq_instances , max(inst_id) as inst_id from (select instance_number as dim_val , sample_count , dense_rank() over (order by sample_count desc , instance_number) as mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 251 and instance_number is not null) group by (case when mem_rank <= 5 then dim_val else null end) ) left ) , component_3_xml as (select xmlelement("item" , xmlattributes('instance_number' as "id" , topmems.cnt_all as "count" , topmems.num_mem as "num_mem" , topmems.num_others as "num_others") , topmems.topmems_frag) as dim_frag from (select xmlelement( "top_mems" , xmlattributes(sum(case when mem_rank <= 5 then sample_count else 0 end) as "count") , xmlagg(xmlelement( "mem" , xmlattributes(mem_rank as "id" , dim_val as "name" , sample_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances") ) order by sample_count desc)) as topmems_frag , sum(case when mem_rank <= 5 then 1 else 0 end) as num_mem , sum(sample_count) as cnt_all , max(case when mem_rank <= 5 then 0 else num_mem end) as num_others from (component_3_treemap) t ) topmems), component_4_treemap as (select dim_val , inst_id , sample_count , num_mem , mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , 0 AS bucket_type --target(not global)/filtered bucket , NVL((SELECT name FROM gv$active_services v WHERE v.name_hash = left.dim_val AND v.inst_id = left.inst_id AND rownum < 2 ), ( SELECT service_name FROM dba_hist_service_name v, binds b WHERE v.dbid = b.dbid AND v.service_name_hash = left.dim_val AND rownum < 2)) as service_name from (select max(case when mem_rank <= 5 then dim_val else null end) as dim_val , sum(sample_count) as sample_count , count(*) as num_mem , max(case when mem_rank <= 5 then mem_rank else (5 + 1) end) as mem_rank , max(case when mem_rank <= 5 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when mem_rank <= 5 then uniq_xids else 0 end) as uniq_xids , max(case when mem_rank <= 5 then uniq_sessions else 0 end) as uniq_sessions , max(case when mem_rank <= 5 then uniq_instances else 0 end) as uniq_instances , max(inst_id) as inst_id from (select service_hash as dim_val , sample_count , dense_rank() over (order by sample_count desc , service_hash) as mem_rank , uniq_s qlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 247 and service_hash is not null) group by (case when mem_rank <= 5 then dim_val else null end) ) left ) , component_4_xml as (select xmlelement("item" , xmlattributes('service_hash' as "id" , topmems.cnt_all as "count" , topmems.num_mem as "num_mem" , topmems.num_others as "num_others") , topmems.topmems_frag) as dim_frag from (select xmlelement( "top_mems" , xmlattributes(sum(case when mem_rank <= 5 then sample_count else 0 end) as "count") , xmlagg(xmlelement( "mem" , xmlattributes(mem_rank as "id" , dim_val as "name" , sample_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances") , service_name) order by sample_count desc)) as topmems_frag , sum(case when mem_rank <= 5 then 1 else 0 end) as num_mem , sum(sample_count) as cnt_all , max(case when mem_rank <= 5 then 0 else num_mem end) as num _others from (component_4_treemap) t ) topmems), component_5_treemap as (select dim_val , inst_id , sample_count , num_mem , mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , 0 AS bucket_type --target(not global)/filtered bucket from (select max(case when mem_rank <= 5 then dim_val else null end) as dim_val , sum(sample_count) as sample_count , count(*) as num_mem , max(case when mem_rank <= 5 then mem_rank else (5 + 1) end) as mem_rank , max(case when mem_rank <= 5 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when mem_rank <= 5 then uniq_xids else 0 end) as uniq_xids , max(case when mem_rank <= 5 then uniq_sessions else 0 end) as uniq_sessions , max(case when mem_rank <= 5 then uniq_instances else 0 end) as uniq_instances , max(inst_id) as inst_id from (select module as dim_val , sample_count , dense_rank() over (order by sample_count desc , module) as mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 239 and module is not null) group by (case wh en mem_rank <= 5 then dim_val else null end) ) left ) , component_5_xml as (select xmlelement("item" , xmlattributes('module' as "id" , topmems.cnt_all as "count" , topmems.num_mem as "num_mem" , topmems.num_others as "num_others") , topmems.topmems_frag) as dim_frag from (select xmlelement( "top_mems" , xmlattributes(sum(case when mem_rank <= 5 then sample_count else 0 end) as "count") , xmlagg(xmlelement( "mem" , xmlattributes(mem_rank as "id" , dim_val as "name" , sample_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances") ) order by sample_count desc)) as topmems_frag , sum(case when mem_rank <= 5 then 1 else 0 end) as num_mem , sum(sample_count) as cnt_all , max(case when mem_rank <= 5 then 0 else num_mem end) as num_others from (component_5_treemap) t ) topmems), component_6_treemap as (select dim_val , inst_id , sample_count , num_mem , mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , un iq_instances , 0 AS bucket_type --target(not global)/filtered bucket from (select max(case when mem_rank <= 5 then dim_val else null end) as dim_val , sum(sample_count) as sample_count , count(*) as num_mem , max(case when mem_rank <= 5 then mem_rank else (5 + 1) end) as mem_rank , max(case when mem_rank <= 5 then uniq_sqlids else 0 end) as uniq_sqlids , max(case w hen mem_rank <= 5 then uniq_xids else 0 end) as uniq_xids , max(case when mem_rank <= 5 then uniq_sessions else 0 end) as uniq_sessions , max(case when mem_rank <= 5 then uniq_instances else 0 end) as uniq_instances , max(inst_id) as inst_id from (select action as dim_val , sample_count , dense_rank() over (order by sample_count desc , action) as mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 223 and action is not null) group by (case when mem_rank <= 5 then dim_val else null end) ) left ) , component_6_xml as (select xmlelement("item" , xmlattributes('action' as "id" , topmems.cnt_all as "count" , topmems.num_mem as "num_mem" , topmems.num_others as "num_others") , topmems.topmems_frag) as dim_frag from (select xmlelement( "top_mems" , xmlattributes(sum(case when mem_rank <= 5 then sample_count else 0 end) as "count") , xmlagg(xmlelement( "mem" , xmlattributes(mem_rank as "id" , dim_val as "name" , sample_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances") ) order by sample_count desc)) as topmems_frag , sum(case when mem_rank <= 5 then 1 else 0 end) as num_mem , sum(sample_count) as cnt_all , max(case when mem_rank <= 5 then 0 else num_mem end) as num_others from (component_6_treemap) t ) topmems), component_7_treemap as (select dim_val , inst_id , sample_count , num_mem , mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , 0 AS bucket_type --target(not global)/filtered bucket , user_id, program from (select max(case when mem_rank <= 5 then dim_val else null end) as dim_val , sum(sample_count) as sample_count , count(*) as num_mem , max(case when mem_rank <= 5 then mem_rank else (5 + 1) end) as mem_rank , max(case when mem_rank <= 5 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when mem_rank <= 5 then uniq_xids else 0 end) as uniq_xids , max(case when mem_rank <= 5 then uniq_sessions else 0 end) as uniq_sessions , max(case whe n mem_rank <= 5 then uniq_instances else 0 end) as uniq_instances , max(inst_id) as inst_id , max(case when mem_rank <= 5 then user_id else null end) as user_id, max(case when mem_rank <= 5 then program else null end) as program from (select physical_session as dim_val , sample_count , dense_rank() over (order by sample_count desc , physical_session) as mem_rank , uniq_sqlids , uni q_xids , uniq_sessions , uniq_instances , inst_id , user_id, program from grouped_ash where gid = 191 and physical_session is not null) group by (case when mem_rank <= 5 then dim_val else null end) ) left ) , component_7_xml as (select xmlelement("item" , xmlattributes('physical_session' as "id" , topmems.cnt_all as "count" , topmems.num_mem as "num_mem" , topmems. num_others as "num_others") , topmems.topmems_frag) as dim_frag from (select xmlelement( "top_mems" , xmlattributes(sum(case when mem_rank <= 5 then sample_count else 0 end) as "count") , xmlagg(xmlelement( "mem" , xmlattributes(mem_rank as "id" , dim_val as "name" , sample_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances") , xmlconcat(xmlelement("info", xmlattributes('user_id' as "name"), user_id), xmlelement("info", xmlattributes('program' as "name"), program)) ) order by sample_count desc)) as topmems_frag , sum(case when mem_rank <= 5 then 1 else 0 end) as num_mem , sum(sample_count) as cnt_all , max(case when mem_rank <= 5 then 0 else num_mem end) as num_others from (component_7_treemap) t ) topmems), component_8_treemap as (select dim_val , inst_id , sample_count , num_mem , mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , 0 AS bucket_type --target(not global)/filtered bucket , NVL((SELECT substr(v.sql_text, 1, 100) as sql_text FROM gv$sql v WHERE v.sql_id = left.dim_val AND v.inst_id = left.inst_id AND rownum < 2 ), ( SELECT dbms_lob.substr (v.sql_text, 100, 1) as sql_text FROM dba_hist_sqltext v, binds b WHERE v.dbid = b.dbid AND v.sql_id = left.dim_val AND rownum < 2)) as sql_text from (select max(case when mem_rank <= 5 then dim_val else null end) as dim_val , sum(sample_count) as sample_count , count(*) as num_mem , max(case when mem_rank <= 5 then mem_rank else (5 + 1) end) as mem_rank , max(case when mem_rank <= 5 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when mem_rank <= 5 then uniq_xids else 0 end) as uniq_xids , max(case when mem_rank <= 5 then uniq_sessions else 0 end) as uniq_sessions , max(case when mem_rank <= 5 then uniq_instances else 0 end) as uniq_instances , max(inst_id) as inst_id from (select sqlid as dim_val , sample_count , dense_rank() over (order by sample_count desc , sqlid) as mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 127 and sqlid is not null) group by (case when mem_rank <= 5 then dim_val else null end) ) left ) , component_8_xml as (select xmlelement("item" , xmlattributes('sqlid' as "id" , topmems.cnt_a ll as "count" , topmems.num_mem as "num_mem" , topmems.num_others as "num_others") , topmems.topmems_frag) as dim_frag from (select xmlelement( "top_mems" , xmlattributes(sum(case when mem_rank <= 5 then sample_count else 0 end) as "count") , xmlagg(xmlelement( "mem" , xmlattributes(mem_rank as "id" , dim_val as "name" , sample_co unt as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances") , sql_text) order by sample_count desc)) as topmems_frag , sum(case when mem_rank <= 5 then 1 else 0 end) as num_mem , sum(sample_count) as cnt_all , max(case when mem_rank <= 5 then 0 else num_mem end) as num_others from (component_8_treemap) t ) topmems)select xmlconcat((select xml_frag from filter_xml), xmlelement("dim_list", xmlelement("item", xmlattributes('top_dimensions' as "id"), xmlelement("subdim", xmlconcat((select dim_frag from component_1_xml), (select dim_frag from component_2_xml), (select dim_frag from component_3_xml), (select dim_frag from component_4_xml), (select dim_frag from component_5_xml), (select dim_frag from component_6_xml), (select dim_frag from component_7_xml), (select dim_frag from component_8_xml)))), xmltype(' <item type="separator" />'), xmltype(' <item id=" sql_cat"> <subdim> <item id="sqlid" /> <item id="sql_id_top" /> <item id="sql_fms" /> <item id="sqlid_phv" /> <item id="sqlid_fullphv"/> <item id="sql_rws" /> <item id="sql_rws_line" /> <item id="sql_opcode" /> <item id="sql_opcode_top" /> </subdim> </item>'), xmltype(' <item id="pl_sql_cat"> <subdim> <item id="pl_sql" /> <item id="pl_sql_top" /> </subdim> </item>'), xmltype(' <item id="resource_consumption_cat"> <subdim>< item id="wait_class" /> <item id="event" /> <item id="object" /> <item id="blocking_session" /> </subdim> </item>'), xmltype(' <item id="session_identifiers_cat"> <subdim> <item id="instance_number" /> <item id="service_hash" /> <item id="physical_session" /> <item id="px_process" /> <item id="user_id" /> <item id="program" /> <item id="session_type" /> </subdim> </item>'), xmltype(' <item id="session_attributes_cat"> <subdim> <item id="consumer_group_id" /> <item id="module" /> <item id="action" /> <item id="client_id" /> <item id="machine" /> <item id="machine_port" /> <item id="xid" /> <item id="ecid" /> <item id="dbop" /> </subdim> </item>')) ) from dual |
0vcz1xqfrykmw | with metrics as ( select inst_id, bucket_id, metric_id, case when rn = 1 then metric_name else null end metric_name, case when metric_name in ('Host CPU Usage Per Sec', 'CPU Usage Per Sec', 'Background CPU Usage Per Sec') -- convert to seconds per second i.e. aas then value/100 when metric_name in ('Global Cache Average CR Get Time', 'Global Cache Average Current Get Time') -- convert to ms then value*10 else value end value from ( select inst_id, bucket_id, metric_id, metric_name, case when metric_name like '%Per Txn' or metric_name in ( 'Average Synchronous Single-Block Read Latency', 'Global Cache Average CR Get Time', 'Global Cache Average Current Get Time') then avgval else sumval end value, row_number() over (partition by metric_id, metric_name order by bucket_id, metric_id) rn from ( select inst_id, bucket_id, metric_id, metric_name, sum(value) sumval, avg(value) avgval from ( select decode(:p_inst_detail, 1, inst_id, null) inst_id, -- note need to convert to timestamps otherwise we -- get wrong results trunc( ( (extract(day from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 86400 + extract(hour from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 3600 + extract(minute from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 60 + extract(second from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) ) / :p_bucket_interval)) + 1 bucket_id, metric_id, metric_name, value from gv$sysmetric_history where group_id = :b_history_group_id and :p_source = 'history' and inst_id between :p_inst_id_low and :p_inst_id_high and end_time >= to_date(:b_start_time, :date_fmt) and end_time < to_date(:b_end_time, :date_fmt) and metric_name in ( 'Average Active Sessions', 'Host CPU Usage Per Sec', 'CPU Usage Per Sec', 'Background CPU Usage Per Sec', 'Current OS Load', 'Average Synchronous Single-Block Read Latency', 'Physical Reads Per Sec', 'Physical Read Bytes Per Sec', 'Physical Read Total Bytes Per Sec', 'Physical Wr ites Per Sec', 'Physical Write Bytes Per Sec', 'Physical Write Total Bytes Per Sec', 'Physical Reads Per Txn', 'Host CPU Utilization (%)')) group by inst_id, bucket_id, metric_id, metric_name) where nvl(avgval, 0) + nvl(sumval, 0) > 0) ) -- construct xml select xmlagg( nvl2(buckets, xmlelement("stattype", xmlattributes(:p_metric_type as "name"), nvl2(stat_id, xmlelement("stat_info", stat_id), null), nvl2(buckets, xmlelement("buckets", xmlattributes( :p_bucket_interval as "bucket_interval", :p_bucket_count as "bucket_count", :b_min_time as "start_time", :b_max_time as "end_time", :b_duration as "duration"), buckets), null)), null)) from ( -- group buckets select xmlagg(xmlelement("bucket", xmlattributes(bucket_id as "bucket_id"), stats) order by bucket_id) buckets, xmlagg(stat_id) stat_id from ( -- aggregate stats in each bucket select bucket_id, xmlagg(stat_id order by metric_id) stat_id, xmlagg(xmlelement("stat", xmlattributes(metric_id as "id", round(value, 6) as "value"))) stats from ( -- generate id name mapping select bucket_id, metric_id, value, nvl2(metric_name, xmlelement("stat", xmlattributes(metric_id as "id", metric_nam e as "name")), null) stat_id from metrics) group by bucket_id)) |
0wr2vfr5t2raw | select lt.inst_id, lt.kslltaddr, lt.kslltnum, lt.kslltlvl, lt.kslltnam, lt.ksllthsh, lt.kslltwgt, lt.kslltwff, lt.kslltwsl, lt.kslltngt, lt.kslltnfa, lt.kslltwkc, lt.kslltwth, lt.ksllthst0, lt.ksllthst1, lt.ksllthst2, lt.ksllthst3, lt.ksllthst4, lt.ksllthst5, lt.ksllthst6, lt.ksllthst7, lt.ksllthst8, lt.ksllthst9, lt.ksllthst10, lt.ksllthst11, lt.kslltwtt, lt.con_id from x$kslltr lt |
130dvvr5s8bgn | select obj#, dataobj#, part#, hiboundlen, hiboundval, ts#, file#, block#, pctfree$, pctused$, initrans, maxtrans, flags, analyzetime, samplesize, rowcnt, blkcnt, empcnt, avgspc, chncnt, avgrln, length(bhiboundval), bhiboundval from tabpart$ where bo# = :1 order by part# |
14d7z6mh1sxuz | select name, intcol#, segcol#, type#, length, nvl(precision#, 0), decode(type#, 2, nvl(scale, -127/*MAXSB1MINAL*/), 178, scale, 179, scale, 180, scale, 181, scale, 182, scale, 183, scale, 231, scale, 0), null$, fixedstorage, nvl(deflength, 0), default$, rowid, col#, property, nvl(charsetid, 0), nvl(charsetform, 0), spare1, spare2, nvl(spare3, 0), nvl(evaledition#, 1), nvl(unusablebefore#, 0), nvl(unusablebeginning#, 0) from col$ where obj#=:1 order by intcol# |
1p5grz1gs7fjq | select obj#, type#, ctime, mtime, stime, status, dataobj#, flags, oid$, spare1, spare2, spare3, signature, spare7, spare8, spare9 from obj$ where owner#=:1 and name=:2 and namespace=:3 and remoteowner is null and linkname is null and subname is null |
1uaz41wrxw03k | insert into wrh$_osstat (dbid, con_dbid, snap_id, instance_number, stat_id, value) select :dbid, :srcdbid con_dbid, :snap_id, :instance_number, osstat_id, value from v$osstat |
39m4sx9k63ba2 | select /*+ index(idl_ub2$ i_idl_ub21) +*/ piece#, length, piece from idl_ub2$ where obj#=:1 and part=:2 and version=:3 order by piece# |
3c1kubcdjnppq | update sys.col_usage$ set equality_preds = equality_preds + decode(bitand(:flag, 1), 0, 0, 1), equijoin_preds = equijoin_preds + decode(bitand(:flag, 2), 0, 0, 1), nonequijoin_preds = nonequijoin_preds + decode(bitand(:flag, 4), 0, 0, 1), range_preds = range_preds + decode(bitand(:flag, 8), 0, 0, 1), like_preds = like_preds + decode(bitand(:flag, 16), 0, 0, 1), null_preds = null_preds + decode(bitand(:flag, 32), 0, 0, 1), timestamp = :time where obj# = :objn and intcol# = :coln |
3cuh5pwuv6m5v | SELECT NUM_ROWS, BLOCKS, EMPTY_BLOCKS, AVG_SPACE, CHAIN_CNT, AVG_ROW_LEN FROM DBA_TAB_STATISTICS WHERE TABLE_NAME = 'TPCC' |
3hftmabv1a652 | WITH chains as (SELECT w.instance || '_' || w.sid || '_' || w.SESS_SERIAL# as sid, case when n.wait_class = 'Idle' then '__' else (w.BLOCKER_INSTANCE || '_' || w.BLOCKER_SID || '_' || w.BLOCKER_SESS_SERIAL#) end as bsid, w.osid, decode(w.in_wait, 'TRUE', w.wait_event_text, 'CPU') as event, nvl(n.wait_class, 'CPU') as wait_class, w.IN_WAIT_SECS, p.pname as pname, decode(p.background, '1', 'N', 'Y') as fg FROM v$wait_chains w, gv$process p, v$event_name n WHERE p.inst_id = w.instance AND p.pid = w.pid AND decode(w.in_wait, 'TRUE', w.wait_event, -1) = n.event#(+) ), chains_xml as (SELECT xmlelement("sessions", xmlagg(xmlelement("m", xmlattributes( sid as "s", osid as "o", event as "e", wait_class as "c", in_wait_secs as "t", pname as "p", fg as "f")))) as x FROM chains ), blockers_list as (SELECT (inst_id || '_' || sid || '_' || sess_serial#) as s, (blocker_instance_id || '_' || blocker_sid || '_' || blocker_sess_serial#) as b FROM gv$session_blockers WHERE blocker_sid is not null ), blockers as (SELECT xmlelement("blockers", xmlagg(xmlelement("m", xmlattributes( b.s as "s", b.b as "b")))) as x FROM blockers_list b, chains c WHERE b.s = c.sid AND c.wait_class <> 'Idle' ), hang_info as (SELECT xmlelement("hang_info", xmlagg(xmlelement("a", xmlattributes( decode(a.hang_type, 'Hang', 1, 'Uninteresting Hang', 2, 3) as "t", a.IGNORED_HANG as "i", a.RESOLUTION_ATTEMPTED as "r", a.RESOLUTION_STATUS as "s", a.VICTIM_INSTANCE || '_' || a.VICTIM_SESSION_ID || '_' || a.VICTIM_SERIAL# as "sid", a.FATAL_BACKGROUND as "f")))) as x FROM v$hang_info a ) SELECT xmlelement("hangs", c.x, b.x, h.x) FROM chains_xml c, blockers b, hang_info h |
3un99a0zwp4vd | select owner#, name, namespace, remoteowner, linkname, p_timestamp, p_obj#, nvl(property, 0), subname, type#, flags, d_attrs from dependency$ d, obj$ o where d_obj#=:1 and p_obj#=obj#(+) order by order# |
3y6pgnk2ubw7g | insert into wrm$_snapshot_details (snap_id, dbid, instance_number, table_id, begin_time, end_time) values (:snap_id, :dbid, :instance_number, :bind1, :bind2, :bind3) |
3za5u1vmpa2zj | WITH ash as (SELECT round((cast(sample_time as date) - :1) * 24 * 60 * 60, 0) as t, inst_id || '_' || session_id || '_' || session_serial# as sid, decode(session_type, 'FOREGROUND', 1, 0) as session_type, nvl(sql_id, 'null') as sql_id, nvl(sql_opcode, 0) as sql_opcode, nvl(force_matching_signature, 0) as fms, QC_INSTANCE_ID || '_' || QC_SESSION_ID || '_' || qc_session_serial# as qsid, decode(session_state, 'ON CPU', 'CPU', event) as wait_event, decode(session_state, 'ON CPU', 'CPU', wait_class) as wait_class, decode(blocking_session_status, 'VALID', blocking_inst_id || '_' || BLOCKING_SESSION || '_' || BLOCKING_SESSION_SERIAL#, '__') as bsid, nvl(service_hash, 0) as service_hash, nvl(program, '__') as program, nvl(module, '__') as module, nvl(action, '__') as action, nvl(pga_allocated, 0) as pga , decode(in_connection _mgmt, 'Y', 1, 0) + decode(in_parse, 'Y', 2, 0) + decode(in_hard_parse, 'Y', 4, 0) + decode(in_sql_execution, 'Y', 8, 0) + decode(in_plsql_execution, 'Y', 16, 0) + decode(in_plsql_rpc, 'Y', 32, 0) + decode(in_plsql_compilation, 'Y', 64, 0) + decode(in_java_execution, 'Y', 128, 0) + decode(in_bind, 'Y', 256, 0) + decode(in_cursor_close, 'Y', 512, 0) as tm FROM gv$active_session_history WHERE sample_time >= :2 and sample_time <= :3 AND (session_state = 'ON CPU' or wait_class <> 'Idle') ), map_op as ( SELECT xmlelement("op", xmlagg(xmlelement("m", xmlattributes( v.command_type as "i", v.command_name as "n" )))) as x FROM (SELECT distinct sql_opcode FROM ash WHERE sql_opcode<> 0) a , v$sqlcommand v WHERE a.sql_opcode = v.command_type ), map_sql as (SELECT fms, sql_opcode, sql_id, rownum as id FROM (SELECT fms, sql_opcode, max(sql_id) as sql_id FROM ash GROUP BY fms, sql_opcode) ), map_sql_xml as (SELECT xmlelement("sql", xmlagg(xmlelement("m", xmlattributes( fms as "f", sql_opcode as "o", sql_id as "s", id as "i" )))) as x FROM map_sql ), map_sid as (SELECT a, rownum as id FROM (SELECT sid as a FROM ash UNION SELECT qsid as a FROM ash UNION SELECT bsid as a FROM ash) ), map_sid_xml as (SELECT xmlelement("sid", xmlagg(xmlelement("m", xmlattributes( a as "v", id as "i" )))) as x FROM map_sid ), map_event as (SELECT wait_class, wait_event, rownum as id FROM (SELECT DI STINCT wait_class , wait_event FROM ash) ), map_event_xml as (SELECT xmlelement("evt", xmlagg(xmlelement("m", xmlattributes( wait_class as "c", wait_event as "e", id as "i" )))) as x FROM map_event ), map_service as (SELECT a.service_hash as sh, s.service_id as id, s.name as name FROM (SELECT distinct service_hash from ash) a, v$services s WHERE s.name_hash = a.service_hash ), map_service_xml as (SELECT xmlelement("service", xmlagg(xmlelement("m", xmlattributes( sh as "h", name as "n", id as "i" )))) as x FROM map_service ), map_program as (SELECT program, rownum as id FROM (SELECT distinct program FROM ash) ), map_program_xml as (SELECT xmlelement("program", xmlagg(xmlelement("m", xmlattributes( program as "v", id as "i" )))) as x FROM map_program ), map_module as (SELECT module, rownum as id FROM (SELECT distinct module FROM ash) ), map_module_xml as (SELECT xmlelement("module", xmlagg(xmlelement("m", xmlattributes( module as "v", id as "i" )))) as x FROM map_module ), map_action as (SELECT action, rownum as id FROM (SELECT distinct action FROM ash) ), map_action_xml as (SELECT xmlelement("action", xmlagg(xmlelement("m", xmlattributes( action as "v", id as "i" )))) as x FROM map_action ), ash_xml as (SELECT xmlelement("data", xmlagg(xmlelement("a", ash.t || ', ' || ms1.id || ', ' || ash.session_type || ', ' || ms2.id || ', ' || ms3.id || ', ' || msql.id || ', ' || trunc(ash.pga/(102 4*1024)) || ', ' || mp.id || ', ' || ms.id || ', ' || mm.id || ', ' || ma.id || ', ' || me.id || ', ' || ash.tm ))) as x FROM ash, map_sid ms1, map_sid ms2, map_sid ms3, map_event me, map_service ms, map_program mp, map_module mm, map_action ma, map_sql msql WHERE ash.sid = ms1.a AND ash.qsid = ms2.a AND ash.bsid = ms3.a AND ash.wait_class = me.wait_class AND ash.wait_event = me.wait_event AND ash.service_hash = ms.sh AND ash.program = mp.program AND ash.module = mm.module AND ash.action = ma.action AND ash.fms = msql.fms ) SELECT xmlelement("ash_data", xmlattributes(round(:4, 4) as "sampling_ratio", round(:5, 4) as "avg_active_sessions", round((:6 - :7) * (24 * 60 * 60), 0) as "secs"), map_op.x, map_sid_xml.x, map_event_xml.x, map_service_xml.x, map_program_xml.x, map_module_xml.x, map_action_xml.x, map_sql_xml.x, ash_xml.x ) as data FROM map_op, map_sid_xml, map_event_xml, map_service_xml, map_program_xml, map_module_xml, map_action_xml, map_sql_xml, ash_xml |
43ndx0zqwbfr8 | insert into wrh$_tempstatxs (dbid, con_dbid, snap_id, instance_number, file#, creation_change#, phyrds, phywrts, singleblkrds, readtim, writetim, singleblkrdtim, phyblkrd, phyblkwrt, wait_count, time ) select /*+ leading (tf ts ftio fn) */ :dbid, :srcdbid con_dbid, :snap_id, :instance_number, tf.tfnum, to_number(tf.tfcrc_scn) creation_change#, ftio.kcftiopyr, ftio.kcftiopyw, ftio.kcftiosbr, floor(ftio.kcftioprt / 10000), floor(ftio.kcftiopwt / 10000), floor(ftio.kcftiosbt / 10000), ftio.kcftiopbr, ftio.kcftiopbw, nvl(fw.count, 0), nvl(fw.time, 0) FROM x$kcftio ftio, x$kcctf tf, x$kcbfwait fw, x$kccfn fn, x$kccts ts WHERE (1 = 1) and ts.tstsn = tf.tftsn and ftio.kcftiofno = fn.fnfno and ftio.kcftiofno = tf.tfnum and tf.tfnum = fn.fnfno and tf.tffnh = fn.fnnum and tf.tfdup <> 0 and fn.fntyp = 7 and fn.fnnam is not null and bitand(tf.tfsta, 32) <> 32 and fw.file#(+) = (fn.fnfno + :db_files) |
4bc30jxu2tnn5 | insert into wrh$_tablespace_stat (dbid, con_dbid, snap_id, instance_number, ts#, tsname, contents, status, segment_space_management, extent_management, is_backup ) select :dbid, :srcdbid con_dbid, :snap_id, :instance_number, ts.ts#, ts.name as tsname, decode(ts.contents$, 0, (decode(bitand(ts.flags, 16), 16, 'UNDO', 'PERMANENT')), 1, 'TEMPORARY') as contents, decode(ts.online$, 1, 'ONLINE', 2, 'OFFLINE', 4, 'READ ONLY', 'UNDEFINED') as status, decode(bitand(ts.flags, 32), 32, 'AUTO', 'MANUAL') as segspace_mgmt, decode(ts.bitmapped, 0, 'DICTIONARY', 'LOCAL') as extent_management, (case when b.active_count > 0 then 'TRUE' else 'FALSE' end) as is_backup from sys.ts$ ts, (select dfile.ts#, sum( case when bkup.status = 'ACTIVE' then 1 else 0 end ) as active_count from v$backup bkup, file$ dfile where bkup.file# = dfile.file# and dfile.status$ = 2 group by dfile.ts#) b where ts.online$ != 3 and bitand(ts.flags, 2048) != 2048 and ts.ts# = b.ts# |
4df3aqh8v98k9 | WITH iometric as ( select bucket_id, function_id, case when rn = 1 then function_name else null end function_name, small_read_mbps, small_write_mbps, large_read_mbps, large_write_mbps, small_read_iops, small_write_iops, large_read_iops, large_write_iops, avg_wait_time from ( select bucket_id, function_id, function_name, small_read_mbps, small_write_mbps, large_read_mbps, large_write_mbps, small_read_iops, small_write_iops, large_read_iops, large_write_iops, avg_wait_time, row_number() over (partition by function_id, function_name order by bucket_id, function_id) rn from ( select bucket_id, function_id, function_name, sum(small_read_mbps) small_read_mbps, sum(small_write_mbps) small_write_mbps, sum(large_read_mbps) large_read_mbps, sum(large_write_mbps) large_write_mbps, sum(small_read_iops) small_read_iops, sum(small_write_iops) small_write_iops, sum(large_read_iops) large_read_iops, sum(large_write_iops) large_write_iops, avg(avg_wait_time) avg_wait_time from ( select function_id, function_name, trunc( ( (extract(day from (cast(trunc(end_time, 'mi') as timestamp) - cast( trunc( to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 86400 + extract(hour from (cast( trunc(end_time, 'mi') as timestamp) - cast( trunc( to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 3600 + extract(minute from (cast(trunc(end_time, 'mi') as timestamp) - cast( trunc( to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 60 + extract(second from (cast(trunc(end_time, 'mi') as timestamp) - cast( trunc( to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) ) / :p_bucket_interval)) + 1 bucket_id, small_read_mbps, small_write_mbps, large_read_mbps, large_write_mbps, small_read_iops, large_read_iops, small_write_iops, large_write_iops, avg_wait_time from gv$iofuncmetric_history where inst_id between :p_inst_id_low and :p_inst_id_high and end_time >= to_date(:b_start_time, :date_fmt) and end_time < to_date(:b_end_time, :date_fmt)) group by bucket_id, function_id, function_name) where nvl(small_read_mbps, 0) + nvl(small_write_mbps, 0) + nvl(large_read_mbps, 0) + nvl(large_write_mbps, 0) + nvl(small_read_iops, 0) + nvl(small_write_iops, 0) + nvl(large_read_iops, 0) + nvl(large_write_iops, 0) + nvl(avg_wait_time, 0) > 0)) -- construct xml select xmlagg( nvl2(buckets, xmlelement("stattype", xmlattributes('iofuncmetric' as "name"), nvl2(stat_id, xmlelement("stat_info", stat_id), null), nvl2(buckets, xmlelement("buckets", xmlattributes( :p_bucket_interval as "bucket_interval", :p_bucket_count as "bucket_count", :b_min_time as "start_time", :b_max_time as "end_time", :b_duration as "duration"), buckets), null) ), null)) from ( -- aggregate buckets select xmlagg(xmlelement("bucket", xmlattributes(bucket_id as "bucket_id"), stats) order b y bucket_id) buckets, xmlagg(stat_id) stat_id from ( -- aggregate stats per bucket select bucket_id, xmlagg(stat_id order by function_id) stat_id, xmlagg(xmlelement("stat", xmlattributes(function_id as "id", round(small_read_mbps, 6) as "srmbps", round(small_write_mbps, 6) as "swmbps", round(large_read_mbps, 6) as "lrmbps", round(large_write_mbps, 6) as "lwmbps", round(small_read_iops, 6) as "sriops", round(small_write_iops, 6) as "swiops", round(large_read_iops, 6) as "lriops", round(large_write_iops, 6) as "lwiops", round(avg_wait_time, 6) as "avwttm")) order by function_id) stats from ( -- generate id name map select bucket_id, function_id, nvl2(function_name, xmlelement("stat", xmlattributes(function_id as "id", function_name as "name")), null) stat_id, small_read_mbps, small_write_mbps, large_read_mbps, large_write_mbps, small_read_iops, small_write_iops, large_read_iops, large_write_iops, avg_wait_time from iometric) group by bucket_id)) |
4kvhga64b6wah | WITH binds as (select :dbid as dbid , :inst_id_low as instIdLow , :inst_id_high as instIdHigh , :begin_snap as beginSnap , :end_snap as endSnap , :begin_time as beginTime , :end_time as endTime , :disk_begin_time as diskBeginTime , :disk_end_time as diskEndTime , :mem_begin_time as memBeginTime , :mem_end_time as memEndTime , :bucket_count as bucketCount , :bucket_interval as bucketInterval , :mem_enable as memEnable , :disk_enable as diskEnable , :disk_filter_ratio as filterRatio, :filter_action as filter_action, :filter_blocking_session as filter_blocking_session, :filter_capture_id as filter_capture_id, :filter_client_id as filter_client_id, :filter_consumer_group_id as filter_consumer_group_id, :filter_dbop as filter_dbop, :filter_ecid as filter_ecid, :filter_event as filter_event, :filter_instance_number as filter_instance_number, :filter_is_captured as filter_is_captured, :filter_is_filtered_out as filter_is_filtered_out, :filter_is_nc_background as filter_is_nc_background, :filter_is_replayed as filter_is_replayed, :filter_machine as filter_machine, :filter_machine_port as filter_machine_port, :filter_module as filter_module, :filter_object as filter_object, :filter_pdb as filter_pdb, :filter_physical_session as filter_physical_session, :filter_pl_sql as filter_pl_sql, :filter_pl_sql_top as filter_pl_sql_top, :filter_program as filter_program, :filter_px_process as filter_px_process, :filter_service_hash as filter_service_hash, :filter_session_type as filter_session_type, :filter_sql_fms as filter_sql_fms, :filter_sql_id_top as filter _sql_id_top, :filter_sql_opcode as filter_sql_opcode, :filter_sql_opcode_top as filter_sql_opcode_top, :filter_sql_rws as filter_sql_rws, :filter_sql_rws_line as filter_sql_rws_line, :filter_sqlid as filter_sqlid, :filter_sqlid_fullphv as filter_sqlid_fullphv, :filter_sqlid_phv as filter_sqlid_phv, :filter_user_id as filter_user_id, :filter_wait_class as filter_wait_class, :filter_xid as filter_xid from dual) , unified_ash as (SELECT a.sample_id , a.sample_time , a.session_id , a.session_serial# , a.session_type , a.session_state , a.flags , a.user_id , a.sql_id , a.sql_opcode , a.sql_opname , a.top_level_sql_id , a.top_level_sql_opcode , a.sql_child_number , a.sql_plan_hash_value , a.sql_full_plan_hash_value , a.sql_plan_line_id , a.sql_plan_operation , a.sql_plan_options , a.sql_exec_id , a.force_ matching_signature , a.plsql_entry_object_id , a.plsql_entry_subprogram_id , a.plsql_object_id , a.plsql_subprogram_id , a.service_hash , a.qc_session_id , a.qc_instance_id , a.qc_session_serial# , nvl(a.event, CASE WHEN bitand(a.time_model, power(2, 19)) > 0 THEN 'CPU: IM Populate' WHEN bitand(a.time_model, power(2, 20)) > 0 THEN 'CPU: IM Prepopulate' WHEN bitand(a.time_model, power(2, 21)) > 0 THEN 'CPU: IM Repopulate' WHEN bitand(a.time_model, power(2, 22)) > 0 THEN 'CPU: IM Trickle Repop' WHEN bitand(a.time_model, power(2, 18)) > 0 THEN 'CPU: IM Query' ELSE 'CPU + Wait for CPU' END) as event , nvl(a.event_id, 1) as event_id , nvl(a.wait_class, 'CPU') as wait_class , nvl(a.wait_class_id, 9999) as wait_class_id , a.seq# , a.p1 , a.p1text , a.p2 , a.p2text , a.p3 , a.p3text , a.wait_time , a.time_waited , rawtohex(a.xid) as xid , a.blocking_session , a.blocking_session_serial# , a.blocking_session_status , a.blocking_inst_id , a.current_obj# , a.current_file# , a.current_block# , a.top_level_call# , a.top_level_call_name , a.program , a.module , a.action , a.client_id , a.remote_instance# , a.ecid , a.consumer_group_id , a.machine , a.port , a.in_connection_mgmt , a.in_parse , a.in_hard_parse , a.in_sql_execution , a.in_plsql_execution , a.in_plsql_rpc , a.in_plsql_compilation , a.in_java_execution , a.in_bind , a.in_cursor_close , a.in_sequence_load , a.is_captured , a.is_replayed , a.dbreplay_file_id , a.dbop_name , a.con_dbid, decode(binds.diskEnable, 0, 1, binds.filterRatio) as sample_count , inst_id as instance_number FROM gv$active_session_history a, binds WHERE binds.memEnable = 1 AND ( binds.diskEnable = 0 OR ( binds.diskEnable = 1 AND a.is_awr_sample = 'Y' AND bitand(a.flags, 128) = 0 ) ) AND a.inst_id between binds.instIdLow and binds.instIdHigh AND a.sample_time between binds.beginTime and binds.endTime UNION ALL SELECT a.sample_id , a.sample_time , a.session_id , a. session_serial# , a.session_type , a.session_state , a.flags , a.user_id , a.sql_id , a.sql_opcode , a.sql_opname , a.top_level_sql_id , a.top_level_sql_opcode , a.sql_child_number , a.sql_plan_hash_value , a.sql_full_plan_hash_value , a.sql_plan_line_id , a.sql_plan_operation , a.sql_plan_options , a.sql_exec_id , a.force_matching_signature , a.plsql_entry_object_id , a.plsql_entry_subprogram_id , a.plsql_object_id , a.plsql_subprogram_id , a.service_hash , a.qc_session_id , a.qc_instance_id , a.qc_session_serial# , nvl(a.event, CASE WHEN bitand(a.time_model, power(2, 19)) > 0 THEN 'CPU: IM Populate' WHEN bitand(a.time_model, power(2, 20)) > 0 THEN 'CPU: IM Prepopulate' WHEN bitand(a .time_model, power(2, 21)) > 0 THEN 'CPU: IM Repopulate' WHEN bitand(a.time_model, power(2, 22)) > 0 THEN 'CPU: IM Trickle Repop' WHEN bitand(a.time_model, power(2, 18)) > 0 THEN 'CPU: IM Query' ELSE 'CPU + Wait for CPU' END) as event , nvl(a.event_id, 1) as event_id , nvl(a.wait_class, 'CPU') as wait_class , nvl(a.wait_class_id, 9999) as wait_class_id , a.seq# , a.p1 , a.p1text , a.p2 , a.p2text , a.p3 , a.p3text , a.wait_time , a.time_waited , rawtohex(a.xid) as xid , a.blocking_session , a.blocking_session_serial# , a.blocking_session_status , a.blocking_inst_id , a.current_obj# , a.current_file# , a.current_block# , a.top_level_call# , a.top_level_call_name , a.program , a.module , a.action , a.client_id , a.remote_instance# , a.ecid , a.consumer_group_id , a.machine , a.port , a.in_connection_mgmt , a.in_parse , a.in_hard_parse , a.in_sql_execution , a.in_plsql_execution , a.in_plsql_rpc , a.in_plsql_compilation , a.in_java_execution , a.in_bind , a.in_cursor_close , a.in_sequence_load , a.is_captured , a.is_replayed , a.dbreplay_file_id , a.dbop_name , a.con_dbid, binds.filterRatio as sample_count , instance_number as instance_number FROM dba_hist_active_sess_history a, binds WHERE binds.diskEnable = 1 AND a.dbid = binds.dbid AND a.instance_number between binds.instIdLow and binds.instIdHigh AND a.snap_id between binds.beginSnap and binds.endSnap AND a.sample_time between binds.beginTime and binds.endTime ), logical_ash as (select sample_id , sample_time , sample_count , instance_number as inst_id, wait_class as global_hist_wc, event as event, instance_number || ':' || session_id || ', ' || session_serial# as physical_session, sql_id as sqlid, wait_class as wait_class, xid as xid, instance_number as instance_number, user_id as user_id, program as program from unified_ash) , bucketized_ash as (SELECT ash0.*, (case when binds.bucketCount > 1 then trunc( ( (24 * 60 * 60 * extract(day from sample_time - binds.beginTime)) + (60 * 60 * extract(hour from sample_time - binds.beginTime)) + (60 * extract(minute from sample_time - binds.beginTime)) + (1 * extract(second from sample_time - binds.beginTime)) ) / binds.bucketInterval ) + 1 else 1 end) as bucket_number FROM logical_ash ash0, binds), filter_xml as (SELECT xmlconcat(xmlelement("filters" ) , xmlelement("report_time", xmlattributes( to_char(o.begintime, 'HH24:MI:SS MM/DD/YYYY') as "begin_time", to_char(o.endtime, 'HH24:MI:SS MM/DD/YYYY') as "end_time"))) as xml_frag FROM (select binds.*, nvl(to_number(filter_pdb), 0) as con_dbid from binds) o) , filtered_ash as (SELECT ash.*, (case when 1=1 then 1 else 0 end) filtered FROM bucketized_ash ash, binds), grouped_ash as (SELECT ash.*, (CASE WHEN nvl(filtered, 2) = 1 THEN 0 -- target / no histogram ELSE 1 -- totals/global END) AS bucket_type FROM (SELECT filtered, event, physical_session, sqlid, wait_class, bucket_number , grouping_id(filtered, event, physical_session, sqlid, wait_class, bucket_number) as gid , global_hist_wc , max(inst_id) as inst_id , sum(sample_cou nt) as sample_count , count(distinct sqlid) as uniq_sqlids , count(distinct xid) as uniq_xids , count(distinct physical_session) as uniq_sessions , count(distinct instance_number) as uniq_instances, max(user_id) as user_id, max(program) as program from filtered_ash group by grouping sets( (bucket_number, global_hist_wc) , ( bucket_number, wait_class, filtered), (wait_class, filtered), (sqlid, wait_class, filtered), (physical_session, wait_class, filtered), (wait_class, event, filtered)) ) ash -- eliminate rows with filtered = 0 -- keep filtered and from global/total WHERE (nvl(filtered, 2) != 0)), component_1_treemap as (select dim_val , inst_id , sample_count , num_mem , mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , 0 AS bucket_type --target(not global)/filtered bucket from (select max(case when mem_rank <= 13 then dim_val else null end) as dim_val , sum(sample_count) as sample_count , count(*) as num_mem , max(case when mem_rank <= 13 then mem_rank else (13 + 1) end) as mem_rank , max(case when mem_rank <= 13 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when mem_rank <= 13 then uniq_xids else 0 end) as uniq_xids , max(case when mem_rank <= 13 then uniq_sessions else 0 end) as uniq_sessions , max(case when mem_rank <= 13 then uniq_instances else 0 end) as uniq_instances , max(inst_id) as inst_id from (select wait_class as dim_val , sample_count , dense_rank() over (order by sample_count desc , wait_class) as mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 29 and wait_class is not null) group by (case when mem_rank <= 13 then dim_val else null end) ) left ) , component_1_histogram as (select bucket_number , sum(sample_count) as sample_count , max(case when mem_rank <= 13 then mem_rank when mem_rank is not null then (13 + 1) end) as mem_rank , bucket_type from (select g1.bucket_number , g1.sample_count as sample_count , (case when g1.wait_class = g2.dim_val then to_char(g2.dim_val) -- global/totals when g1.bucket_type = 1 then g1.global_hist_wc else null end) as dim_val , (case when g1.wait_class = g2.dim_val then g2.mem_rank when g1.bucket_type = 1 then NULL else (13 + 1) end) as mem_rank , g1.bucket_type from grouped_ash g1, component_1_treemap g2 where -- both filtered and global (g1.gid = 28 AND g1.wait_class is not null OR g1.bucket_type = 1) and g1.wait_class = g2.dim_val(+) -- join filtered rows only and g1.bucket_type = g2.bucket_type(+) ) group by bucket_number , dim_val , bucket_type ) , component_1_xml as (select xmlelement("item" , xmlattributes('wait_class' as "id" , topmems.cnt_all as "count" , topmems.num_mem as "num_mem" , topmems.num_others as "num_others") , xmlconcat( topmems.topmems_frag , histogram.histogram_xml)) as dim_frag from (select xmlelement( "top_mems" , xmlatt ributes(sum(case when mem_rank <= 13 then sample_count else 0 end) as "count") , xmlagg(xmlelement( "mem" , xmlattributes(mem_rank as "id" , dim_val as "name" , sample_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances") ) order by sample_count desc)) as topmems_frag , sum(case when mem_rank <= 13 then 1 else 0 end) as num_mem , sum(sample_count) as cnt_all , max(case when mem_rank <= 13 then 0 else num_mem end) as num_others from (component_1_treemap) t ) topmems , (SELECT xmlagg( xmlelement( "histogram" , xm lattributes( (case when bucket_type = 1 then 'all' else 'target' end) AS "type" , max(binds.bucketCount) as "bucket_count" , max(binds.bucketInterval) as "bucket_interval") , xmlagg(bucket_xml order by bucket_type, bucket_number asc) ) ) as histogram_xml FROM (SELECT bucket_type , bucket_number , xmlelement( "bucket" , xmlattributes(bucket_number as "number" , sum(sample_count) as "c ount") , (case when bucket_type = 0 then -- filtered rows xmlelement( "top_mems" , xmlattributes( sum(case when mem_rank <= 13 then sample_count else 0 end) as "count") , xmlagg( xmlelement( "mem" , xmlattributes( mem_rank as "id" , sample_count as "count")) order by mem_rank asc)) end)) as bucket_xml FROM (component_1_histogram) GROUP BY bucket_number, bucket_type), binds GROUP by bucket_type) histogram ), component_2_xml as (select xmlelement( "item" , xmlattributes( 'sqlid, wait_class' as "item") , xmlelement( "top_mems" , xmlagg( xmlelement( "mem" , xmlattributes( dim1_value as "dim1_value" , dim1_nummem as "dim1_nummem" , dim1_rank as "dim1_rank" , dim2_value as "dim2_value" , dim12_nummem as "dim2_nummem" , dim12_rank as "dim2_rank" , dim12_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances" ) , NVL2(sql_text1, xmlelement("info" , xmlattributes('dim1_name' as "type") , sql_text1), NULL) , NVL2(NULL, xmlelement("info" , xmlattributes('dim2_name' as "type") , NULL), NULL) ) order by dim1_rank, dim12_rank ) ) ) as dim_frag from (select dim_data.* , NVL((SELECT substr(v.sql_text, 1, 100) as sql_text FROM gv$sql v WHERE v.sql_id = dim_data.dim1_value AND v.inst_id = dim_data.inst_id AND rownum < 2 ), ( SELECT dbms_lob.substr(v.sql_text, 100, 1) as sql_text FROM dba_hist_sqltext v, binds b WHERE v.dbid = b.dbid AND v.sql_id = dim_data.dim1_value AND rownum < 2)) as sql_text1 from (select max(case when dim1_rank <= 10 then dim1_val else null end) as dim1_value , max(case when dim1_rank <= 10 then dim2_val else null end) as dim2_value , sum(dim12_count) as dim12_count , max(case when dim1_rank <= 10 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when dim1_rank <= 10 then uniq_xids else 0 end) as uniq_xids , max(case when dim1_rank <= 10 then uniq_sessions else 0 end) as uniq_sessions , max(case when dim1_rank <= 10 then uniq_instances else 0 end) as uniq_instances , count(distinct dim1_val) as dim1_nummem , sum(dim12_nummem) as dim12_nummem , max(case when dim1_rank <= 10 then dim1_rank else (10 + 1) end) as dim1_rank , max(case when dim1_rank <= 10 then dim12_rank else (10 + 1) end) as dim12_rank , max(inst_id) as inst_id from (select dim1_val , max(case when dim12_rank <= 13 then dim2_val else null end) as dim2_val , dim1_count , sum(dim12_count) as dim12_count , max(case when dim12_rank <= 13 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when dim12_rank <= 13 then uniq_xids else 0 end) as uniq_xids , max(case when dim12_rank <= 13 then uniq_sessions else 0 end) as uniq_sessions , max(case when dim12_rank <= 13 then uniq_instances else 0 end) as uniq_instances , count(*) as dim12_nummem , dense_rank() over (order by dim1_count desc , dim1_val ) as dim1_rank , max(case when dim12_rank <= 13 then dim12_rank else (13 + 1) end) as dim12_rank , max(inst_id) as inst_id from (select sqlid as dim1_val , wait_class as dim2_val , sample_count as dim12_count , dense_rank() over (partition by sqlid order by sample_count desc , wait_class ) as dim12_rank , sum(sample_count) over (partition by sqlid ) as dim1_count , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 25 and sqlid is not null and wait_class is not null ) group by dim1_val , dim1_count , (case when dim12_rank <= 13 then dim2_val else null end) ) group by (case when dim1_rank <= 10 then dim1_val else null end) , (case when dim1_rank <= 10 then dim2_val else null end) ) dim_data ) t ), component_3_xml as (select xmlelement( "item" , xmlattributes( 'physical_session, wait_class' as "item") , xmlelement( "top_mems" , xmlagg( xmlelement( "mem" , xmlattributes( dim1_value as "dim1_value" , dim1_nummem as "dim1_nummem" , dim1_rank as "dim1_rank" , dim2_value as "dim2_value" , dim12_nummem as "dim2_nummem" , dim12_rank as "dim2_rank" , dim12_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances" ) , NVL2(NULL, xmlelement("info" , xmlattributes('dim1_name' as "type") , NULL), NULL) , NVL2(NULL, xmlelement("info" , xmlattributes('dim2_name' as "type") , NULL), NULL) ) order by dim1_rank, dim12_rank ) ) ) as dim_frag from (select dim_data.* from (select max(case when dim1_rank <= 10 then dim1_val else null end) as dim1_value , max(case when dim1_rank <= 10 then dim2_val else null end) as dim2_value , sum(dim12_count) as dim12_count , max(case when dim1_rank <= 10 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when dim1_rank <= 10 then uniq_xids else 0 end) as uniq_xids , max(case when dim1_rank <= 10 then uniq_sessions else 0 end) as uniq_sessions , max(case when dim1_rank <= 10 then uniq_instances else 0 end) as uniq_instances , count(distinct dim1_val) as dim1_nummem , sum(dim12_nummem) as dim12_nummem , max(case when dim1_rank <= 10 then dim1_rank else (10 + 1) end) as dim1_rank , max(case when dim1_rank <= 10 then dim12_rank else (10 + 1) end) as dim12_rank , max(inst_id) as inst_id from (select dim1_val , max(case when dim12_rank <= 13 then dim2_val else null end) as dim2_val , dim1_count , sum(dim12_count) as dim12_count , max(case when dim12_ran k <= 13 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when dim12_rank <= 13 then uniq_xids else 0 end) as uniq_xids , max(case when dim12_rank <= 13 then uniq_sessions else 0 end) as uniq_sessions , max(case when dim12_rank <= 13 then uniq_instances else 0 end) as uniq_ins tances , count(*) as dim12_nummem , dense_rank() over (order by dim1_count desc , dim1_val ) as dim1_rank , max(case when dim12_rank <= 13 then dim12_rank else (13 + 1) end) as dim12_rank , max(inst_id) as inst_id from (select physical_session as dim1_val , wait_class as dim2_val , sample_count as dim12_count , dense_rank() over (partition by physical_session order by sample_count desc , wait_class ) as dim12_rank , sum(sample_count) over (partition by physical_session ) as dim1_count , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 21 and physical_session is not null and wait_class is not null ) group by dim1_val , dim1_count , (case when dim12_rank <= 13 then dim2_val else null end) ) group by (case when dim1_rank <= 10 then dim1_val else null end) , (case when dim1_rank <= 10 then dim2_val else null end) ) dim_data ) t ), component_4_xml as (select xmlelement( "item" , xmlattributes( 'wait_class, event' as "item") , xmlelement( "top_mems" , xmlagg( xmlelement( "mem" , xmlattributes( dim1_value as "dim1_value" , dim1_nummem as "dim1_nummem" , dim1_rank as "dim1_rank" , dim2_value as "dim2_value " , dim12_nummem as "dim2_nummem" , dim12_rank as "dim2_rank" , dim12_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances" ) , NVL2(NULL, xmlelement("info" , xmlattributes('dim1_name' as "type") , NULL), NULL) , NVL2(NULL, xmlelement("info" , xmlattributes('dim2_name' as "type") , NULL), NULL) ) order by dim1_rank, dim12_rank ) ) ) as dim_frag from (select dim_data.* from (select max(case when dim1_rank <= 13 then dim1_val else null end) as dim1_value , max(case when dim1_rank <= 13 then dim2_val else null end) as dim2_value , sum(dim12_count) as dim12_count , max(case when dim1_rank <= 13 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when dim1_rank <= 13 then uniq_xids else 0 end) as uniq_xids , max(case when dim1_rank <= 13 then uniq_sessions else 0 end) as uniq_sessions , max(case when dim1_rank <= 13 then uniq_instances else 0 end) as uniq_instances , count(distinct dim1_val) as dim1_nummem , sum(dim12_nummem) as dim12_nummem , max(case when dim1_rank <= 13 then dim1_rank else (13 + 1) end) as dim1_rank , max(case when dim1_rank <= 13 then dim12_rank else (13 + 1) end) as dim12_rank , max(inst_id) as inst_id from (select dim1_val , max(case when dim12_rank <= 10 then dim2_val else null end) as dim2_val , dim1_count , sum(dim12_count) as dim12_count , max(case when dim12_rank <= 10 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when dim12_rank <= 10 then uniq_xids else 0 end) as uniq_xids , max(case when dim12_rank <= 10 then uniq_sessions else 0 end) as uniq _sessions , max(case when dim12_rank <= 10 then uniq_instances else 0 end) as uniq_instances , count(*) as dim12_nummem , dense_rank() over (order by dim1_count desc , dim1_val ) as dim1_rank , max(case when dim12_rank <= 10 then dim12_rank else (10 + 1) end) as dim12_rank , max(inst_id) as inst_id from (sele ct wait_class as dim1_val , event as dim2_val , sample_count as dim12_count , dense_rank() over (partition by wait_class order by sample_count desc , event ) as dim12_rank , sum(sample_count) over (partition by wait_class ) as dim1_count , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 13 and wait_class is not null and event is not null ) group by dim1_val , dim1_count , (case when dim12_rank <= 10 then dim2_val else null end) ) group by (case when dim1_rank <= 13 th en dim1_val else null end) , (case when dim1_rank <= 13 then dim2_val else null end) ) dim_data ) t )select xmlconcat((select xml_frag from filter_xml), xmlelement("dim_list", xmlconcat((select dim_frag from component_1_xml), (select dim_frag from component_2_xml), (select dim_frag from component_3_xml), (select dim_frag from component_4_xml))) ) from dual |
4phvdvx32a3mf | begin prvt_ilm.stopjobs(-1, true, true, :1); end; |
4r62dbqxw2r10 | insert into wrh$_bg_event_summary (dbid, con_dbid, snap_id, instance_number, event_id, total_waits, total_timeouts, time_waited_micro) select :dbid, :srcdbid con_dbid, :snap_id, :instance_number, event_id, total_waits - total_waits_fg, total_timeouts - total_timeouts_fg, time_waited_micro - time_waited_micro_fg from v$system_event where (total_waits - total_waits_fg) > 0 |
4tmd72wfn52m4 | with base_data as( select bucket_id, sum(case when name='Average Active Sessions' then aas else 0 end) dbt, sum(case when name='CPU Usage Per Sec' then aas else 0 end) cpu, sum(case when name='User I/O' then aas else 0 end) uio from ( select id, name, bucket_id, sum(aas) aas from table(gv$(cursor( -- get first data point per bucket select userenv('INSTANCE') inst_id, id, name, bucket_id, aas from ( -- only get first data point per bucket select bucket_id, id, name, aas, row_number() over (partition by bucket_id, id order by aas desc nulls last, id) rn from ( -- union of sysmetric and waitclass select metric_id id, metric_name name, trunc( ( (extract(day from (cast(trunc(end_time, 'mi') as timestamp) - cast( trunc( to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 86400 + extract(hour from (cast(trunc(end_time, 'mi') as timestamp) - cast( trunc( to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 3600 + extract(minute from (cast(trunc(end_time, 'mi') as timestamp) - cast( trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 60 + extract(second from (cast(trunc(end_time, 'mi') as timestamp) - cast( trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) ) / :p_bucket_interval)) + 1 bucket_id, decode(metric_name, 'CPU Usage Per Sec', value/100, value) aas from v$sysmetric_history where group_id = :b_minute_group_id and end_time >= to_date (:b_start_time, :date_fmt) and end_time < to_date(:b_end_time, :date_fmt) and metric_name in ('CPU Usage Per Sec', 'Average Active Sessions') union all select wc.wait_class# id, e.wait_class name, trunc( ( (extract(day from (cast(trunc(end_time, 'mi') as timestamp) - cast( trunc( to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 86400 + extract(hour from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 3600 + extract(minute from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 60 + extract(second from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) ) / :p_bucket_interval)) + 1 bucket_id, wc.time_waited/intsize_csec aas from v$waitclassmetric_history wc, v$system_wait_class e where wc.wait_class# = e.wait_class# and e.w ait_class = 'User I/O' and wc.end_time >= to_date(:b_start_time, :date_fmt) and wc.end_time < to_date(:b_end_time, :date_fmt))) where rn = 1))) gvtf where inst_id between :p_inst_id_low and :p_inst_id_high group by id, name, bucket_id) group by bucket_id) select xmlelement("timepicker", xmlelement("buckets", xmlattributes(:p_bucket_interval as "bucket_interval", :p_bucket_count as "bucket_count", :b_start_time as "start_time", :b_end_time as "end_time", :b_duration as "duration"), xmlagg(xmlelement("sd", xmlforest(bucket_id as "time", round(dbt, 6) as "dbt", round(cpu, 6) as "cpu", round(uio, 6) as "uio")) order by bucket_id)), nvl2(:l_awr_min_availtime, xmlelement("firstAvailableDate", :l_awr_min_availtime), null), nvl2(:l_awr_max_availtime, xmlelement("lastAvailableDate", :l_awr_max_availtime), null), nvl2(:l_tzr, xmlelement("TZOffset", :l_tzr), null), nvl2(:l_options, xmltype(:l_options), null)) from base_data where nvl(dbt, 0) + nvl(cpu, 0) + nvl(uio, 0) > 0 |
56t3547hgj91f | WITH names as (SELECT metric_name, metric_unit, rownum as met_id FROM v$metricname WHERE group_name = 'System Metrics Long Duration' AND metric_name IN ( 'Average Synchronous Single-Block Read Latency', 'Background CPU Usage Per Sec', 'CPU Usage Per Sec', 'Current Logons Count', 'Current Open Cursors Count', 'Current OS Load', 'Database Time Per Sec', 'Executions Per Sec', 'GC CR Block Received Per Second', 'GC Current Block Received Per Second', 'Global Cache Average CR Get Time', 'Global Cache Average Current Get Time', 'Global Cache Blocks Lost', 'Host CPU Utilization (%)', 'Logons Per Sec', 'Network Traffic Volume Per Sec', 'Physical Read Total Bytes Per Sec', 'Physical Write Total Bytes Per Sec', 'Process Limit %', 'Session Limit %', 'Total PGA Allocated', 'User Commits Per Sec', 'User Rollbacks Per Sec', 'User Transaction Per Sec', 'VM in bytes Per Sec', 'VM out bytes Per Sec', 'Run Queue Per Sec' )) , data as (SELECT metric_name, inst_id, avg(value) as value, min(value) as mi, max(value) as ma FROM GV$metric_history WHERE end_time >= :1 AND group_id = 2 AND intsize_csec >= 4000 AND metric_name in ( 'Average Synchronous Single-Block Read Latency', 'Background CPU Usage Per Sec', 'CPU Usage Per Sec', 'Current Logons Count', 'Current Open Cursors Count', 'Current OS Load', 'Database Time Per Sec', 'Executions Per Sec', 'GC CR Block Received Per Second', 'GC Current Block Received Per Second', 'Global Cache Average CR Get Time', 'Global Cache Average Current Get Time', 'Global Cache Blocks Lost', 'Host CPU Utilization (%)', 'Logons Per Sec', 'Network Traffic Volume Per Sec', 'Physical Read Total Bytes Per Sec', 'Physical Write Total Bytes Per Sec', 'Process Limit %', 'Session Limit %', 'Total PGA Allocated', 'User Commits Per Sec', 'User Rollbacks Per Sec', 'User Transaction Per Sec', 'VM in bytes Per Sec', 'VM out bytes Per Sec', 'Run Queu e Per Sec' ) GROUP BY metric_name, inst_id ) , names_xml as (SELECT xmlagg( xmlelement("map", xmlattributes( metric_name as "name", metric_unit as "unit", met_id as "id" ))) as x FROM names) , data_xml as (SELECT xmlagg( xmlelement("m", xmlattributes( d.inst_id as "i", round(d.value, 3) as "v", round(d.ma, 3) as "ma", round(d.mi, 3) as "mi", n.met_id as "id" ))) as x FROM data d, names n WHERE d.metric_name = n.metric_name) , final_xml as (SELECT xmlelement("metrics", xmlelement("metric_names", n.x), xmlelement("data", d.x)) as x FROM names_xml n, data_xml d) , avg_as as (SELECT sum(value)/100 as v FROM data WHERE metric_name = 'Database Time Per Sec' ) SELECT avg_as.v, final_xml.x FROM avg_as, final_xml |
5h7xwu611bxv2 | select xmlagg(nvl2(event, xmlelement("events", xmlattributes(type as "type", description as "desc"), event), null)) from ( select type, description, xmlagg(xmlelement("event", xmlattributes(to_char(max_time, :date_fmt) as "time", max_id as "id", decode(cnt, 1, null, cnt) as "count", decode(cnt, 1, null, to_char(min_time, :date_fmt)) as "min_time", decode(cnt, 1, null, min_id) as "min_id")) order by max_time) event from ( -- group events select type, description, next_head, min(end_time) min_time, max(end_time) max_time, min(id) min_id, max(id) max_id , count(*) cnt from ( -- addm tasks + instance startups - train grouping -- find the next head select type, description, id, end_time, pos, case when pos is null then lead(pos) ignore nulls over(partition by type order by end_time) else pos end next_head from ( -- determine head/tail select type, description, id, end_time, case when (type = 'addm' and next_delta > :l_bucket_interval) or (type = 'startup' and next_delta > 60) then 'HEAD' || to_char( (row_number() over (partition by type order by end_time)), '000000009') else null end pos from ( -- compute distance select type, description, id, end_time, ( (cast( lead(end_time) over (partition by type order by type, end_time) as date) - (cast(end_time as date)))*86400) next_delta from ( -- retrieve tasks select 'addm' type, end_time, task_name id, 'task_name' description from dba_addm_tasks t, (select min(snap_id) min_snap_id, max(snap_id) max_snap_id, max(instance_number) max_inst from dba_hist_snapshot where dbid = :m_dbid and end_interval_time between to_timestamp(:p_start_time, :date_fmt) and to_timestamp(:p_end_time, :date_fmt)) s where t.dbid = :m_dbid and begin_snap_id >= s.min_snap_id - 1 and begin_snap_id < s.max_snap_id and how_created = 'AUTO' and ( s.max_inst = 1 or requested_analysis = 'DATABASE') union all select 'startup' type, startup_time, instance_name id, 'instance_name' description from dba_hist_database_instance di where di.dbid = :m_dbid and instance_number between :m_inst_id_low and :m_inst_id_high and startup_time between to_date(:p_start_time, :date_fmt) and to_date(:p_end_time, :date_fmt)))) union all -- rt addm tasks, bucketize -- compute buckets select t ype, description, id, time, to_char(bid) pos, to_char(bid) next_head from ( -- compute bucket id select type, time, id, description, trunc( ((extract(day from (time - to_timestamp(:p_start_time, :date_fmt))) *86400) + (extract(hour from (time - to_timestamp(:p_start_time, :date_fmt))) *3600) + (extract(minute from (time - to_timestamp(:p_start_time, :date_fmt))) *60) + (extract(second from (time - to_timestamp(:p_start_time, :date_fmt)))) ) / :l_bucket_interval) + 1 bid from ( -- rt addm tasks -- convert to timestamps in case we have other -- events that are timestamp based select 'perf' type, cast(report_generation_time as timestamp) time, to_char(report_id) id, 'report_id' descriptio n from dba_hist_reports_timebands t where t.component_name = 'perf' and t.instance_number between :m_inst_id_low and :m_inst_id_high and t.band_start_time >= trunc(to_date(:p_start_time, :date_fmt)) and t.band_start_time <= trunc(to_date(:p_end_time, :date_fmt)) and t.period_start_time >= to_date(:p_start_time, :date_fmt) and t.period_end_time <= to_date(:p_end_time, :date_fmt)))) group by type, description, next_head) group by type, description) |
5k5207588w9ry | SELECT DBMS_REPORT.GET_REPORT(:B1 ) FROM DUAL |
5ms6rbzdnq16t | select job, nvl2(last_date, 1, 0) from sys.job$ where (((:1 <= next_date) and (next_date <= :2)) or ((last_date is null) and (next_date < :3))) and (field1 = :4 or (field1 = 0 and 'Y' = :5)) and (this_date is null) and ((dbms_logstdby.db_is_logstdby = 0 and job < 1000000000) or (dbms_logstdby.db_is_logstdby = 1 and job >= 1000000000)) order by next_date, job |
5n1fs4m2n2y0r | select pos#, intcol#, col#, spare1, bo#, spare2, spare3 from icol$ where obj#=:1 |
616m6uhpa2usu | select i.obj#, i.ts#, i.file#, i.block#, i.intcols, i.type#, i.flags, i.property, i.pctfree$, i.initrans, i.maxtrans, i.blevel, i.leafcnt, i.distkey, i.lblkkey, i.dblkkey, i.clufac, i.cols, i.analyzetime, i.samplesize, i.dataobj#, nvl(i.degree, 1), nvl(i.instances, 1), i.rowcnt, mod(i.pctthres$, 256), i.indmethod#, i.trunccnt, nvl(c.unicols, 0), nvl(c.deferrable#+c.valid#, 0), nvl(i.spare1, i.intcols), i.spare4, i.spare2, i.spare6, decode(i.pctthres$, null, null, mod(trunc(i.pctthres$/256), 256)), nvl(i.evaledition#, 1), nvl(i.unusablebefore#, 0), nvl(i.unusablebeginning#, 0), ist.cachedblk, ist.cachehit, ist.logicalread from ind$ i, ind_stats$ ist, (select enabled, min(cols) unicols, min(to_number(bitand(defer, 1))) deferrable#, min(to_number(bitand(defer, 4))) valid# from cdef$ where obj#=:1 and enabled > 1 group by enabled) c where i.obj#=c.enabled(+) and i.obj# = ist.obj#(+) and i.bo#=:1 order by i.obj# |
71rqmw80jcqcw | insert into wrh$_parameter (dbid, con_dbid, snap_id, instance_number, parameter_hash, value, isdefault, ismodified) select :dbid, :srcdbid con_dbid, :snap_id, :instance_number, i.ksppihash hash, substr(sv.ksppstvl, 1, 512), sv.ksppstdf, decode(bitand(sv.ksppstvf, 7), 1, 'MODIFIED', 'FALSE') FROM x$ksppi i, x$ksppsv sv WHERE (1 = 1) and i.indx = sv.indx and (((i.ksppinm not like '#_%' escape '#') or (sv.ksppstdf = 'FALSE') or (bitand(sv.ksppstvf, 5) > 0)) or (i.ksppinm like '#_#_%' escape '#')) |
71yg7b00vhz0v | SELECT SQL_LIST.* FROM XMLTABLE('/report/sql_monitor_list_report/sql | /report/sql_monitor_list_report/dbop' PASSING :B1 COLUMNS "sql_id" VARCHAR2(128) PATH './@sql_id', "sql_exec_start" VARCHAR2(128) PATH './@sql_exec_start', "sql_exec_id" NUMBER PATH './@sql_exec_id', "plan_hash" NUMBER PATH './plan_hash', "inst_id" NUMBER PATH './inst_id', "session_id" NUMBER PATH './session_id', "session_serial" NUMBER PATH './session_serial', "dbop_name" VARCHAR2(128) PATH './@dbop_name', "dbop_exec_id" NUMBER PATH './@dbop_exec_id', "dbop_exec_start" VARCHAR2(128) PATH './@dbop_exec_start') SQL_LIST WHERE ROWNUM <= :B2 |
77nbshknaxk50 | DECLARE job BINARY_INTEGER := :job; next_date TIMESTAMP WITH TIME ZONE := :mydate; broken BOOLEAN := FALSE; job_name VARCHAR2(30) := :job_name; job_subname VARCHAR2(30) := :job_subname; job_owner VARCHAR2(30) := :job_owner; job_start TIMESTAMP WITH TIME ZONE := :job_start; job_scheduled_start TIMESTAMP WITH TIME ZONE := :job_scheduled_start; window_start TIMESTAMP WITH TIME ZONE := :window_start; window_end TIMESTAMP WITH TIME ZONE := :window_end; chain_id VARCHAR2(14) := :chainid; credential_owner varchar2(30) := :credown; credential_name varchar2(30) := :crednam; destination_owner varchar2(30) := :destown; destination_name varchar2(30) := :destnam; job_dest_id varchar2(14) := :jdestid; log_id number := :log_id; BEGIN BEGIN quest_ppcm_collector.take_snapshot('PM'); END; :mydate := next_date; IF broken THEN :b := 1; ELSE :b := 0; END IF; END; |
79vddxwy7qz3b | select /*+ no_monitor */ CON_ID, OBJOID, CLSOID, RUNTIME, PRI, JOBTYPE, SCHLIM, WT, INST, RUNNOW, ENQ_SCHLIM from ( select nvl(a.con_id, 0) CON_ID, a.obj# OBJOID, a.class_oid CLSOID, decode(bitand(a.flags, 16384), 0, a.next_run_date, a.last_enabled_time) RUNTIME, (2*a.priority + decode(bitand(a.job_status, 4), 0, 0, decode(a.running_instance, :1, -1, 1))) PRI, 1 JOBTYPE, decode(a.schedule_limit, NULL, decode(bitand(a.flags, 4194304), 4194304, p.schedule_limit, NULL), a.schedule_limit) SCHLIM, a.job_weight WT, decode(a.running_instance, NULL, 0, a.running_instance) INST, decode(bitand(a.flags, 16384), 0, 0, 1) RUNNOW, decode(bitand(a.job_status, 8388608), 0, 0, 1) ENQ_SCHLIM from sys.scheduler$_cdb_job a, sys.scheduler$_cdb_class b, sys.scheduler$_cdb_program p, (select /*+ no_merge */ database_role from v$database) v, v$instance i where a.program_oid = p.obj#(+) and a.class_oid = b.obj#(+) and bitand(a.job_status, 515) = 1 and bitand(a.flags, 1048576) = 0 and ((bitand(a.flags, 134217728 + 268435456) = 0) or (bitand(a.job_status, 1024) <> 0)) and bitand(a.flags, 4096) = 0 and (a.next_run_date <= :2 or bitand(a.flags, 16384) <> 0) and a.instance_id is null and (a.class_oid is null or (a.class_oid is not null and b.affinity is null and nvl(b.con_id, 0) = nvl(a.con_id, 0))) and (p.con_id is NULL or (nvl(a.con_id, 0) = nvl(p.con_id, 0))) and ( (a.database_role = v.database_role) or (a.database_role = 'ALL') or (a.database_role is null and v.database_role = 'PRIMARY')) and ( i.logins = 'ALLOWED' or bitand(a.flags, 17179869184) <> 0 ) union all select nvl(l.con_id, 0), l.obj#, l.class_oid, decode(bitand(l.flags, 16384), 0, l.next_run_date, l.last_enabled_time), (2*decode (bitand(l.flags, 8589934592), 0, q.priority, pj.priority) + decode(bitand(l.job_status, 4), 0, 0, decode(l.running_instance, :3, -1, 1))), 1, decode(bitand(l.flags, 8589934592), 0, q.schedule_limit, decode(pj.schedule_limit, NULL, q.schedule_limit, pj.schedule_limit)), decode(bitand(l.flags, 8589934592), 0, q.job_weight, pj.job_weight), decode(l.running_instance, NULL, 0, l.running_instance), decode(bitand(l.flags, 16384), 0, 0, 1), decode(bitand(l.job_status, 8388608), 0, 0, 1) from sys.scheduler$_cdb_comb_lw_job l, sys.scheduler$_cdb_class w, sys.scheduler$_cdb_program q, (select nvl(sl.con_id, 0) con_id, sl.obj# obj#, decode(bitand(sl.flags, 8589934592), 0, sl.program_oid, spj.program_oid) program_oid, decode(bitand(sl.flags, 8589934592), 0, NULL, spj.priority) priority, decode(bitand(sl.flags, 858 9934592), 0, NULL, spj.job_weight) job_weight, decode(bitand(sl.flags, 8589934592), 0, NULL, spj.schedule_limit) schedule_limit from sys.scheduler$_cdb_comb_lw_job sl, scheduler$_cdb_job spj where sl.program_oid = spj.obj#(+) and (spj.con_id is NULL or (nvl(sl.con_id, 0) = nvl(spj.con_id, 0)))) pj , v$instance i where pj.obj# = l.obj# and l.class_oid = w.obj#(+) and pj.program_oid = q.obj#(+) and (:4 = 0 or l.running_instance = :5) and bitand(l.job_status, 515) = 1 and ((bitand(l.flags, 134217728 + 268435456) = 0) or (bitand(l.job_status, 1024) <> 0)) and bitand(l.flags, 4096) = 0 and (l.next_run_date <= :6 or bitand(l.flags, 16384) <> 0) and l.instance_id is null and (l.class_oid is null or (l.class_oid is not null and w.affinity is null and nvl(w.con_id, 0) = nvl(l.con_id, 0))) and (pj.con _id is NULL or (nvl(l.con_id, 0) = nvl(pj.con_id, 0))) and (q.con_id is NULL or (nvl(l.con_id, 0) = nvl(q.con_id, 0))) and ( i.logins = 'ALLOWED' or bitand(l.flags, 17179869184) <> 0 ) union all select nvl(c.con_id, 0), c.obj#, 0, c.next_start_date, 0, 2, c.duration, 1, 0, 0, 0 from sys.scheduler$_cdb_window c , v$instance i where bitand(c.flags, 1) <> 0 and bitand(c.flags, 2) = 0 and bitand(c.flags, 64) = 0 and c.next_start_date <= :7 and i.logins = 'ALLOWED' union all select nvl(d.con_id, 0), d.obj#, 0, d.next_start_date + d.duration, 0, 4, numtodsinterval(0, 'minute'), 1, 0, 0, 0 from sys.scheduler$_cdb_window d , v$instance i where bitand(d.flags, 1) <> 0 and bitand(d.flags, 2) = 0 and bitand(d.flags, 64) = 0 and d.next_start_date <= :8 and i.logins = 'ALLOWED' union all select nvl(f.con_id, 0), f.object_id, 0, e.attr_tstamp, 0, decode(bitand(e.flags, 131072), 0, 2, 3) , e.attr_intv, 1, 0, 0, 0 from sys.scheduler$_cdb_global_attrib e, sys.cdb_objects f, v$instance i where (nvl(e.con_id, 0), e.obj#) in ((0, 17383)) and f.owner = 'SYS' and e.value = f.object_name and f.object_type = 'WINDOW' and e.attr_tstamp is not null and e.attr_intv is not null and nvl(e.con_id, 0) = nvl(f.con_id, 0) and i.logins = 'ALLOWED' union all select nvl(i.con_id, 0), i.object_id, 0, h.attr_tstamp + h.attr_intv, 0, decode(bitand(h.flags, 131072), 0, 4, 5), numtodsinterval(0, 'minute'), 1, 0, 0, 0 from sys.scheduler$_cdb_global_attrib h, sys.cdb_objects i, v$instance ik where (nvl(h.con_id, 0), h.obj#) in ((0, 17383)) and i.owner = 'SYS' and h.value = i.object_name and i.object_type = 'WINDOW' and h.attr_tstamp is not null and h.attr_intv is not null and nvl(h.con_id, 0) = nvl(i.con_id, 0) and ik.logins = 'ALLOWED') order by RUNTIME, JOBTYPE, CLSOID, PRI, WT DESC, OBJOID |
7d0ffav06dqyd | SELECT /*+ no_monitor */ CON_ID, OBJOID, CLSOID, DECODE(BITAND(FLAGS, 16384), 0, RUNTIME, LETIME), (2*PRI + DECODE(BITAND(STATUS, 4), 0, 0, decode(INST, :1, -1, 1))), JOBTYPE, SCHLIM, WT, INST, RUNNOW, ENQ_SCHLIM, INST_ID, SRVNAME FROM ( select nvl(a.con_id, 0) CON_ID, a.obj# OBJOID, a.class_oid CLSOID, a.next_run_date RUNTIME, a.last_enabled_time LETIME, a.flags FLAGS, a.job_status STATUS, 1 JOBTYPE, a.priority PRI, decode(a.schedule_limit, NULL, decode(bitand(a.flags, 4194304), 4194304, b.schedule_limit, NULL), a.schedule_limit) SCHLIM, a.job_weight WT, decode(a.running_instance, NULL, 0, a.running_instance) INST, decode(bitand(a.flags, 16384), 0, 0, 1) RUNNOW, decode(bitand(a.job_status, 8388608), 0, 0, 1) ENQ_SCHLIM, a.instance_id INST_ID , a.affinity SRVNAME from (selec t ta.con_id, ta.obj#, ta.class_oid, ta.next_run_date, ta.flags, ta.priority, ta.job_status, ta.instance_id, ta.running_instance, ta.job_weight, ta.schedule_limit, ta.last_enabled_time, ta.database_role, ta.program_oid, e.affinity from sys.scheduler$_cdb_job ta, sys.scheduler$_cdb_class e where (ta.next_run_date <= :2 OR BITAND(ta.flags, 16384) <> 0) and ta.class_oid=e.obj#(+) and ((ta.class_oid is not null and ta.instance_id is null and (bitand(e.flags, :3) <> 0 and (lower(e.affinity) = lower(:4) or lower(e.affinity) in (select name from cdb_service$ where bitand(flags, 128) = 128)) and nvl(e.con_id, 0) = nvl(ta.con_id, 0) ) ) or ta.instance_id is not null and ta.instance_id = :5 ) ) a, sys.scheduler$_cdb_program b, v$database v , v$instance i where a.program_oid = b.obj#(+) and (b.con_id is NULL or (nvl(a.con_id, 0) = nv l(b.con_id, 0))) and ( (a.database_role = v.database_role) or (a.database_role = 'ALL') or (a.database_role is null and v.database_role = 'PRIMARY') ) and ( i.logins = 'ALLOWED' or bitand(a.flags, 17179869184) <> 0 ) union all select nvl(c.con_id, 0), c.obj#, c.class_oid, c.next_run_date, c.last_enabled_time, c.flags, c.job_status, 1, decode(bitand(c.flags, 8589934592), 0, d.priority, pj.priority), decode(bitand(c.flags, 8589934592), 0, d.schedule_limit, decode(pj.schedule_limit, NULL, d.schedule_limit, pj.schedule_limit)), decode(bitand(c.flags, 8589934592), 0, d.job_weight, pj.job_weight), decode(c.running_instance, NULL, 0, c.running_instance), decode(bitand(c.flags, 16384), 0, 0, 1) RUNNOW, decode(bitand(c.job_status, 8388608), 0, 0, 1) ENQ_SCHLIM, c.instance_id INST_ID, pj.affinity from sys.scheduler$_cdb_comb_lw_job c, sy s.scheduler$_cdb_program d, (select nvl(sl.con_id, 0) con_id, sl.obj# obj#, decode(bitand(sl.flags, 8589934592), 0, sl.program_oid, spj.program_oid) program_oid, decode(bitand(sl.flags, 8589934592), 0, NULL, spj.priority) priority, decode(bitand(sl.flags, 8589934592), 0, NULL, spj.job_weight) job_weight, decode(bitand(sl.flags, 8589934592), 0, NULL, spj.schedule_limit) schedule_limit, sl.affinity from (select ta.con_id, ta.obj#, ta.class_oid, ta.next_run_date, ta.flags, ta.job_status, ta.instance_id, ta.running_instance, ta.last_enabled_time, ta.program_oid , e.affinity from sys.scheduler$_cdb_comb_lw_job ta, sys.scheduler$_cdb_class e where (ta.next_run_date <= :6 OR BITAND(ta.flags, 16384) <> 0) and ta.class_oid=e.obj#(+) and ((ta.class_oid is not null and ta.in stance_id is null and (bitand(e.flags, :7) <> 0 and (lower(e.affinity) = lower(:8) or lower(e.affinity) in (select name from cdb_service$ where bitand(flags, 128) = 128)) and nvl(e.con_id, 0) = nvl(ta.con_id, 0) ) ) or ta.instance_id is not null and ta.instance_id = :9 ) ) sl, scheduler$_cdb_job spj where sl.program_oid = spj.obj#(+) and (spj.con_id is NULL or (nvl(sl.con_id, 0) = nvl(spj.con_id, 0)))) pj, v$instance i where pj.obj# = c.obj# and pj.program_oid = d.obj#(+) and (pj.con_id is NULL or (nvl(c.con_id, 0) = nvl(pj.con_id, 0))) and (d.con_id is NULL or (nvl(c.con_id, 0) = nvl(d.con_id, 0))) and ( i.logins = 'ALLOWED' or bitand(c.flags, 17179869184) <> 0 ) and (:10 = 0 or c.running_instance = :11)) m WHERE BITAND(STATUS, 515) = 1 AND BITAND(FLAGS, 1048576) = 0 AND ((BITAND(FLAGS, 134217728 + 268435456) = 0) OR (BITAND(STATUS, 1024) <> 0)) AND BITAND(FLAGS, 4096) = 0 ORDER BY 4, 3, 5, 8 DESC, 2 |
7jycxu86n60qh | SELECT value FROM v$parameter WHERE name = :1 |
7kmbrw7q8hn4g | begin prvt_ilm.ilm_cleanup; end; |
7qst2kv4mtkv5 | SELECT /*+ no_monitor */ CON_ID, OBJOID, CLSOID, DECODE(BITAND(FLAGS, 16384), 0, RUNTIME, LETIME), (2*PRI + DECODE(BITAND(STATUS, 4), 0, 0, decode(INST, :1, -1, 1))), JOBTYPE, SCHLIM, WT, INST, RUNNOW, ENQ_SCHLIM, INST_ID FROM ( select nvl(a.con_id, 0) CON_ID, a.obj# OBJOID, a.class_oid CLSOID, a.next_run_date RUNTIME, a.last_enabled_time LETIME, a.flags FLAGS, a.job_status STATUS, 1 JOBTYPE, a.priority PRI, decode(a.schedule_limit, NULL, decode(bitand(a.flags, 4194304), 4194304, b.schedule_limit, NULL), a.schedule_limit) SCHLIM, a.job_weight WT, decode(a.running_instance, NULL, 0, a.running_instance) INST, decode(bitand(a.flags, 16384), 0, 0, 1) RUNNOW, decode(bitand(a.job_status, 8388608), 0, 0, 1) ENQ_SCHLIM, a.instance_id INST_ID from (select ta.con_id, ta.obj#, ta.class _oid, ta.next_run_date, ta.flags, ta.priority, ta.job_status, ta.instance_id, ta.running_instance, ta.job_weight, ta.schedule_limit, ta.last_enabled_time, ta.database_role, ta.program_oid from sys.scheduler$_cdb_job ta , sys.scheduler$_cdb_class e where (ta.next_run_date <= :2 OR BITAND(ta.flags, 16384) <> 0) and ta.class_oid=e.obj#(+) and ((ta.class_oid is not null and ta.instance_id is null and (bitand(e.flags, :3) <> 0 and lower(e.affinity) = lower(:4) and nvl(e.con_id, 0) = nvl(ta.con_id, 0) and lower(e.affinity) not in (select name from cdb_service$ where bitand(flags, 128) = 128)) ) or ta.instance_id is not null and ta.instance_id = :5 ) ) a, sys.scheduler$_cdb_program b, v$database v , v$instance i where a.program_oid = b.obj#(+) and (b.con_id is NULL or (nvl(a.con_id, 0) = nvl(b.con_id, 0))) and ( (a.database_role = v.d atabase_role) or (a.database_role = 'ALL') or (a.database_role is null and v.database_role = 'PRIMARY') ) and ( i.logins = 'ALLOWED' or bitand(a.flags, 17179869184) <> 0 ) union all select nvl(c.con_id, 0), c.obj#, c.class_oid, c.next_run_date, c.last_enabled_time, c.flags, c.job_status, 1, decode(bitand(c.flags, 8589934592), 0, d.priority, pj.priority), decode(bitand(c.flags, 8589934592), 0, d.schedule_limit, decode(pj.schedule_limit, NULL, d.schedule_limit, pj.schedule_limit)), decode(bitand(c.flags, 8589934592), 0, d.job_weight, pj.job_weight), decode(c.running_instance, NULL, 0, c.running_instance), decode(bitand(c.flags, 16384), 0, 0, 1) RUNNOW, decode(bitand(c.job_status, 8388608), 0, 0, 1) ENQ_SCHLIM, c.instance_id INST_ID from sys.scheduler$_cdb_comb_lw_job c, sys.scheduler$_cdb_program d, (select nvl(sl.con_id, 0) c on_id, sl.obj# obj#, decode(bitand(sl.flags, 8589934592), 0, sl.program_oid, spj.program_oid) program_oid, decode(bitand(sl.flags, 8589934592), 0, NULL, spj.priority) priority, decode(bitand(sl.flags, 8589934592), 0, NULL, spj.job_weight) job_weight, decode(bitand(sl.flags, 8589934592), 0, NULL, spj.schedule_limit) schedule_limit from (select ta.con_id, ta.obj#, ta.class_oid, ta.next_run_date, ta.flags, ta.job_status, ta.instance_id, ta.running_instance, ta.last_enabled_time, ta.program_oid from sys.scheduler$_cdb_comb_lw_job ta, sys.scheduler$_cdb_class e where (ta.next_run_date <= :6 OR BITAND(ta.flags, 16384) <> 0) and ta.class_oid=e.obj#(+) and ((ta.class_oid is not null and ta.instance_id is null and (bitand(e.flags, :7) <> 0 and lower(e.affinity) = lower(:8) and nvl(e.con_id, 0) = nvl(ta.con_id, 0) and lower(e.affinity) not in (select name from cdb_service$ where bitand(flags, 128) = 128)) ) or ta.instance_id is not null and ta.instance_id = :9 ) ) sl, scheduler$_cdb_job spj where sl.program_oid = spj.obj#(+) and (spj.con_id is NULL or (nvl(sl.con_id, 0) = nvl(spj.con_id, 0)))) pj, v$instance i where pj.obj# = c.obj# and pj.program_oid = d.obj#(+) and (pj.con_id is NULL or (nvl(c.con_id, 0) = nvl(pj.con_id, 0))) and (d.con_id is NULL or (nvl(c.con_id, 0) = nvl(d.con_id, 0))) and ( i.logins = 'ALLOWED' or bitand(c.flags, 17179869184) <> 0 ) and (:10 = 0 or c.running_instance = :11)) m WHERE BITAND(STATUS, 515) = 1 AND BITAND(FLAGS, 1048576) = 0 AND ((BITAND(FLAGS, 134217728 + 268435456) = 0) OR (BITAND(STATUS, 1024) <> 0)) AND BITAND(FLAGS, 4096) = 0 ORDER BY 4, 3, 5, 8 DESC, 2 |
8adcur42pddxj | insert into wrh$_java_pool_advice (dbid, con_dbid, snap_id, instance_number, java_pool_size_for_estimate, java_pool_size_factor, estd_lc_size, estd_lc_memory_objects, estd_lc_time_saved, estd_lc_time_saved_factor, estd_lc_load_time, estd_lc_load_time_factor, estd_lc_memory_object_hits) select :dbid, :srcdbid con_dbid, :snap_id, :instance_number, java_pool_size_for_estimate, java_pool_size_factor, estd_lc_size, estd_lc_memory_objects, estd_lc_time_saved, estd_lc_time_saved_factor, estd_lc_load_time, estd_lc_load_time_factor, estd_lc_memory_object_hits from v$java_pool_advice |
8p908gp3h35z7 | DECLARE job BINARY_INTEGER := :job; next_date DATE := :mydate; broken BOOLEAN := FALSE; BEGIN BEGIN /*Quest PPCM Bottleneck job */ quest_ppcm_bottleneck.collect_data; END; :mydate := next_date; IF broken THEN :b := 1; ELSE :b := 0; END IF; END; |
8swypbbr0m372 | select order#, columns, types from access$ where d_obj#=:1 |
9ctt1scmwbmbg | begin dbsnmp.bsln_internal.maintain_thresholds; end; |
9tgj4g8y4rwy8 | select type#, blocks, extents, minexts, maxexts, extsize, extpct, user#, iniexts, NVL(lists, 65535), NVL(groups, 65535), cachehint, hwmincr, NVL(spare1, 0), NVL(scanhint, 0), NVL(bitmapranges, 0) from seg$ where ts#=:1 and file#=:2 and block#=:3 |
9tpnr4jz10j3y | with metrics as ( select inst_id, bucket_id, metric_id, case when rn = 1 then metric_name else null end metric_name, case when metric_name in ('Host CPU Usage Per Sec', 'CPU Usage Per Sec', 'Background CPU Usage Per Sec') -- convert to seconds per second i.e. aas then value/100 when metric_name in ('Global Cache Average CR Get Time', 'Global Cache Average Current Get Time') -- convert to ms then value*10 else value end value from ( select inst_id, bucket_id, metric_id, metric_name, case when metric_name like '%Per Txn' or metric_name in ( 'Average Synchronous Single-Block Read Latency', 'Global Cache Average CR Get Time', 'Global Cache Average Current Get Time') then avgval else sumval end value, row_number() over (partition by metric_id, metric_name order by bucket_id, metric_id) rn from ( select inst_id, bucket_id, metric_id, metric_name, sum(value) sumval, avg(value) avgval from ( select decode(:p_inst_detail, 1, inst_id, null) inst_id, -- note need to convert to timestamps otherwise we -- get wrong results trunc( ( (extract(day from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 86400 + extract(hour from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 3600 + extract(minute from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 60 + extract(second from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) ) / :p_bucket_interval)) + 1 bucket_id, metric_id, metric_name, value from gv$sysmetric_history where group_id = :b_history_group_id and :p_source = 'history' and inst_id between :p_inst_id_low and :p_inst_id_high and end_time >= to_date(:b_start_time, :date_fmt) and end_time < to_date(:b_end_time, :date_fmt) and metric_name in ( 'Executions Per Sec', 'Logons Per Sec', 'Logons Per Txn', 'Redo Generated Per Sec', 'Redo Generated Per Txn', 'User Transaction Per Sec', 'User Calls Per Sec', 'Network Traffic Volume Per Sec', 'Total Parse Count Per Sec', 'Hard Parse Count Per Sec', 'Parse Failure Count Per Sec', 'Process Limit %', 'Session Limit %', 'Current Logons Count', 'Current Open Cursors Count')) group by inst_id, bucket_id, metric_id, metric_name) where nvl(avgval, 0) + nvl(sumval, 0) > 0) ) -- construct xml select xmlagg( nvl2(buckets, xmlelement("stattype", xmlattributes(:p_metric_type as "name"), nvl2(stat_id, xmlelement("stat_info", stat_id), null), nvl2(buckets, xmlelement("buckets", xmlattributes( :p_bucket_interval as "bucket_interval", :p_bucket_count as "bucket_count", :b_min_time as "start_time", :b_max_time as "end_time", :b_duration a s "duration"), buckets), null)), null)) from ( -- group buckets select xmlagg(xmlelement("bucket", xmlattributes(bucket_id as "bucket_id"), stats) order by bucket_id) buckets, xmlagg(stat_id) stat_id from ( -- aggregate stats in each bucket select bucket_id, xmlagg(stat_id order by metric_id) stat_id, xmlagg(xmlelement("stat", xmlattributes(metric_id as "id", round(value, 6) as "value"))) stats from ( -- generate id name mapping select bucket_id, metric_id, value, nvl2(metric_name, xmlelement("stat", xmlattributes(metric_id as "id", metric_name a s "name")), null) stat_id from metrics) group by bucket_id)) |
9yrw99s2ww388 | select addr, latch#, level#, name, hash, gets, misses, sleeps, immediate_gets, immediate_misses, waiters_woken, waits_holding_latch, spin_gets, sleep1, sleep2, sleep3, sleep4, sleep5, sleep6, sleep7, sleep8, sleep9, sleep10, sleep11, wait_time, con_id from gv$latch where inst_id = USERENV('Instance') |
a6ygk0r9s5xuj | SELECT A.JOB_NAME, ( CASE A.STATE WHEN 'SCHEDULED' THEN :B11 WHEN 'DISABLED' THEN :B10 WHEN 'RUNNING' THEN :B9 ELSE :B8 END ) FROM DBA_SCHEDULER_JOBS A, ILM_RESULTS$ B, USER$ C, ILM_EXECUTION$ D WHERE A.JOB_NAME = B.JOBNAME AND (B.EXECUTION_ID = :B7 OR :B7 =:B6 ) AND B.EXECUTION_ID = D.EXECUTION_ID AND (B.JOBTYPE = :B5 OR :B5 = :B3 ) AND (B.JOBTYPE1 = :B4 OR :B4 = :B3 ) AND C.USER# = D.OWNER AND (:B1 = :B2 OR D.FLAG = :B1 ) |
adzjh275fvvx4 | call WWV_FLOW_WORKSHEET_API.DO_NOTIFY ( ) |
aksaf74grz97n | with alloc_hist as ( -- conditionally print out component name select bucket_id, alloc, id, bytes, case when rn = 1 then component else null end component from (-- get first occurrence of component name/id select bucket_id, alloc, component, id, bytes, row_number() over (partition by alloc, component order by bucket_id, bytes desc) rn from (-- get sum across instances select bucket_id, component, id, alloc, -- use final size (which is size at this time), if -- we have it -- otherwise use next size, which is the likely size -- as this is the known starting size of a resize op sum(nvl(final_size, next_size))/ decode(alloc, 'paging', 1, 1048576) bytes from table(gv$(cursor( -- select from each instance select userenv('INSTANCE') inst_id, bucket_id, id, -- rename components case when component = 'DEFAULT buffer cache' then 'buffer cache' when component like 'DEFAULT % buffer cache' or component in ('KEEP buffer cache', 'RECYCLE buffer cache') then 'other buffer cache' when component in 'PGA Target' then 'total_pga' else component end component, -- allocation type case when component = 'PGA Target' then 'pga' when component in ('VM in bytes Per Sec', 'VM out bytes Per Sec') then 'paging' else 'sga' end alloc, final_size, next_size from ( -- get next size in case not in resize ops -- by joining to an inline view with a row -- for each bucket select bm.bucket_id, bm.component, bm.id, r.final_size, -- next_size is the likely size -- as that is the start size of the resize -- at the start of the time frame -- we have to use this as we do not know -- the sizing that occurred prior to the -- requested time frame lead(r.initial_size) ignore nulls over (partition by bm.component order by bm.bucket_id) next_size from (-- force one bucket for each component select b.bucket_id, m.component, -- generate an id, has to be done with all -- comps before eliminating 0s for -- refresh to get consistent ids dense_rank() over (order by component) id from (-- get names select component from v$memory_dynamic_components m where component not in ('SGA Target') union all select 'VM in bytes Per Sec' from v$timer union all select 'VM out bytes Per Sec' from v$timer) m, (-- create rows with bucket_ids select rownum bucket_id from ( -- create n rows -- need single row table -- cannot use dual in gvtf select 1 from v$timer connect by level <= :l_bucket_count)) b) bm, (-- get one row per populated bucket -- for each component select component, bucket_id, min(decode(rn_asc, 1, initial_size, null)) initial_size, max(decode(rn_desc, 1, final_size, null)) final_size from (-- rank to get first row in the bucket select component, initial_size, final_size, bucket_id, -- break ties if all occur same second row_number() over (partition by component, bucket_id order by end_time, initial_size) rn_asc, row_number() over (partition by component, bucket_id order by end_time desc, final_size desc) rn_desc from ( -- compute bucket ids select component, end_time, initial_size, final_siz e, trunc( ((end_time - to_date(:l_min_time, :date_fmt))* 86400) / :l_bucket_interval) + 1 bucket_id from (-- get resizes and current size select component, end_time, initial_size, final_size from v$memory_resize_ops r where end_time >= to_date(:l_min_time, :date_fmt) and end_time < to_date(:l_max_time, :date_fmt) union all select component, to_date(:l_current_time, :date_fmt), current_size, current_size from v$memory_dynamic_components where component not in ('SGA Target', 'PGA Target') and current_size > 0 union all -- pga and paging statistics select case when metric_name= 'Total PGA Allocated' then 'PGA Target' else metric_name end component, end_time, value, value from v$sysmetric_history where end_time >= to_date(:l_min_time, :date_fmt) and end_time < to_date(:l_max_time, :date_fmt) and metric_name in ( 'Total PGA Allocated', 'VM in bytes Per Sec', 'VM out bytes Per Sec') and group_id = 2 union all select 'PGA Target', to_date(:l_current_time, :date_fmt), value, value from v$pgastat where name='total PGA allocated' -- add rows in case of startup union all select 'PGA Target', trunc(i.startup_time-1/1440, 'mi'), 0, 0 from v$instance i where i.startup_time >= to_date(:l_min_time, :date_fmt) and i.startup_time < to_date(:l_max_time, :date_fmt) union all select 'VM in bytes Per Sec', trunc(i.startup_time-1/1440, 'mi'), 0, 0 from v$instance i where i.startup_time >= to_date(:l_min_time, :date_fmt) and i.startup_time < to_date(:l_max_time, :date_fmt) union all select 'VM out bytes Per Sec', trunc(i.startup_time-1/1440, 'mi'), 0, 0 from v$instance i where i.startup_time >= to_date(:l_min_time, :date_fmt) and i.startup_time < to_date(:l_max_time, :date_fmt) union all select m.component, trunc(i.startup_time-1/1440, 'mi'), 0, 0 from v$instance i, v$memory_dynamic_components m where i.startup_time >= to_date(:l_min_time, :date_fmt) and i.startup_time < to_date(:l_max_time, :date_fmt)))) where rn_desc = 1 or rn_asc = 1 group by component, bucket_id) r where bm.bucket_id = r.bucket_id (+) and bm.component = r.component (+)) ))) where inst_id between :p_inst_id_low and :p_inst_id_high group by bucket_id, component, alloc, id) where bytes > 0)) select nvl2(buckets, xmlelement("stattype", xmlattributes('allochist' as "name"), xmltype(:l_total_mem), nvl2(stat_id, xmlelement("stat_info", stat_id), null), xmlelement("buckets", xmlattributes(:l_bucket_interval as "bucket_interval", :l_bucket_count as "bucket_count", :l_min_time as "start_time", :l_max_time as "end_time", :l_duration as "duration"), buckets)), null) from ( select xmlagg( xmlelement("bucket", xmlattributes(bucket_id as "bucket_id"), stats) order by bucket_id) buckets, xmlagg(stat_id) stat_id from ( select bucket_id, xmlagg(stat_id order by id) stat_id, xmlagg(xmlelement("stat", xmlattributes(id as "id", round(bytes, 2) as "value")) order by id) stats from ( select bucket_id, id, bytes, nvl2(component, xmlelement("stat", xmlattributes(id as "id", component as "name", alloc as "alloc", 'bytes' as "unit", case when alloc != 'paging' then '1048576' else null end as "factor")), null) stat_id from alloc_hist) group by bucket_id)) |
antwva8smnnmt | insert into wrh$_enqueue_stat (dbid, con_dbid, snap_id, instance_number, eq_type, req_reason, total_req#, total_wait#, succ_req#, failed_req#, cum_wait_time, event#) select :dbid, :srcdbid con_dbid, :snap_id, :instance_number, eq_type, req_reason, total_req#, total_wait#, succ_req#, failed_req#, cum_wait_time, event# from v$enqueue_statistics where total_req# != 0 |
asvzxj61dc5vs | select timestamp, flags from fixed_obj$ where obj#=:1 |
b0213nvxps96x | insert into wrh$_filestatxs (dbid, con_dbid, snap_id, instance_number, file#, creation_change#, phyrds, phywrts, singleblkrds, readtim, writetim, singleblkrdtim, phyblkrd, phyblkwrt, wait_count, time, optimized_phyblkrd ) select /*+ opt_param('_optimizer_mjc_enabled', 'false') leading(df fs fw) */ :dbid, :srcdbid con_dbid, :snap_id, :instance_number, df.file#, (df.crscnbas + (df.crscnwrp * power(2, 32))) creation_change#, fs.kcfiopyr, fs.kcfiopyw, fs.kcfiosbr, floor(fs.kcfioprt / 10000), floor(fs.kcfiopwt / 10000), floor(fs.kcfiosbt / 10000), fs.kcfiopbr, fs.kcfiopbw, nvl(fw.count, 0), nvl(fw.time, 0), fs.kcfiofbr from x$kcfio fs, file$ df, x$kcbfwait fw where fw.file#(+) = fs.kcfiofno and df.file# = fs.kcfiofno and df.status$ = 2 |
bb926a5dcb8kr | merge into sys.mon_mods$ m using dual on (m.obj# = :objn and (:pobjn = 0 or m.obj# = :pobjn or m.obj# in (select obj# from tabpart$ where bo# = :pobjn and obj# = :objn union all select obj# from tabcompart$ where bo# = :pobjn and obj# = :objn union all select ts p.obj# from tabsubpart$ tsp, tabcompart$ tcp where tsp.pobj# = tcp.obj# and (tcp.bo# = :pobjn or tcp.obj# = :pobjn) and tsp.obj# = :objn))) when matched then update set inserts = inserts + :ins, updates = updates + :upd, deletes = deletes + :del, flags = (decode(bitand(flags, :flag), :flag, flags, flags + :flag)), drop_segments = drop_segments + :dropseg, timestamp = :time when NOT matched then insert (obj#, inserts, updates, del etes, timestamp, flags, drop_segments) values (:objn, :ins, :upd, :del, :time, :flag, :dropseg) |
bc7gjv3ppdtbz | BEGIN dbms_workload_repository.create_snapshot(); END; |
bkw3supfuskbc | insert into wrh$_seg_stat_obj ( snap_id, dbid, ts#, obj#, dataobj#, owner, object_name, subobject_name, partition_type, object_type, tablespace_name, index_type, base_obj#, base_object_name, base_object_owner, con_dbid ) select :lah_snap_id, :dbid, ss1.tsn_kewrseg, ss1.objn_kewrseg, ss1.objd_kewrseg, ss1.ownername_kewrseg, ss1.objname_kewrseg, ss1.subobjname_kewrseg, decode(ss1.ptype_kewrseg, 0, 'NONE', 1, 'RANGE', 2, 'HASH', 3, 'SYSTEM', 4, 'LIST', NULL, 'NONE', 'U'||substr(ltrim(to_char(ss1.ptype_kewrseg)), 1, 7)) , decode(ss1.objtype_kewrseg, 0, 'NEXT OBJECT', 1, 'INDEX', 2, 'TABLE', 3, 'CLUSTER', 4, 'VIEW', 5, 'SYNONYM', 6, 'SEQUENCE', 7, 'PROCEDURE', 8, 'FUNCTION', 9, 'PACKAGE', 11, 'PACKAGE BODY', 12, 'TRIGGER', 13, 'TYPE', 14, 'TYPE BODY', 19, 'TABLE PARTITION', 20, 'INDEX PARTITION', 21, 'LOB', 22, 'LIBRARY', 23, 'DIRECTORY', 24, 'QUEUE', 28, 'JAVA SOURCE', 29, 'JAVA CLASS', 30, 'JAVA RESOURCE', 32, 'INDEXTYPE', 33, 'OPERATOR', 34, 'TABLE SUBPARTITION', 35, 'INDEX SUBPARTITION', 40, 'LOB PARTITION', 41, 'LOB SUBPARTITION', 42, 'MATERIALIZED VIEW', 43, 'DIMENSION', 44, 'CONTEXT', 47, 'RESOURCE PLAN', 48, 'CONSUMER GROUP', 51, 'SUBSCRIPTION', 52, 'LOCATION', 55, 'XML SCHEMA', 56, 'JAVA DATA', 57, 'SECURITY PROFILE', 'UNDEFINED') , ss1.tsname_kewrseg , decode(ss1.indtype_kewrseg, 0, NULL, 1, 'NORMAL'|| decode(bitand(ss1.iprop_kewrseg, 4), 0, '', 4, '/REV'), 2, 'BITMAP', 3, 'CLUSTER', 4, 'IOT - TOP', 5, 'IOT - NESTED', 6, 'SECONDARY', 7, 'ANSI', 8, 'LOB', 9, 'DOMAIN') , nullif(ss1.bobjn_kewrseg, 0) , case length(ss1.bobjname_kewrseg) when 0 then to_char(NULL) else ss1.bobjname_kewrseg end , case length(ss1.bowname_kewrseg) when 0 then to_char(NULL) else ss1.bowname_kewrseg end , ss1 .con_dbid_kewrseg from x$kewrattrnew at, x$kewrtsegstat ss1 where at.num1_kewrattr = ss1.tsn_kewrseg and at.num2_kewrattr = ss1.objn_kewrseg and at.num3_kewrattr = ss1.objd_kewrseg and at.num4_kewrattr = ss1.con_dbid_kewrseg and (ss1.objtype_kewrseg not in (1 /* INDEX - handled below */, 10 /* NON-EXISTENT */) or (ss1.objtype_kewrseg = 1 and ss1.indtype_kewrseg in (1, 2, 3, 4, 5, 6, 7, 8, 9))) and ss1.objname_kewrseg != '_NEXT_OBJECT' and ss1.objname_kewrseg != '_default_auditing_options_' |
bnznj24yxuzah | insert into WRH$_IOSTAT_FILETYPE (dbid, con_dbid, snap_id, instance_number, filetype_id, small_read_megabytes, small_write_megabytes, large_read_megabytes, large_write_megabytes, small_read_reqs, small_write_reqs, small_sync_read_reqs, large_read_reqs, large_write_reqs, small_read_servicetime, small_write_servicetime, small_sync_read_latency, large_read_servicetime, large_write_servicetime, retries_on_error ) select :dbid, :srcdbid con_dbid, :snap_id, :instance_number, filetype_id, sum(small_read_megabytes) small_read_megabytes, sum(small_write_megabytes) small_write_megabytes, sum(large_read_megabytes) large_read_megabytes, sum(large_write_megabytes) large_write_megabytes, sum(small_read_reqs) small_read_reqs, sum(small_write_reqs) small_write_reqs, sum(small_sync_read_reqs) small_sync_read_reqs, sum(large_read_reqs) large_read_reqs, sum(large_write_reqs) large _write_reqs, sum(small_read_servicetime) small_read_servicetime, sum(small_write_servicetime) small_write_servicetime, sum(small_sync_read_latency) small_sync_read_latency, sum(large_read_servicetime) large_read_servicetime, sum(large_write_servicetime) large_write_servicetime, sum(retries_on_error) retries_on_error from v$iostat_file group by filetype_id |
bt3qs0a178mgd | SELECT NUM_ROWS, BLOCKS, EMPTY_BLOCKS, AVG_SPACE, CHAIN_CNT, AVG_ROW_LEN FROM DBA_TAB_STATISTICS WHERE TABLE_NAME = 'USER_TABLES' |
bvwv6jvt9b0mj | WITH binds as (select :dbid as dbid , :inst_id_low as instIdLow , :inst_id_high as instIdHigh , :begin_snap as beginSnap , :end_snap as endSnap , :begin_time as beginTime , :end_time as endTime , :disk_begin_time as diskBeginTime , :disk_end_time as diskEndTime , :mem_begin_time as memBeginTime , :mem_end_time as memEndTime , :bucket_count as bucketCount , :bucket_interval as bucketInterval , :mem_enable as memEnable , :disk_enable as diskEnable , :disk_filter_ratio as filterRatio, :filter_action as filter_action, :filter_blocking_session as filter_blocking_session, :filter_capture_id as filter_capture_id, :filter_client_id as filter_client_id, :filter_consumer_group_id as filter_consumer_group_id, :filter_dbop as filter_dbop, :filter_ecid as filter_ecid, :filter_event as filter_event, :filter_instance_number as filter_instance_number, :filter_is_captured as filter_is_captured, :filter_is_filtered_out as filter_is_filtered_out, :filter_is_nc_background as filter_is_nc_background, :filter_is_replayed as filter_is_replayed, :filter_machine as filter_machine, :filter_machine_port as filter_machine_port, :filter_module as filter_module, :filter_object as filter_object, :filter_pdb as filter_pdb, :filter_physical_session as filter_physical_session, :filter_pl_sql as filter_pl_sql, :filter_pl_sql_top as filter_pl_sql_top, :filter_program as filter_program, :filter_px_process as filter_px_process, :filter_service_hash as filter_service_hash, :filter_session_type as filter_session_type, :filter_sql_fms as filter_sql_fms, :filter_sql_id_top as filter _sql_id_top, :filter_sql_opcode as filter_sql_opcode, :filter_sql_opcode_top as filter_sql_opcode_top, :filter_sql_rws as filter_sql_rws, :filter_sql_rws_line as filter_sql_rws_line, :filter_sqlid as filter_sqlid, :filter_sqlid_fullphv as filter_sqlid_fullphv, :filter_sqlid_phv as filter_sqlid_phv, :filter_user_id as filter_user_id, :filter_wait_class as filter_wait_class, :filter_xid as filter_xid from dual) , unified_ash as (SELECT a.sample_id , a.sample_time , a.session_id , a.session_serial# , a.session_type , a.session_state , a.flags , a.user_id , a.sql_id , a.sql_opcode , a.sql_opname , a.top_level_sql_id , a.top_level_sql_opcode , a.sql_child_number , a.sql_plan_hash_value , a.sql_full_plan_hash_value , a.sql_plan_line_id , a.sql_plan_operation , a.sql_plan_options , a.sql_exec_id , a.force_ matching_signature , a.plsql_entry_object_id , a.plsql_entry_subprogram_id , a.plsql_object_id , a.plsql_subprogram_id , a.service_hash , a.qc_session_id , a.qc_instance_id , a.qc_session_serial# , nvl(a.event, CASE WHEN bitand(a.time_model, power(2, 19)) > 0 THEN 'CPU: IM Populate' WHEN bitand(a.time_model, power(2, 20)) > 0 THEN 'CPU: IM Prepopulate' WHEN bitand(a.time_model, power(2, 21)) > 0 THEN 'CPU: IM Repopulate' WHEN bitand(a.time_model, power(2, 22)) > 0 THEN 'CPU: IM Trickle Repop' WHEN bitand(a.time_model, power(2, 18)) > 0 THEN 'CPU: IM Query' ELSE 'CPU + Wait for CPU' END) as event , nvl(a.event_id, 1) as event_id , nvl(a.wait_class, 'CPU') as wait_class , nvl(a.wait_class_id, 9999) as wait_class_id , a.seq# , a.p1 , a.p1text , a.p2 , a.p2text , a.p3 , a.p3text , a.wait_time , a.time_waited , rawtohex(a.xid) as xid , a.blocking_session , a.blocking_session_serial# , a.blocking_session_status , a.blocking_inst_id , a.current_obj# , a.current_file# , a.current_block# , a.top_level_call# , a.top_level_call_name , a.program , a.module , a.action , a.client_id , a.remote_instance# , a.ecid , a.consumer_group_id , a.machine , a.port , a.in_connection_mgmt , a.in_parse , a.in_hard_parse , a.in_sql_execution , a.in_plsql_execution , a.in_plsql_rpc , a.in_plsql_compilation , a.in_java_execution , a.in_bind , a.in_cursor_close , a.in_sequence_load , a.is_captured , a.is_replayed , a.dbreplay_file_id , a.dbop_name , a.con_dbid, decode(binds.diskEnable, 0, 1, binds.filterRatio) as sample_count , inst_id as instance_number FROM gv$active_session_history a, binds WHERE binds.memEnable = 1 AND ( binds.diskEnable = 0 OR ( binds.diskEnable = 1 AND a.is_awr_sample = 'Y' AND bitand(a.flags, 128) = 0 ) ) AND a.inst_id between binds.instIdLow and binds.instIdHigh AND a.sample_time between binds.beginTime and binds.endTime UNION ALL SELECT a.sample_id , a.sample_time , a.session_id , a. session_serial# , a.session_type , a.session_state , a.flags , a.user_id , a.sql_id , a.sql_opcode , a.sql_opname , a.top_level_sql_id , a.top_level_sql_opcode , a.sql_child_number , a.sql_plan_hash_value , a.sql_full_plan_hash_value , a.sql_plan_line_id , a.sql_plan_operation , a.sql_plan_options , a.sql_exec_id , a.force_matching_signature , a.plsql_entry_object_id , a.plsql_entry_subprogram_id , a.plsql_object_id , a.plsql_subprogram_id , a.service_hash , a.qc_session_id , a.qc_instance_id , a.qc_session_serial# , nvl(a.event, CASE WHEN bitand(a.time_model, power(2, 19)) > 0 THEN 'CPU: IM Populate' WHEN bitand(a.time_model, power(2, 20)) > 0 THEN 'CPU: IM Prepopulate' WHEN bitand(a .time_model, power(2, 21)) > 0 THEN 'CPU: IM Repopulate' WHEN bitand(a.time_model, power(2, 22)) > 0 THEN 'CPU: IM Trickle Repop' WHEN bitand(a.time_model, power(2, 18)) > 0 THEN 'CPU: IM Query' ELSE 'CPU + Wait for CPU' END) as event , nvl(a.event_id, 1) as event_id , nvl(a.wait_class, 'CPU') as wait_class , nvl(a.wait_class_id, 9999) as wait_class_id , a.seq# , a.p1 , a.p1text , a.p2 , a.p2text , a.p3 , a.p3text , a.wait_time , a.time_waited , rawtohex(a.xid) as xid , a.blocking_session , a.blocking_session_serial# , a.blocking_session_status , a.blocking_inst_id , a.current_obj# , a.current_file# , a.current_block# , a.top_level_call# , a.top_level_call_name , a.program , a.module , a.action , a.client_id , a.remote_instance# , a.ecid , a.consumer_group_id , a.machine , a.port , a.in_connection_mgmt , a.in_parse , a.in_hard_parse , a.in_sql_execution , a.in_plsql_execution , a.in_plsql_rpc , a.in_plsql_compilation , a.in_java_execution , a.in_bind , a.in_cursor_close , a.in_sequence_load , a.is_captured , a.is_replayed , a.dbreplay_file_id , a.dbop_name , a.con_dbid, binds.filterRatio as sample_count , instance_number as instance_number FROM dba_hist_active_sess_history a, binds WHERE binds.diskEnable = 1 AND a.dbid = binds.dbid AND a.instance_number between binds.instIdLow and binds.instIdHigh AND a.snap_id between binds.beginSnap and binds.endSnap AND a.sample_time between binds.beginTime and binds.endTime ), logical_ash as (select sample_id , sample_time , sample_count , instance_number as inst_id, sql_id as sqlid, wait_class as wait_class, xid as xid, instance_number || ':' || session_id || ', ' || session_serial# as physical_session, instance_number as instance_number from unified_ash) , bucketized_ash as (SELECT ash0.*, (case when binds.bucketCount > 1 then trunc( ( (24 * 60 * 60 * extract(day from sample_time - binds.beginTime)) + (60 * 60 * extract(hour from sample_time - binds.beginTime)) + (60 * extract(minute from sample_time - binds.beginTime)) + (1 * extract(second from sample_time - binds.beginTime)) ) / binds.bucketInterval ) + 1 else 1 end) as bucket_number FROM logical_ash ash0, binds), filter_xml as (SELECT xmlconcat(xmlelement("filters" ) , xmlelement("report_time", xmlattributes( to_char(o.begintime, 'HH24:MI:SS MM/DD/YYYY') as "begin_time", to_char(o.endtime, 'HH24:MI:SS MM/DD/YYYY') as "end_time"))) as xml_frag FROM (select binds.*, nvl(to_number(filter_pdb), 0) as con_dbid from binds) o) , filtered_ash as (SELECT ash.*, 1 filtered FROM bucketized_ash ash, binds WHERE 1=1 ), grouped_ash as (SELECT ash.*, 0 AS bucket_type FROM (SELECT wait_class, sqlid , grouping_id(wait_class, sqlid) as gid , max(inst_id) as inst_id , sum(sample_count) as sample_count , count(distinct sqlid) as uniq_sqlids , count(distinct xid) as uniq_xids , count(distinct physical_session) as uniq_sessions , count(distinct instance_number) as uniq_instances from filtered_ash group by grouping sets( (sqlid, wait_class)) ) ash ), component_1_xml as (select xmlelement( "item" , xmlattributes( 'sqlid, wait_class' as "item") , xmlelement( "top_mems" , xmlagg( xmlelement( "mem" , xmlattributes( dim1_value as "dim1_value" , dim1_nummem as "dim1_nummem" , dim1_rank as "dim1_rank" , dim2_value as "dim2_value" , dim12_nummem as "dim2_numm em" , dim12_rank as "dim2_rank" , dim12_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances" ) , NVL2(sql_text1, xmlelement("info" , xmlattributes('dim1_name' as "type") , sql_text1), NULL) , NVL2(NULL, xmlelement("info" , xmlattributes('dim2_name' as "type") , NULL), NULL) ) order by dim1_rank, dim12_rank ) ) ) as dim_frag from (select dim_data.* , NVL((SELECT substr(v.sql_text, 1, 100) as sql_text FROM gv$sql v WHERE v.sql_id = dim_data.dim1_value AND v.inst_id = dim_data.inst_id AND rownum < 2 ), ( SELECT dbms_lob.substr(v.sql_text, 100, 1) as sql_text FROM dba_hist_sqltext v, binds b WHERE v.dbid = b.dbid AND v.sql_id = dim_data.dim1_value AND rownum < 2)) as sql_text1 from (select max(case when dim1_rank <= 10 then dim1_val else null end) as dim1_value , max(case when dim1_rank <= 10 then dim2_val else null end) as dim2_value , sum(dim12_count) as dim12_count , max(case when dim1_rank <= 10 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when dim1_rank <= 10 then uniq_xids else 0 end) as uniq_xids , max(case when dim1_r ank <= 10 then uniq_sessions else 0 end) as uniq_sessions , max(case when dim1_rank <= 10 then uniq_instances else 0 end) as uniq_instances , count(distinct dim1_val) as dim1_nummem , sum(dim12_nummem) as dim12_nummem , max(case when dim1_rank <= 10 then dim1_rank else (10 + 1) end) as dim1_rank , max(case when dim1_rank <= 10 then dim12_rank else (10 + 1) end) as dim12_rank , max(inst_id) as inst_id from (select dim1_val , max(case when dim12_rank <= 13 then dim2_val else null end) as dim2_val , dim1_count , sum(dim12_count) as dim12_count , max(case when dim12_rank <= 13 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when dim12_rank <= 13 then uniq_xids else 0 end) as uniq_xids , max(case when dim12_rank <= 13 then uniq_sessions else 0 end) as uniq_sessions , max(case when dim12_rank <= 13 then uniq_instances else 0 end) as uniq_instances , count(*) as dim12_nummem , dense_rank() over (order by dim1_count desc , dim1_val ) as dim1_rank , max(case when dim12_rank <= 13 then dim12_rank else (13 + 1) end) as dim12_rank , max(inst_id) as inst_id from (select sqlid as dim1_val , wait_class as dim2_val , sample_count as dim12_count , dense_rank() over (partition by sqlid order by sample_count desc , wait_class ) as dim12_rank , sum(sample_count) over (partition by sqlid ) as dim1_count , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 0 and sqlid is not null and wait_class is not null ) group by dim1_val , dim1_count , (case when dim12_rank <= 13 then dim2_val else null end) ) group by (case when dim1_rank <= 10 then dim1_val else null end) , (case when dim1_rank <= 10 then dim2_val else null end) ) dim_data ) t )select xmlconcat((select xml_frag from filter_xml), xmlelement("dim_list", xmlconcat((select dim_frag from component_1_xml))) ) from dual |
c3zymn7x3k6wy | select obj#, dataobj#, part#, hiboundlen, hiboundval, flags, ts#, file#, block#, pctfree$, initrans, maxtrans, analyzetime, samplesize, rowcnt, blevel, leafcnt, distkey, lblkkey, dblkkey, clufac, pctthres$, length(bhiboundval), bhiboundval from indpart$ where bo# = :1 order by part# |
c6awqs517jpj0 | select /*+ index(idl_char$ i_idl_char1) +*/ piece#, length, piece from idl_char$ where obj#=:1 and part=:2 and version=:3 order by piece# |
c6ba83wrttjwx | insert into WRH$_SERVICE_WAIT_CLASS (dbid, con_dbid, snap_id, instance_number, service_name_hash, wait_class_id, wait_class, total_waits, time_waited ) select :dbid, :srcdbid con_dbid, :snap_id, :instance_number, stat.service_name_hash, stat.wait_class_id, stat.wait_class, stat.total_waits, stat.time_waited FROM v$active_services asvc, v$service_wait_class stat WHERE (1 = 1) AND asvc.name_hash = stat.service_name_hash |
cd1q0zw912c1p | insert into WRH$_SERVICE_STAT (dbid, con_dbid, snap_id, instance_number, service_name_hash, stat_id, value) select /*+ opt_param('_optimizer_mjc_enabled', 'false') no_query_transformation */ :dbid, :srcdbid con_dbid, :snap_id, :instance_number, stat.service_name_hash, stat.stat_id, stat.value FROM v$active_services asvc, v$service_stats stat WHERE (1 = 1) and asvc.name_hash = stat.service_name_hash |
cq8s0cpgt7xn9 | SELECT xs.sid FROM sys.rxs$sessions xs WHERE BITAND(xs.flag, 32) <> 32 AND xs.inactivetimeout <> 0 AND 365*30*24*60*(extract(year FROM systimestamp) - extract(year FROM accesstime)) + 30*24*60*(extract(month FROM systimestamp) - extract(month FROM accesstime)) + 24*60*(extract(day FROM systimestamp) - extract(day FROM accesstime)) + 60*(extract(hour FROM systimestamp) - extract(hour FROM accesstime)) + (extract(minute FROM systimestamp) - extract(minute FROM accesstime)) > (3/2)*(xs.inactivetimeout) AND xs.sid NOT IN (SELECT axs.sid FROM sys.rxs$sessions rxs, sys.v$xs_sessions axs, sys.v$session db WHERE rxs.sid = axs.sid AND axs.db_sid = db.sid AND axs.con_id = db.con_id and axs.con_id = SYS_CONTEXT('USERENV', 'CON_ID') and (db.status = 'ACTIVE' OR (db.status = 'INACTIVE' AND db.last_call_et < rxs.inactivetimeout*60))) |
cvn54b7yz0s8u | select /*+ index(idl_ub1$ i_idl_ub11) +*/ piece#, length, piece from idl_ub1$ where obj#=:1 and part=:2 and version=:3 order by piece# |
d2tvgg49y2ap6 | with base_metrics as ( select -- sum across all instances source, lpad(to_char(inst_id), 5) || '/' || inst_name inst, bucket_id, id, name, sum(aas) aas, sum(aas_fg) aas_fg, sum(aas_cpu) aas_cpu from table(gv$(cursor (select -- pick only first data point per bucket/id combination source, userenv('INSTANCE') inst_id, i.instance_name inst_name, bucket_id, id, name, aas, aas_fg, aas_cpu from v$instance i, (select -- determine first data point in bucket source, bucket_id, id, name, row_number() over (partition by bucket_id, id order by aas desc nulls last, id) rn, aas, aas_fg, aas_cpu from ( select 'waitclass' source, wc.wait_class# id, e.wait_class name, trunc( ( (extract(day from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 86400 + extract(hour from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 3600 + extract(minute from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 60 + extract(second from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) ) / :p_bucket_interval)) + 1 bucket_id, wc.time_waited/intsize_csec aas, wc.time_waited_fg/intsize_csec aas_fg, null aas_cpu from v$waitclassmetric_history wc, v$system_wait_class e where wc.wait_class# = e.wait_class# and e.wait_class != 'Idle' and wc.end_time >= to_date(:b_start_time, :date_fmt) and wc.end_time < to_date(:b_end_time, :date_fmt) union all select 'waitclass' source, metric_id id, metric_name name, trunc( ( (extract(day from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 86400 + extract(hour from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 3600 + extract(minute from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 60 + extract(second from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) ) / :p_bucket_interval)) + 1 bucket_id, decode(metric_name, 'CPU Usage Per Sec', value/100, value) aas, decode(metric_name, 'CPU Usage Per Sec', value/100, value) aas_fg, null aas_cpu from v$sysmetric_history s where group_id = :b_minute_group_id and end_time >= to_date(: b_start_time, :date_fmt) and end_time < to_date(:b_end_time, :date_fmt) and metric_name in ('CPU Usage Per Sec', 'Average Active Sessions') union all select 'servicestat' source, service_name_hash id, service_name name, trunc( ( (extract(day from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 86400 + extract(hour from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 3600 + extract(minute from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) * 60 + extract(second from (cast(trunc(end_time, 'mi') as timestamp) - cast(trunc(to_date(:b_start_time, :date_fmt), 'mi') as timestamp))) ) / :p_bucket_interval)) + 1 bucket_id, dbtimepersec/100 aas, dbtimepersec/100 aas_fg, null aas_cpu from v$servicemetric_history s where group_id = :b_svcminute_group_id and end_time >= to_date(:b_start_time, :date_fmt) and end_time < to_date(:b_end_time, :date_fmt) )) where rn = 1))) gvtf where inst_id between :p_inst_id_low and :p_inst_id_high group by source, lpad(to_char(inst_id), 5) || '/' || inst_name , bucket_id, id, name ), grouping_sets as ( select dim, id, case when rn = 1 then name else null end name, bucket_id, aas, aas_fg, aas_cpu from (-- find first occurrence of stat select dim, id, name, bucket_id, aas, aas_fg, aas_cpu, row_number() over (partition by dim, id, name order by bucket_id, id) rn from ( -- group top n + others select dim, id, name, bucket_id, sum(aas) aas, sum(aas_fg) aas_fg, sum(aas_cpu) aas_cpu from (-- find the top n but only for instance/service/pdb select dim, case when dim = 'waitclass' or rnk <= :l_top_n then id else 0 end id, case when dim = 'waitclass' or rnk <= :l_top_n then name else 'Other' end name, bucket_id, aas, aas_fg, aas_cpu from ( -- rank to get top n select dim, id, name, bucket_id, aas, aas_fg, aas_cpu, dense_rank() over (partition by dim order by dim_aas desc, id) rnk from ( -- get sum per dim/id combination to compute top n select dim, id, name, bucket_id, aas, aas_fg, aas_cpu, sum(aas) over (partition by dim, id) dim_aas from ( select decode(gid_inst, 0, 'instance', source) dim, decode(gid_inst, 0, to_number(substr(inst, 1, 5)), id) id, decode(gid_inst, 0, substr(inst, 7), name) name, bucket_id, aas, aas_fg, aas_cpu from ( select source, id, name, case when :p_is_rac = 1 and name='Average Active Sessions' then inst else null end inst, bucket_id, sum(aas) aas, sum(aas_fg) aas_fg, sum(aas_cpu) aas_ cpu, grouping_id (source, id, name, bucket_id) gid_id, grouping_id ( source, bucket_id, case when :p_is_rac = 1 and name='Average Active Sessions' then inst else null end) gid_inst from base_metrics group by grouping sets ( (source, id, name, bucket_id), (source, bucket_id, case when :p_is_rac = 1 and name='Average Active Sessions' then inst else null end))) where nvl(aas, 0) + nvl(aas_fg, 0) > 0) where id is not null))) group by dim, id, name, bucket_id))) select xmlagg(nvl2(buckets, xmlelement("stattype", xmlattributes('activity' as "name", dim as "dim"), nvl2(stat_id, xmlelement("stat_info", stat_id), null), nvl2(buckets, xmlelement("buckets", xmlattributes( :p_bucket_interval as "bucket_interval", :p_bucket_count as "bucket_count", : b_min_time as "start_time", :b_max_time as "end_time", :b_duration as "duration"), buckets), null) ) , null)) from ( select dim, xmlagg(xmlelement("bucket", xmlattributes(bucket_id as "bucket_id"), stats) order by bucket_id) buckets , xmlagg(stat_id) stat_id from ( select dim, bucket_id, xmlagg(stat_id order by id) stat_id, xmlagg(xmlelement("stat", xmlattributes(id as "id", round(aas, 6) as "aas", round(aas_fg, 6) as "aas_fg", round(aas_cpu, 6) as "aas_cpu")) order by id) stats from ( select dim, bucket_id, id, aas, aas_fg, aas_cpu, nvl2(name, xmlelement("stat" , xmlattributes(id as "id", name as "name")), null) stat_id from grouping_sets) group by dim, bucket_id) group by dim) |
d9vzav10pcpfh | select count(*) from dba_scheduler_windows a, dba_scheduler_wingroup_members b where enabled = 'TRUE' and active = 'TRUE' and a.window_name = b.window_name and b.window_group_name = 'MAINTENANCE_WINDOW_GROUP' |
daa1t30srjkgy | insert into wrh$_waitstat (dbid, con_dbid, snap_id, instance_number, class, wait_count, time) select :dbid, :srcdbid con_dbid, :snap_id, :instance_number, class, "COUNT", time from v$waitstat |
fhf8upax5cxsz | BEGIN sys.dbms_auto_report_internal.i_save_report (:rep_ref, :snap_id, :pr_class, :rep_id, :suc); END; |
fk09qjuf9c3f1 | select cdb from v$database |
fq3f1vdv581ds | SELECT COUNT(*) FROM DBA_SCHEDULER_WINDOWS A, DBA_SCHEDULER_WINGROUP_MEMBERS B WHERE ENABLED = 'TRUE' AND ACTIVE = 'TRUE' AND A.WINDOW_NAME = B.WINDOW_NAME AND B.WINDOW_GROUP_NAME = 'MAINTENANCE_WINDOW_GROUP' |
g67y24u07t83k | insert into wrh$_seg_stat (snap_id, dbid, instance_number, ts#, obj#, dataobj#, logical_reads_total, logical_reads_delta, buffer_busy_waits_total, buffer_busy_waits_delta, db_block_changes_total, db_block_changes_delta, physical_reads_total, physical_reads_delta, physical_writes_total, physical_writes_delta, physical_reads_direct_total, physical_reads_direct_delta, physical_writes_direct_total, physical_writes_direct_delta, itl_waits_total, itl_waits_delta, row_lock_waits_total, row_lock_waits_delta, gc_buffer_busy_total, gc_buffer_busy_delta, gc_cr_blocks_received_total, gc_cr_blocks_received_delta, gc_cu_blocks_received_total, gc_cu_blocks_received_delta, space_used_total, space_used_delta, space_allocated_total, space_allocated_delta, table_scans_total, table_scans_delta, chain_row_excess_total, chain_row_excess_delta, physical_read_requests_total, physical_read_requests_delta, physical_write_ requests_total, physical_write_requests_delta, optimized_physical_reads_total, optimized_physical_reads_delta, con_dbid) select :snap_id, :dbid, :instance_number, tsn_kewrseg, objn_kewrseg, objd_kewrseg, log_rds_kewrseg, log_rds_dl_kewrseg, buf_busy_wts_kewrseg, buf_busy_wts_dl_kewrseg, db_blk_chgs_kewrseg, db_blk_chgs_dl_kewrseg, phy_rds_kewrseg, phy_rds_dl_kewrseg, phy_wrts_kewrseg, phy_wrts_dl_kewrseg, phy_rds_drt_kewrseg, phy_rds_drt_dl_kewrseg, phy_wrts_drt_kewrseg, phy_wrts_drt_dl_kewrseg, itl_wts_kewrseg, itl_wts_dl_kewrseg, row_lck_wts_kewrseg, row_lck_wts_dl_kewrseg, gc_buf_busy_kewrseg, gc_buf_busy_dl_kewrseg, gc_cr_blks_rcv_kewrseg, gc_cr_blks_rcv_dl_kewrseg, gc_cu_blks_rcv_kewrseg, gc_cu_blks_rcv_dl_kewrseg, space_used_kewrseg, space_used_dl_kewrseg, space_alloc_kewrseg, space_alloc_dl_kewrseg, tbl_scns_kewrseg, tbl_scns_dl_kewrseg, chn_exc_kewrseg / 100, chn_exc_dl_kewrseg / 100, phy_rd_reqs_kewrseg, phy_rd_reqs_dl_kewrseg, phy_wrt_reqs_kewrseg, phy_wrt_reqs_dl_kewrseg, opt_phy_rds_kewrseg, opt_phy_rds_dl_kewrseg, con_dbid_kewrseg from X$KEWRTSEGSTAT |
g9pu3v9m3q9zm | UPDATE /*+ INDEX( wrh$_seg_stat_obj wrh$_seg_stat_obj_index ) */ wrh$_seg_stat_obj ob SET (snap_id, owner, object_name, subobject_name, tablespace_name, object_type, index_type, base_obj#, base_object_name, base_object_owner, partition_type) = (SELECT :lah_snap_id, so.oj.owner_name, so.oj.object_name, so.oj.subobject_name, so.oj.tablespace_name, so.oj.object_type, so.oj.index_type, so.oj.base_object_id, so.oj.base_object_name, so.oj.base_object_owner, so.oj.partition_type FROM (SELECT dbid, ts#, obj#, dataobj#, object_type, base_obj#, base_object_name, base_object_owner, dbms_swrf_internal.awr_get_object_info( con_dbid, ts#, obj#, dataobj#, AWR_OBJECT_INFO_TYPE(owner, object_name, subobject_name, tablespace_name, objec t_type, partition_type, index_type, base_object_name, base_object_owner, base_obj# )) oj FROM wrh$_seg_stat_obj ) so WHERE ob.dbid = so.dbid AND ob.ts# = so.ts# AND ob.obj# = so.obj# AND ob.dataobj# = so.dataobj#) WHERE dbid = :dbid AND snap_id > :lah_snap_id - 10 AND (object_name LIKE '%UNAVAIL%' OR (object_type LIKE '%UNDEF%' AND object_name NOT LIKE '%MISSING%' AND object_name NOT LIKE '%TRANSIENT%') OR owner LIKE '%UNAVAIL%' OR tablespace_name LIKE '%UNAVAIL%') |
ga9j9xk5cy9s0 | select /*+ index(idl_sb4$ i_idl_sb41) +*/ piece#, length, piece from idl_sb4$ where obj#=:1 and part=:2 and version=:3 order by piece# |
grjtn5w5y8jfj | SELECT XMLELEMENT( "spot_addm", XMLPARSE(DOCUMENT DBMS_REPORT.GET_REPORT('/orarep/rtaddm/main?spotonly=y'))) FROM DUAL |
grwydz59pu6mc | select text from view$ where rowid=:1 |
gwg69nz9j8vvb | insert into wrh$_latch (dbid, con_dbid, snap_id, instance_number, latch_hash, level#, gets, misses, sleeps, immediate_gets, immediate_misses, spin_gets, sleep1, sleep2, sleep3, sleep4, wait_time) select :dbid, :srcdbid con_dbid, :snap_id, :instance_number, hash, level#, gets, misses, sleeps, immediate_gets, immediate_misses, spin_gets, sleep1, sleep2, sleep3, sleep4, wait_time from v$latch |
Back to SQL Statistics
Back to Top
Instance Activity Statistics
- Key Instance Activity Stats
- Instance Activity Stats
- Instance Activity Stats - Absolute Values
- Instance Activity Stats - Thread Activity
Back to Top
Key Instance Activity Stats
- Ordered by statistic name
Statistic | Total | per Second | per Trans |
db block changes | 10,783 | 5.79 | 138.24 |
execute count | 10,692 | 5.75 | 137.08 |
logons cumulative | 160 | 0.09 | 2.05 |
opened cursors cumulative | 10,337 | 5.56 | 132.53 |
parse count (total) | 5,457 | 2.93 | 69.96 |
parse time elapsed | 204 | 0.11 | 2.62 |
physical reads | 1,548 | 0.83 | 19.85 |
physical writes | 791 | 0.43 | 10.14 |
redo size | 3,125,784 | 1,679.81 | 40,074.15 |
session cursor cache hits | 8,347 | 4.49 | 107.01 |
session logical reads | 75,400 | 40.52 | 966.67 |
user calls | 791 | 0.43 | 10.14 |
user commits | 78 | 0.04 | 1.00 |
workarea executions - optimal | 1,772 | 0.95 | 22.72 |
Back to InstanceActivity Statistics
Back to Top
Instance Activity Stats
- Ordered by statistic name
Statistic | Total | per Second | per Trans |
Batched IO (bound) vector count | 4 | 0.00 | 0.05 |
Batched IO (full) vector count | 0 | 0.00 | 0.00 |
Batched IO block miss count | 0 | 0.00 | 0.00 |
Batched IO buffer defrag count | 0 | 0.00 | 0.00 |
Batched IO double miss count | 0 | 0.00 | 0.00 |
Batched IO same unit count | 0 | 0.00 | 0.00 |
Batched IO single block count | 4 | 0.00 | 0.05 |
Batched IO vector block count | 0 | 0.00 | 0.00 |
Batched IO vector read count | 0 | 0.00 | 0.00 |
Block Cleanout Optim referenced | 13 | 0.01 | 0.17 |
CCursor + sql area evicted | 608 | 0.33 | 7.79 |
CPU used by this session | 546 | 0.29 | 7.00 |
CPU used when call started | 209 | 0.11 | 2.68 |
CR blocks created | 62 | 0.03 | 0.79 |
Cached Commit SCN referenced | 0 | 0.00 | 0.00 |
DBWR checkpoint buffers written | 742 | 0.40 | 9.51 |
DBWR transaction table writes | 40 | 0.02 | 0.51 |
DBWR undo block writes | 220 | 0.12 | 2.82 |
Effective IO time | 0 | 0.00 | 0.00 |
HSC Heap Segment Block Changes | 1,711 | 0.92 | 21.94 |
Heap Segment Array Inserts | 195 | 0.10 | 2.50 |
KTFB alloc req | 7 | 0.00 | 0.09 |
KTFB alloc space (block) | 1,441,792 | 774.83 | 18,484.51 |
KTFB alloc time (ms) | 384 | 0.21 | 4.92 |
LOB table id lookup cache misses | 0 | 0.00 | 0.00 |
Requests to/from client | 234 | 0.13 | 3.00 |
SQL*Net roundtrips to/from client | 233 | 0.13 | 2.99 |
active txn count during cleanout | 56 | 0.03 | 0.72 |
background timeouts | 10,484 | 5.63 | 134.41 |
buffer is not pinned count | 43,444 | 23.35 | 556.97 |
buffer is pinned count | 65,232 | 35.06 | 836.31 |
bytes received via SQL*Net from client | 66,665 | 35.83 | 854.68 |
bytes sent via SQL*Net to client | 117,361 | 63.07 | 1,504.63 |
calls to get snapshot scn: kcmgss | 16,051 | 8.63 | 205.78 |
calls to kcmgas | 2,094 | 1.13 | 26.85 |
calls to kcmgcs | 7,000 | 3.76 | 89.74 |
cell physical IO interconnect bytes | 111,827,456 | 60,096.60 | 1,433,685.33 |
change write time | 9 | 0.00 | 0.12 |
cleanout - number of ktugct calls | 56 | 0.03 | 0.72 |
cleanouts and rollbacks - consistent read gets | 0 | 0.00 | 0.00 |
cleanouts only - consistent read gets | 0 | 0.00 | 0.00 |
cluster key scan block gets | 3,051 | 1.64 | 39.12 |
cluster key scans | 2,021 | 1.09 | 25.91 |
commit cleanout failures: callback failure | 10 | 0.01 | 0.13 |
commit cleanouts | 1,203 | 0.65 | 15.42 |
commit cleanouts successfully completed | 1,193 | 0.64 | 15.29 |
commit txn count during cleanout | 31 | 0.02 | 0.40 |
consistent changes | 1,105 | 0.59 | 14.17 |
consistent gets | 65,176 | 35.03 | 835.59 |
consistent gets examination | 23,753 | 12.76 | 304.53 |
consistent gets examination (fastpath) | 23,417 | 12.58 | 300.22 |
consistent gets from cache | 65,176 | 35.03 | 835.59 |
consistent gets pin | 41,423 | 22.26 | 531.06 |
consistent gets pin (fastpath) | 40,280 | 21.65 | 516.41 |
cursor authentications | 63 | 0.03 | 0.81 |
cursor reload failures | 3 | 0.00 | 0.04 |
data blocks consistent reads - undo records applied | 770 | 0.41 | 9.87 |
db block changes | 10,783 | 5.79 | 138.24 |
db block gets | 10,224 | 5.49 | 131.08 |
db block gets direct | 40 | 0.02 | 0.51 |
db block gets from cache | 10,184 | 5.47 | 130.56 |
db block gets from cache (fastpath) | 2,904 | 1.56 | 37.23 |
deferred (CURRENT) block cleanout applications | 643 | 0.35 | 8.24 |
enqueue conversions | 515 | 0.28 | 6.60 |
enqueue releases | 27,413 | 14.73 | 351.45 |
enqueue requests | 27,462 | 14.76 | 352.08 |
enqueue timeouts | 50 | 0.03 | 0.64 |
enqueue waits | 0 | 0.00 | 0.00 |
execute count | 10,692 | 5.75 | 137.08 |
fastpath consistent get quota limit | 0 | 0.00 | 0.00 |
file io service time | 145,852 | 78.38 | 1,869.90 |
free buffer requested | 1,957 | 1.05 | 25.09 |
heap block compress | 32 | 0.02 | 0.41 |
immediate (CR) block cleanout applications | 0 | 0.00 | 0.00 |
immediate (CURRENT) block cleanout applications | 159 | 0.09 | 2.04 |
index crx upgrade (positioned) | 0 | 0.00 | 0.00 |
index fast full scans (full) | 0 | 0.00 | 0.00 |
index fetch by key | 8,243 | 4.43 | 105.68 |
index scans kdiixs1 | 9,104 | 4.89 | 116.72 |
leaf node 90-10 splits | 0 | 0.00 | 0.00 |
leaf node splits | 32 | 0.02 | 0.41 |
lob reads | 11 | 0.01 | 0.14 |
lob writes | 48 | 0.03 | 0.62 |
lob writes unaligned | 48 | 0.03 | 0.62 |
logical read bytes from cache | 617,349,120 | 331,766.33 | 7,914,732.31 |
logons cumulative | 160 | 0.09 | 2.05 |
max cf enq hold time | 0 | 0.00 | 0.00 |
messages received | 739 | 0.40 | 9.47 |
messages sent | 739 | 0.40 | 9.47 |
no work - consistent read gets | 35,069 | 18.85 | 449.60 |
non-idle wait count | 9,391 | 5.05 | 120.40 |
opened cursors cumulative | 10,337 | 5.56 | 132.53 |
parse count (failures) | 10 | 0.01 | 0.13 |
parse count (hard) | 471 | 0.25 | 6.04 |
parse count (total) | 5,457 | 2.93 | 69.96 |
parse time cpu | 96 | 0.05 | 1.23 |
parse time elapsed | 204 | 0.11 | 2.62 |
physical read IO requests | 1,519 | 0.82 | 19.47 |
physical read bytes | 12,681,216 | 6,814.95 | 162,579.69 |
physical read total IO requests | 5,741 | 3.09 | 73.60 |
physical read total bytes | 81,805,312 | 43,962.56 | 1,048,786.05 |
physical read total multi block requests | 0 | 0.00 | 0.00 |
physical reads | 1,548 | 0.83 | 19.85 |
physical reads cache | 1,548 | 0.83 | 19.85 |
physical reads cache prefetch | 29 | 0.02 | 0.37 |
physical reads direct | 0 | 0.00 | 0.00 |
physical reads direct (lob) | 0 | 0.00 | 0.00 |
physical reads direct temporary tablespace | 0 | 0.00 | 0.00 |
physical write IO requests | 444 | 0.24 | 5.69 |
physical write bytes | 6,479,872 | 3,482.31 | 83,075.28 |
physical write total IO requests | 1,924 | 1.03 | 24.67 |
physical write total bytes | 30,022,144 | 16,134.04 | 384,899.28 |
physical write total multi block requests | 13 | 0.01 | 0.17 |
physical writes | 791 | 0.43 | 10.14 |
physical writes direct | 44 | 0.02 | 0.56 |
physical writes direct (lob) | 4 | 0.00 | 0.05 |
physical writes direct temporary tablespace | 40 | 0.02 | 0.51 |
physical writes from cache | 747 | 0.40 | 9.58 |
physical writes non checkpoint | 542 | 0.29 | 6.95 |
pinned cursors current | 2 | 0.00 | 0.03 |
recursive calls | 51,721 | 27.80 | 663.09 |
recursive cpu usage | 394 | 0.21 | 5.05 |
redo blocks checksummed by FG (exclusive) | 2,656 | 1.43 | 34.05 |
redo blocks written | 6,429 | 3.45 | 82.42 |
redo entries | 5,913 | 3.18 | 75.81 |
redo ordering marks | 183 | 0.10 | 2.35 |
redo size | 3,125,784 | 1,679.81 | 40,074.15 |
redo synch time | 98 | 0.05 | 1.26 |
redo synch time (usec) | 995,963 | 535.24 | 12,768.76 |
redo synch time overhead (usec) | 1,096,033,586 | 589,013.61 | 14,051,712.64 |
redo synch time overhead count ( 2ms) | 26 | 0.01 | 0.33 |
redo synch time overhead count ( 8ms) | 0 | 0.00 | 0.00 |
redo synch time overhead count (inf) | 1 | 0.00 | 0.01 |
redo synch writes | 27 | 0.01 | 0.35 |
redo wastage | 63,808 | 34.29 | 818.05 |
redo write finish time | 1,625,496 | 873.55 | 20,839.69 |
redo write gather time | 26,457 | 14.22 | 339.19 |
redo write info find | 27 | 0.01 | 0.35 |
redo write schedule time | 27,208 | 14.62 | 348.82 |
redo write size count ( 4KB) | 144 | 0.08 | 1.85 |
redo write size count ( 8KB) | 55 | 0.03 | 0.71 |
redo write size count ( 16KB) | 29 | 0.02 | 0.37 |
redo write size count ( 32KB) | 4 | 0.00 | 0.05 |
redo write size count ( 128KB) | 7 | 0.00 | 0.09 |
redo write size count ( 256KB) | 1 | 0.00 | 0.01 |
redo write size count ( 512KB) | 2 | 0.00 | 0.03 |
redo write size count (inf) | 1 | 0.00 | 0.01 |
redo write time | 163 | 0.09 | 2.09 |
redo write time (usec) | 1,625,742 | 873.68 | 20,842.85 |
redo write total time | 1,627,841 | 874.81 | 20,869.76 |
redo writes | 243 | 0.13 | 3.12 |
rollback changes - undo records applied | 0 | 0.00 | 0.00 |
rollbacks only - consistent read gets | 48 | 0.03 | 0.62 |
rows fetched via callback | 3,926 | 2.11 | 50.33 |
securefile allocation bytes | 32,768 | 17.61 | 420.10 |
securefile allocation chunks | 2 | 0.00 | 0.03 |
securefile bytes non-transformed | 23,873 | 12.83 | 306.06 |
securefile direct read bytes | 0 | 0.00 | 0.00 |
securefile direct read ops | 0 | 0.00 | 0.00 |
securefile direct write bytes | 32,768 | 17.61 | 420.10 |
securefile direct write ops | 2 | 0.00 | 0.03 |
securefile number of non-transformed flushes | 5 | 0.00 | 0.06 |
segment cfs allocations | 34 | 0.02 | 0.44 |
segment chunks allocation from disepnser | 2 | 0.00 | 0.03 |
segment dispenser allocations | 2 | 0.00 | 0.03 |
segment dispenser load tasks | 2 | 0.00 | 0.03 |
segment prealloc ops | 60 | 0.03 | 0.77 |
segment prealloc tasks | 53 | 0.03 | 0.68 |
segment prealloc time (ms) | 132 | 0.07 | 1.69 |
segment prealloc ufs2cfs bytes | 16,384 | 8.80 | 210.05 |
segment total chunk allocation | 34 | 0.02 | 0.44 |
session cursor cache hits | 8,347 | 4.49 | 107.01 |
session logical reads | 75,400 | 40.52 | 966.67 |
shared hash latch upgrades - no wait | 826 | 0.44 | 10.59 |
shared io pool buffer get success | 2 | 0.00 | 0.03 |
sorts (memory) | 2,440 | 1.31 | 31.28 |
sorts (rows) | 28,811 | 15.48 | 369.37 |
sql area evicted | 718 | 0.39 | 9.21 |
sql area purged | 36 | 0.02 | 0.46 |
switch current to new buffer | 21 | 0.01 | 0.27 |
table fetch by rowid | 15,944 | 8.57 | 204.41 |
table fetch continued row | 320 | 0.17 | 4.10 |
table scan blocks gotten | 5,549 | 2.98 | 71.14 |
table scan disk non-IMC rows gotten | 306,376 | 164.65 | 3,927.90 |
table scan rows gotten | 306,376 | 164.65 | 3,927.90 |
table scans (long tables) | 0 | 0.00 | 0.00 |
table scans (short tables) | 1,294 | 0.70 | 16.59 |
total cf enq hold time | 0 | 0.00 | 0.00 |
total number of cf enq holders | 0 | 0.00 | 0.00 |
total number of times SMON posted | 17 | 0.01 | 0.22 |
undo change vector size | 1,098,164 | 590.16 | 14,079.03 |
user calls | 791 | 0.43 | 10.14 |
user commits | 78 | 0.04 | 1.00 |
user logons cumulative | 35 | 0.02 | 0.45 |
user logouts cumulative | 35 | 0.02 | 0.45 |
workarea executions - optimal | 1,772 | 0.95 | 22.72 |
write clones created in background | 4 | 0.00 | 0.05 |
Back to InstanceActivity Statistics
Back to Top
Instance Activity Stats - AbsoluteValues
- Statistics with absolute values (should not be diffed)
Statistic | Begin Value | End Value |
logons current | 33 | 32 |
opened cursors current | 34 | 34 |
session cursor cache count | 2,881 | 4,635 |
session pga memory | 126,886,904 | 124,710,480 |
session pga memory max | 140,569,560 | 137,885,904 |
session uga memory | 43,567,288 | 70,910,208 |
session uga memory max | 179,218,440 | 370,667,920 |
Back to InstanceActivity Statistics
Back to Top
Instance Activity Stats - ThreadActivity
- Statistics identified by '(derived)' come from sources other than SYSSTAT
Statistic | Total | per Hour |
log switches (derived) | 0 | 0.00 |
Back to InstanceActivity Statistics
Back to Top
IO Stats
- IOStat by Function summary
- IOStat by Filetype summary
- IOStat by Function/Filetype summary
- Tablespace IO Stats
- File IO Stats
Back to Top
IOStat by Function summary
- 'Data' columns suffixed with M,G,T,P are in multiples of 1024 other columns suffixed with K,M,G,T,P are in multiples of 1000
- ordered by (Data Read + Write) desc
Function Name | Reads: Data | Reqs per sec | Data per sec | Writes: Data | Reqs per sec | Data per sec | Waits: Count | Avg Tm(ms) |
Others | 67M | 2.28 | .036M | 20M | 0.69 | .011M | 4862 | 1.41 |
Buffer Cache Reads | 11M | 0.70 | .006M | 0M | 0.00 | 0M | 1309 | 7.18 |
DBWR | 0M | 0.00 | 0M | 6M | 0.22 | .003M | 0 |
|
LGWR | 0M | 0.00 | 0M | 3M | 0.13 | .002M | 243 | 7.83 |
Direct Writes | 0M | 0.00 | 0M | 0M | 0.00 | 0M | 0 |
|
TOTAL: | 78M | 2.98 | .042M | 29M | 1.04 | .016M | 6414 | 2.83 |
Back to IO Stats
Back to Top
IOStat by Filetype summary
- 'Data' columns suffixed with M,G,T,P are in multiples of 1024 other columns suffixed with K,M,G,T,P are in multiples of 1000
- Small Read and Large Read are average service times, in milliseconds
- Ordered by (Data Read + Write) desc
Filetype Name | Reads: Data | Reqs per sec | Data per sec | Writes: Data | Reqs per sec | Data per sec | Small Read | Large Read |
Control File | 66M | 2.28 | .035M | 19M | 0.67 | .01M | 0.09 |
|
Data File | 10M | 0.69 | .005M | 6M | 0.22 | .003M | 7.51 |
|
Log File | 0M | 0.00 | 0M | 3M | 0.13 | .002M |
|
|
Temp File | 0M | 0.01 | 0M | 0M | 0.02 | 0M | 0.00 |
|
TOTAL: | 76M | 2.98 | .041M | 28M | 1.04 | .015M | 1.81 |
|
Back to IO Stats
Back to Top
IOStat by Function/Filetype summary
- 'Data' columns suffixed with M,G,T,P are in multiples of 1024 other columns suffixed with K,M,G,T,P are in multiples of 1000
- Ordered by (Data Read + Write) desc for each function
Function/File Name | Reads: Data | Reqs per sec | Data per sec | Writes: Data | Reqs per sec | Data per sec | Waits: Count | Avg Tm(ms) |
Others | 66M | 2.28 | .035M | 20M | 0.69 | .011M | 4242 | 0.32 |
Others (Control File) | 66M | 2.28 | .035M | 20M | 0.67 | .011M | 4236 | 0.17 |
Others (Data File) | 0M | 0.00 | 0M | 0M | 0.02 | 0M | 6 | 106.43 |
Buffer Cache Reads | 11M | 0.69 | .006M | 0M | 0.00 | 0M | 1287 | 7.51 |
Buffer Cache Reads (Data File) | 11M | 0.69 | .006M | 0M | 0.00 | 0M | 1287 | 7.51 |
DBWR | 0M | 0.00 | 0M | 6M | 0.22 | .003M | 0 |
|
DBWR (Data File) | 0M | 0.00 | 0M | 6M | 0.22 | .003M | 0 |
|
LGWR | 0M | 0.00 | 0M | 3M | 0.13 | .002M | 0 |
|
LGWR (Log File) | 0M | 0.00 | 0M | 3M | 0.13 | .002M | 0 |
|
Direct Writes | 0M | 0.00 | 0M | 0M | 0.00 | 0M | 0 |
|
Direct Writes (Data File) | 0M | 0.00 | 0M | 0M | 0.00 | 0M | 0 |
|
TOTAL: | 77M | 2.97 | .041M | 29M | 1.04 | .016M | 5529 | 2.00 |
Back to IO Stats
Back to Top
Tablespace IO Stats
- ordered by IOs (Reads + Writes) desc
Tablespace | Reads | Av Rds/s | Av Rd(ms) | Av Blks/Rd | 1-bk Rds/s | Av 1-bk Rd(ms) | % Opt Reads | Writes | Writes avg/s | Buffer Waits | Av Buf Wt(ms) |
SYSAUX | 924 | 0 | 5.06 | 1.00 | 0 | 5.06 | 0.00 | 248 | 0 | 0 | 0.00 |
SYSTEM | 442 | 0 | 5.07 | 1.02 | 0 | 5.06 | 0.00 | 63 | 0 | 0 | 0.00 |
UNDOTBS1 | 0 | 0 | 0.00 | 0.00 | 0 | 0.00 | 0.00 | 97 | 0 | 2 | 0.00 |
TEMP | 25 | 0 | 0.40 | 1.60 | 0 | 0.00 |
| 36 | 0 | 0 | 0.00 |
Back to IO Stats
Back to Top
File IO Stats
- ordered by Tablespace, File
Tablespace | Filename | Reads | Av Rds/s | Av Rd(ms) | Av Blks/Rd | 1-bk Rds/s | Av 1-bk Rd(ms) | % Opt Reads | Writes | Writes avg/s | Buffer Waits | Av Buf Wt(ms) |
SYSAUX | +DATA/toaddb/sysaux01.dbf | 924 | 0 | 5.06 | 1.00 | 0 | 5.06 | 0.00 | 248 | 0 | 0 | 0.00 |
SYSTEM | +DATA/toaddb/system01.dbf | 442 | 0 | 5.07 | 1.02 | 0 | 5.06 | 0.00 | 63 | 0 | 0 | 0.00 |
TEMP | +DATA/toaddb/temp01.dbf | 25 | 0 | 0.40 | 1.60 | 0 | 0.00 |
| 36 | 0 | 0 |
|
UNDOTBS1 | +DATA/toaddb/undotbs01.dbf | 0 | 0 |
|
| 0 |
|
| 97 | 0 | 2 | 0.00 |
Back to IO Stats
Back to Top
Buffer Pool Statistics
- Buffer Pool Statistics
- Checkpoint Activity
Back to Top
Buffer Pool Statistics
- Standard block size Pools D: default, K: keep, R: recycle
- Default Pools for other block sizes: 2k, 4k, 8k, 16k, 32k
P | Number of Buffers | Pool Hit% | Buffer Gets | Physical Reads | Physical Writes | Free Buff Wait | Writ Comp Wait | Buffer Busy Waits |
D | 90,482 | 98 | 76,216 | 1,637 | 747 | 0 | 0 | 2 |
Back to Buffer PoolStatistics
Back to Top
Checkpoint Activity
- Total Physical Writes: 791
MTTR Writes | Log Size Writes | Log Ckpt Writes | Other Settings Writes | Autotune Ckpt Writes | Thread Ckpt Writes |
0 | 0 | 0 | 0 | 742 | 0 |
Back to Buffer PoolStatistics
Back to Top
Advisory Statistics
- Instance Recovery Stats
- MTTR Advisory
- Buffer Pool Advisory
- PGA Aggr Summary
- PGA Aggr Target Stats
- PGA Aggr Target Histogram
- PGA Memory Advisory
- Shared Pool Advisory
- SGA Target Advisory
- Streams Pool Advisory
- Java Pool Advisory
Back to Top
Instance Recovery Stats
- B: Begin Snapshot, E: End Snapshot
Targt MTTR (s) | Estd MTTR (s) | Recovery Estd IOs | Actual RedoBlks | Target RedoBlks | Log Sz RedoBlks | Log Ckpt Timeout RedoBlks | Log Ckpt Interval RedoBlks | Opt Log Sz(M) | Estd RAC Avail Time | |
B | 0 | 22 | 217 | 412 | 499284 | 499284 |
|
|
|
|
E | 0 | 22 | 216 | 666 | 2318 | 499284 | 2318 |
|
|
|
Back to AdvisoryStatistics
Back to Top
MTTR Advisory
Nodata exists for this section of the report.
Back to AdvisoryStatistics
Back to Top
Buffer Pool Advisory
- Only rows with estimated physical reads >0 are displayed
- ordered by Block Size, Buffers For Estimate
P | Size for Est (M) | Size Factor | Buffers (thousands) | Est Phys Read Factor | Estimated Phys Reads (thousands) | Est Phys Read Time | Est %DBtime for Rds |
D | 64 | 0.09 | 8 | 1.14 | 19 | 1 | 391.00 |
D | 128 | 0.17 | 16 | 1.00 | 17 | 1 | 329.00 |
D | 192 | 0.26 | 24 | 1.00 | 17 | 1 | 327.00 |
D | 256 | 0.35 | 31 | 1.00 | 17 | 1 | 327.00 |
D | 320 | 0.43 | 39 | 1.00 | 17 | 1 | 327.00 |
D | 384 | 0.52 | 47 | 1.00 | 17 | 1 | 327.00 |
D | 448 | 0.61 | 55 | 1.00 | 17 | 1 | 327.00 |
D | 512 | 0.70 | 63 | 1.00 | 17 | 1 | 327.00 |
D | 576 | 0.78 | 71 | 1.00 | 17 | 1 | 327.00 |
D | 640 | 0.87 | 79 | 1.00 | 17 | 1 | 327.00 |
D | 704 | 0.96 | 87 | 1.00 | 17 | 1 | 327.00 |
D | 736 | 1.00 | 90 | 1.00 | 17 | 1 | 327.00 |
D | 768 | 1.04 | 94 | 1.00 | 17 | 1 | 327.00 |
D | 832 | 1.13 | 102 | 1.00 | 17 | 1 | 327.00 |
D | 896 | 1.22 | 110 | 1.00 | 17 | 1 | 327.00 |
D | 960 | 1.30 | 118 | 1.00 | 17 | 1 | 327.00 |
D | 1,024 | 1.39 | 126 | 1.00 | 17 | 1 | 327.00 |
D | 1,088 | 1.48 | 134 | 1.00 | 17 | 1 | 327.00 |
D | 1,152 | 1.57 | 142 | 1.00 | 17 | 1 | 327.00 |
D | 1,216 | 1.65 | 149 | 1.00 | 17 | 1 | 327.00 |
D | 1,280 | 1.74 | 157 | 1.00 | 17 | 1 | 327.00 |
Back to AdvisoryStatistics
Back to Top
PGA Aggr Summary
- PGA cache hit % - percentage of W/A (WorkArea) data processed only in-memory
PGA Cache Hit % | W/A MB Processed | Extra W/A MB Read/Written |
100.00 | 136 | 0 |
Back to AdvisoryStatistics
Back to Top
PGA Aggr Target Stats
- B: Begin Snap E: End Snap (rows dentified with B or E contain data which is absolute i.e. not diffed over the interval)
- Auto PGA Target - actual workarea memory target
- W/A PGA Used - amount of memory used for all Workareas (manual + auto)
- %PGA W/A Mem - percentage of PGA memory allocated to workareas
- %Auto W/A Mem - percentage of workarea memory controlled by Auto Mem Mgmt
- %Man W/A Mem - percentage of workarea memory under manual control
PGA Aggr Target(M) | Auto PGA Target(M) | PGA Mem Alloc(M) | W/A PGA Used(M) | %PGA W/A Mem | %Auto W/A Mem | %Man W/A Mem | Global Mem Bound(K) | |
B | 360 | 225 | 140.89 | 0.00 | 0.00 | 0.00 | 0.00 | 73,728 |
E | 360 | 226 | 140.14 | 0.00 | 0.00 | 0.00 | 0.00 | 73,728 |
Back to AdvisoryStatistics
Back to Top
PGA Aggr Target Histogram
- Optimal Executions are purely in-memory operations
Low Optimal | High Optimal | Total Execs | Optimal Execs | 1-Pass Execs | M-Pass Execs |
2K | 4K | 1,627 | 1,627 | 0 | 0 |
64K | 128K | 6 | 6 | 0 | 0 |
128K | 256K | 3 | 3 | 0 | 0 |
512K | 1024K | 53 | 53 | 0 | 0 |
1M | 2M | 85 | 85 | 0 | 0 |
Back to AdvisoryStatistics
Back to Top
PGA Memory Advisory
- When using Auto Memory Mgmt, minimally choose a pga_aggregate_target value where Estd PGA Overalloc Count is 0
PGA Target Est (MB) | Size Factr | W/A MB Processed | Estd Extra W/A MB Read/ Written to Disk | Estd PGA Cache Hit % | Estd PGA Overalloc Count | Estd Time |
45 | 0.13 | 221.02 | 5.55 | 98.00 | 1 | 339 |
90 | 0.25 | 221.02 | 5.55 | 98.00 | 1 | 339 |
180 | 0.50 | 221.02 | 0.00 | 100.00 | 0 | 331 |
270 | 0.75 | 221.02 | 0.00 | 100.00 | 0 | 331 |
360 | 1.00 | 221.02 | 0.00 | 100.00 | 0 | 331 |
432 | 1.20 | 221.02 | 0.00 | 100.00 | 0 | 331 |
504 | 1.40 | 221.02 | 0.00 | 100.00 | 0 | 331 |
576 | 1.60 | 221.02 | 0.00 | 100.00 | 0 | 331 |
648 | 1.80 | 221.02 | 0.00 | 100.00 | 0 | 331 |
720 | 2.00 | 221.02 | 0.00 | 100.00 | 0 | 331 |
1,080 | 3.00 | 221.02 | 0.00 | 100.00 | 0 | 331 |
1,440 | 4.00 | 221.02 | 0.00 | 100.00 | 0 | 331 |
2,160 | 6.00 | 221.02 | 0.00 | 100.00 | 0 | 331 |
2,880 | 8.00 | 221.02 | 0.00 | 100.00 | 0 | 331 |
Back to AdvisoryStatistics
Back to Top
Shared Pool Advisory
- SP: Shared Pool Est LC: Estimated Library Cache Factr: Factor
- Note there is often a 1:Many correlation between a single logical object in the Library Cache, and the physical number of memory objects associated with it. Therefore comparing the number of Lib Cache objects (e.g. in v$librarycache), with the number of Lib Cache Memory Objects is invalid.
Shared Pool Size(M) | SP Size Factr | Est LC Size (M) | Est LC Mem Obj | Est LC Time Saved (s) | Est LC Time Saved Factr | Est LC Load Time (s) | Est LC Load Time Factr | Est LC Mem Obj Hits (K) |
208 | 0.87 | 8 | 778 | 2,150 | 0.89 | 381 | 3.43 | 19 |
224 | 0.93 | 24 | 1,409 | 2,330 | 0.96 | 201 | 1.81 | 22 |
240 | 1.00 | 39 | 2,244 | 2,420 | 1.00 | 111 | 1.00 | 23 |
256 | 1.07 | 54 | 2,896 | 2,430 | 1.00 | 101 | 0.91 | 23 |
272 | 1.13 | 70 | 3,653 | 2,462 | 1.02 | 69 | 0.62 | 23 |
288 | 1.20 | 77 | 4,090 | 2,462 | 1.02 | 69 | 0.62 | 23 |
304 | 1.27 | 77 | 4,090 | 2,462 | 1.02 | 69 | 0.62 | 23 |
320 | 1.33 | 77 | 4,090 | 2,462 | 1.02 | 69 | 0.62 | 23 |
336 | 1.40 | 77 | 4,090 | 2,462 | 1.02 | 69 | 0.62 | 23 |
352 | 1.47 | 77 | 4,090 | 2,462 | 1.02 | 69 | 0.62 | 23 |
368 | 1.53 | 77 | 4,090 | 2,462 | 1.02 | 69 | 0.62 | 23 |
384 | 1.60 | 77 | 4,090 | 2,462 | 1.02 | 69 | 0.62 | 23 |
400 | 1.67 | 77 | 4,090 | 2,462 | 1.02 | 69 | 0.62 | 23 |
432 | 1.80 | 77 | 4,090 | 2,462 | 1.02 | 69 | 0.62 | 23 |
464 | 1.93 | 77 | 4,090 | 2,462 | 1.02 | 69 | 0.62 | 23 |
496 | 2.07 | 77 | 4,090 | 2,462 | 1.02 | 69 | 0.62 | 23 |
Back to AdvisoryStatistics
Back to Top
SGA Target Advisory
SGA Target Size (M) | SGA Size Factor | Est DB Time (s) | Est Physical Reads |
272 | 0.25 | 31 | 16,662 |
544 | 0.50 | 579 | 16,725 |
816 | 0.75 | 577 | 16,662 |
1,088 | 1.00 | 577 | 16,662 |
1,360 | 1.25 | 577 | 16,662 |
1,632 | 1.50 | 577 | 16,662 |
1,904 | 1.75 | 577 | 16,662 |
2,176 | 2.00 | 577 | 16,662 |
Back to AdvisoryStatistics
Back to Top
Streams Pool Advisory
Nodata exists for this section of the report.
Back to Advisory Statistics
Back to Top
Java Pool Advisory
Nodata exists for this section of the report.
Back to Advisory Statistics
Back to Top
Wait Statistics
- Buffer Wait Statistics
- Enqueue Activity
Back to Top
Buffer Wait Statistics
- ordered by wait time desc, waits desc
Class | Waits | Total Wait Time (s) | Avg Time (ms) |
undo header | 2 | 0 | 0 |
Back to Wait Statistics
Back to Top
Enqueue Activity
- only enqueues with requests are shown
- Enqueue stats gathered prior to 10g should not be compared with 10g data
- ordered by Wait Time desc, Waits desc, Requests desc
Enqueue Type (Request Reason) | Requests | Succ Gets | Failed Gets | Waits | Wt Time (s) | Av Wt Time(ms) |
JS-Job Scheduler | 10,837 | 10,837 | 0 | 0 | 0 |
|
JS-Job Scheduler (queue lock) | 10,837 | 10,837 | 0 | 0 | 0 |
|
CF-Controlfile Transaction | 1,506 | 1,506 | 0 | 0 | 0 |
|
JS-Job Scheduler (q mem clnup lck) | 1,028 | 1,028 | 0 | 0 | 0 |
|
TM-DML | 953 | 953 | 0 | 0 | 0 |
|
TX-Transaction | 671 | 671 | 0 | 0 | 0 |
|
DD-ASM Local Disk Group | 621 | 621 | 0 | 0 | 0 |
|
CU-Cursor | 396 | 396 | 0 | 0 | 0 |
|
SE-Session Migration | 211 | 211 | 0 | 0 | 0 |
|
AE-Edition Lock (lock) | 181 | 181 | 0 | 0 | 0 |
|
PR-Process Startup | 103 | 103 | 0 | 0 | 0 |
|
SJ-KTSJ Slave Task Cancel (Slave Task Cancel) | 84 | 84 | 0 | 0 | 0 |
|
PV-KSV slave startup (syncstart) | 83 | 83 | 0 | 0 | 0 |
|
TT-Tablespace | 75 | 75 | 0 | 0 | 0 |
|
JD-Job Queue Date | 64 | 64 | 0 | 0 | 0 |
|
DW-In memory Dispenser | 60 | 10 | 50 | 0 | 0 |
|
IT-In-Mem Temp Table Meta Creation | 52 | 52 | 0 | 0 | 0 |
|
HW-Segment High Water Mark | 50 | 50 | 0 | 0 | 0 |
|
MR-Media Recovery | 43 | 43 | 0 | 0 | 0 |
|
TH-Threshold Chain (metric threshold evaluation) | 31 | 31 | 0 | 0 | 0 |
|
TO-Temp Object | 25 | 25 | 0 | 0 | 0 |
|
WF-AWR Flush | 21 | 21 | 0 | 0 | 0 |
|
WT-AWR CDB-Wide Table Lock | 20 | 20 | 0 | 0 | 0 |
|
UL-User-defined | 7 | 7 | 0 | 0 | 0 |
|
FB-Format Block | 6 | 6 | 0 | 0 | 0 |
|
TA-Instance Undo | 6 | 6 | 0 | 0 | 0 |
|
TD-KTF map table enqueue (KTF dump entries) | 4 | 4 | 0 | 0 | 0 |
|
RS-Reclaimable Space (read alert level) | 2 | 2 | 0 | 0 | 0 |
|
DR-Distributed Recovery | 1 | 1 | 0 | 0 | 0 |
|
JQ-Job Queue | 1 | 1 | 0 | 0 | 0 |
|
MW-MWIN Schedule | 1 | 1 | 0 | 0 | 0 |
|
SH-Active Session History Flushing | 1 | 1 | 0 | 0 | 0 |
|
SQ-Sequence Cache | 1 | 1 | 0 | 0 | 0 |
|
Back to Wait Statistics
Back to Top
Undo Statistics
- Undo Segment Summary
- Undo Segment Stats
Back to Top
Undo Segment Summary
- Min/Max TR (mins) - Min and Max Tuned Retention (minutes)
- STO - Snapshot Too Old count, OOS - Out of Space count
- Undo segment block stats:
- uS - unexpired Stolen, uR - unexpired Released, uU - unexpired reUsed
- eS - expired Stolen, eR - expired Released, eU - expired reUsed
Undo TS# | Num Undo Blocks (K) | Number of Transactions | Max Qry Len (s) | Max Tx Concurcy | Min/Max TR (mins) | STO/ OOS | uS/uR/uU/ eS/eR/eU |
2 | 0.16 | 669 | 952 | 3 | 29.5/29.9 | 0/0 | 0/0/0/0/0/0 |
Back to Undo Statistics
Back to Top
Undo Segment Stats
- Most recent 35 Undostat rows, ordered by Time desc
End Time | Num Undo Blocks | Number of Transactions | Max Qry Len (s) | Max Tx Concy | Tun Ret (mins) | STO/ OOS | uS/uR/uU/ eS/eR/eU |
09-Mar 17:16 | 3 | 21 | 929 | 2 | 29 | 0/0 | 0/0/0/0/0/0 |
09-Mar 17:06 | 21 | 223 | 952 | 3 | 30 | 0/0 | 0/0/0/0/0/0 |
09-Mar 16:56 | 137 | 425 | 928 | 3 | 29 | 0/0 | 0/0/0/0/0/0 |
Back to Undo Statistics
Back to Top
Latch Statistics
- Latch Activity
- Latch Sleep Breakdown
- Latch Miss Sources
- Mutex Sleep Summary
- Parent Latch Statistics
- Child Latch Statistics
Back to Top
Latch Activity
- "Get Requests", "Pct Get Miss" and "Avg Slps/Miss" are statistics for willing-to-wait latch get requests
- "NoWait Requests", "Pct NoWait Miss" are for no-wait latch get requests
- "Pct Misses" for both should be very close to 0.0
Latch Name | Get Requests | Pct Get Miss | Avg Slps /Miss | Wait Time (s) | NoWait Requests | Pct NoWait Miss |
AQ Background: interrupt command latch | 1 | 0.00 |
| 0 | 66 | 0.00 |
AQ Coord jobx_kwsbgsgn latch | 62 | 0.00 |
| 0 | 0 |
|
AQ Sharded master pool latch | 62 | 0.00 |
| 0 | 0 |
|
AQ Slave freSlvL_kwsbgsgn latch | 0 |
|
| 0 | 2 | 0.00 |
AQ deq hash table latch | 1 | 0.00 |
| 0 | 0 |
|
ASM Keyed state latch | 277 | 0.00 |
| 0 | 0 |
|
ASM allocation | 3 | 0.00 |
| 0 | 0 |
|
ASM db client latch | 1,236 | 0.00 |
| 0 | 0 |
|
ASM map operation freelist | 296 | 0.00 |
| 0 | 0 |
|
ASM map operation hash table | 15,575 | 0.00 |
| 0 | 0 |
|
ASM network background latch | 744 | 0.00 |
| 0 | 0 |
|
ASM network state latch | 30 | 0.00 |
| 0 | 0 |
|
ASM remote client latch | 30 | 0.00 |
| 0 | 0 |
|
AWR Alerted Metric Element list | 13,671 | 0.00 |
| 0 | 0 |
|
Change Notification Hash table latch | 656 | 0.00 |
| 0 | 0 |
|
Consistent RBA | 243 | 0.00 |
| 0 | 0 |
|
DML lock allocation | 1,918 | 0.00 |
| 0 | 0 |
|
Event Group Locks | 299 | 0.00 |
| 0 | 0 |
|
FOB s.o list latch | 788 | 0.00 |
| 0 | 0 |
|
File State Object Pool Parent Latch | 1 | 0.00 |
| 0 | 0 |
|
I/O Staticstics latch | 1 | 0.00 |
| 0 | 0 |
|
ILM Stats Stripe Latch | 1 | 0.00 |
| 0 | 0 |
|
ILM Stats main anchor latch | 310 | 0.00 |
| 0 | 0 |
|
ILM access tracking extent | 1 | 0.00 |
| 0 | 0 |
|
ILM activity tracking latch | 1 | 0.00 |
| 0 | 0 |
|
IM area sb latch | 1 | 0.00 |
| 0 | 0 |
|
IM area scb latch | 1 | 0.00 |
| 0 | 0 |
|
IM emb latch | 1 | 0.00 |
| 0 | 0 |
|
IM seg hdr latch | 1 | 0.00 |
| 0 | 0 |
|
IPC stats buffer allocation latch | 1 | 0.00 |
| 0 | 0 |
|
In memory undo latch | 1 | 0.00 |
| 0 | 0 |
|
JS Sh mem access | 7 | 0.00 |
| 0 | 0 |
|
JS mem alloc latch | 46 | 0.00 |
| 0 | 2 | 0.00 |
JS queue access latch | 47 | 0.00 |
| 0 | 0 |
|
JS queue state obj latch | 21,674 | 0.00 |
| 0 | 0 |
|
JS slv state obj latch | 41 | 0.00 |
| 0 | 0 |
|
KCNIBR - invalid block range tree | 1 | 0.00 |
| 0 | 0 |
|
KFC FX Hash Latch | 1 | 0.00 |
| 0 | 0 |
|
KFC Hash Latch | 1 | 0.00 |
| 0 | 0 |
|
KFCL LE Freelist | 1 | 0.00 |
| 0 | 0 |
|
KFK SGA Libload latch | 186 | 0.00 |
| 0 | 0 |
|
KFMD SGA | 3 | 0.00 |
| 0 | 0 |
|
KGNFS-NFS:SHM structure | 1 | 0.00 |
| 0 | 0 |
|
KGNFS-NFS:SVR LIST | 1 | 0.00 |
| 0 | 0 |
|
KJC message pool free list | 1 | 0.00 |
| 0 | 0 |
|
KJC message pool pending avail list | 1 | 0.00 |
| 0 | 0 |
|
KJCT flow control latch | 1 | 0.00 |
| 0 | 0 |
|
KMG MMAN ready and startup request latch | 620 | 0.00 |
| 0 | 0 |
|
KSFS OFS ctx level parent latch | 1 | 0.00 |
| 0 | 0 |
|
KSFS OFS req layer parent latch | 1 | 0.00 |
| 0 | 0 |
|
KSFS OFS sess layer parent latch | 1 | 0.00 |
| 0 | 0 |
|
KSFS id table parent latch | 1 | 0.00 |
| 0 | 0 |
|
KSFS ksfs_node latch | 1 | 0.00 |
| 0 | 0 |
|
KSFSD name cache parent latch | 1 | 0.00 |
| 0 | 0 |
|
KSXR hang analysis phase 1 latch | 1 | 0.00 |
| 0 | 0 |
|
KSXR hang analysis phase 2 latch | 1 | 0.00 |
| 0 | 0 |
|
KTF sga latch | 10 | 0.00 |
| 0 | 595 | 0.00 |
KTILM latch | 1 | 0.00 |
| 0 | 0 |
|
Locator state objects pool parent latch | 1 | 0.00 |
| 0 | 0 |
|
Lsod array latch | 357 | 0.00 |
| 0 | 0 |
|
MQL Tracking Latch | 0 |
|
| 0 | 37 | 0.00 |
Memory Management Latch | 1 | 0.00 |
| 0 | 620 | 0.00 |
Memory Queue | 1 | 0.00 |
| 0 | 0 |
|
Memory Queue Message Subscriber #1 | 1 | 0.00 |
| 0 | 0 |
|
Memory Queue Message Subscriber #2 | 1 | 0.00 |
| 0 | 0 |
|
Memory Queue Message Subscriber #3 | 1 | 0.00 |
| 0 | 0 |
|
Memory Queue Message Subscriber #4 | 1 | 0.00 |
| 0 | 0 |
|
Memory Queue Subscriber | 1 | 0.00 |
| 0 | 0 |
|
Message cache latch | 1 | 0.00 |
| 0 | 0 |
|
MinActiveScn Latch | 22 | 0.00 |
| 0 | 0 |
|
Mutex | 1 | 0.00 |
| 0 | 0 |
|
Mutex Stats | 1 | 0.00 |
| 0 | 0 |
|
OS process | 1,071 | 0.00 |
| 0 | 0 |
|
OS process allocation | 4,389 | 0.00 |
| 0 | 0 |
|
OS process: request allocation | 277 | 0.00 |
| 0 | 0 |
|
PL/SQL warning settings | 326 | 0.00 |
| 0 | 0 |
|
PX hash array latch | 1 | 0.00 |
| 0 | 0 |
|
Parent latch for dependency tracking | 1 | 0.00 |
| 0 | 0 |
|
QMT | 1 | 0.00 |
| 0 | 0 |
|
Real-time descriptor latch | 189 | 0.00 |
| 0 | 2 | 0.00 |
Report Request stats latch | 127 | 0.00 |
| 0 | 0 |
|
Report Request struct latch | 2 | 0.00 |
| 0 | 0 |
|
Request holder compeltion list latch | 207 | 0.00 |
| 0 | 0 |
|
Retry Ht elm latch | 1 | 0.00 |
| 0 | 0 |
|
Retry bkt latch | 1 | 0.00 |
| 0 | 0 |
|
SGA Logging Bkt Latch | 1 | 0.00 |
| 0 | 0 |
|
SGA Logging Log Latch | 2,505 | 0.00 |
| 0 | 0 |
|
SGA blob parent | 1 | 0.00 |
| 0 | 0 |
|
SGA bucket locks | 1 | 0.00 |
| 0 | 0 |
|
SGA heap locks | 1 | 0.00 |
| 0 | 0 |
|
SGA pool locks | 1 | 0.00 |
| 0 | 0 |
|
SQL memory manager latch | 1 | 0.00 |
| 0 | 618 | 0.00 |
SQL memory manager workarea list latch | 43,364 | 0.00 |
| 0 | 0 |
|
SR Stats Stripe Latch | 1 | 0.00 |
| 0 | 0 |
|
SR Stats main anchor latch | 661 | 0.00 |
| 0 | 0 |
|
Sched IM Job latch | 31 | 0.00 |
| 0 | 0 |
|
Sched InMem Job Cache | 281 | 0.00 |
| 0 | 0 |
|
Shared B-Tree | 67 | 0.00 |
| 0 | 0 |
|
Streams Generic | 1 | 0.00 |
| 0 | 0 |
|
Subscriber Ht elm latch | 1 | 0.00 |
| 0 | 0 |
|
Testing | 1 | 0.00 |
| 0 | 0 |
|
Token Manager | 1 | 0.00 |
| 0 | 0 |
|
Txn Ht elm latch | 1 | 0.00 |
| 0 | 0 |
|
Txn bkt latch | 1 | 0.00 |
| 0 | 0 |
|
WCR: sync | 1 | 0.00 |
| 0 | 0 |
|
Write State Object Pool Parent Latch | 1 | 0.00 |
| 0 | 0 |
|
X$KSFQP | 1 | 0.00 |
| 0 | 0 |
|
XDB NFS Security Latch | 1 | 0.00 |
| 0 | 0 |
|
XDB unused session pool | 1 | 0.00 |
| 0 | 0 |
|
XDB used session pool | 1 | 0.00 |
| 0 | 0 |
|
active checkpoint queue latch | 1,030 | 0.00 |
| 0 | 0 |
|
active service list | 10,290 | 0.00 |
| 0 | 894 | 0.00 |
begin backup scn array | 2 | 0.00 |
| 0 | 0 |
|
buffer pool | 1 | 0.00 |
| 0 | 0 |
|
business card | 1 | 0.00 |
| 0 | 0 |
|
cache buffer handles | 6 | 0.00 |
| 0 | 0 |
|
cache buffers chains | 150,684 | 0.00 |
| 0 | 2,099 | 0.00 |
cache buffers lru chain | 3,092 | 0.00 |
| 0 | 1,059 | 0.00 |
cache table scan latch | 8 | 0.00 |
| 0 | 8 | 0.00 |
call allocation | 1,975 | 0.00 |
| 0 | 0 |
|
cas latch | 1 | 0.00 |
| 0 | 0 |
|
change notification client cache latch | 1 | 0.00 |
| 0 | 0 |
|
channel handle pool latch | 278 | 0.00 |
| 0 | 0 |
|
channel operations parent latch | 628 | 0.00 |
| 0 | 0 |
|
checkpoint queue latch | 4,314 | 0.00 |
| 0 | 687 | 0.00 |
client/application info | 446 | 0.00 |
| 0 | 0 |
|
compile environment latch | 160 | 0.00 |
| 0 | 0 |
|
cp handoff latch | 1 | 0.00 |
| 0 | 0 |
|
cp pool latch | 1 | 0.00 |
| 0 | 0 |
|
cp server hash latch | 1 | 0.00 |
| 0 | 0 |
|
cp sga latch | 30 | 0.00 |
| 0 | 0 |
|
cp srv type state latch | 91 | 0.00 |
| 0 | 0 |
|
cp srv type wait latch | 1 | 0.00 |
| 0 | 0 |
|
cvmap freelist lock | 1 | 0.00 |
| 0 | 0 |
|
deferred cleanup latch | 30 | 0.00 |
| 0 | 0 |
|
dispatcher info | 24 | 0.00 |
| 0 | 0 |
|
dml lock allocation | 30 | 0.00 |
| 0 | 0 |
|
done queue latch | 1 | 0.00 |
| 0 | 0 |
|
dtp latch | 139 | 0.00 |
| 0 | 0 |
|
dummy allocation | 322 | 0.00 |
| 0 | 0 |
|
eighth spare latch - X parent | 1 | 0.00 |
| 0 | 0 |
|
eleventh spare latch - children | 1 | 0.00 |
| 0 | 0 |
|
enqueue freelist latch | 1 | 0.00 |
| 0 | 51,290 | 0.00 |
enqueue hash chains | 55,414 | 0.00 |
| 0 | 0 |
|
enqueues | 71 | 0.00 |
| 0 | 0 |
|
event stats latch | 161 | 0.00 |
| 0 | 0 |
|
fast space usage latch | 3 | 0.00 |
| 0 | 0 |
|
fifteenth spare latch - children | 1 | 0.00 |
| 0 | 0 |
|
file cache latch | 63 | 0.00 |
| 0 | 0 |
|
flash file access latch | 1 | 0.00 |
| 0 | 0 |
|
flashback copy | 1 | 0.00 |
| 0 | 0 |
|
fourteenth spare latch - children | 1 | 0.00 |
| 0 | 0 |
|
fourth Audit Vault latch | 1 | 0.00 |
| 0 | 0 |
|
gc element | 1 | 0.00 |
| 0 | 0 |
|
gcs commit scn state | 1 | 0.00 |
| 0 | 0 |
|
gcs opaque info freelist | 1 | 0.00 |
| 0 | 0 |
|
gcs partitioned table hash | 1 | 0.00 |
| 0 | 0 |
|
gcs pcm hashed value bucket hash | 1 | 0.00 |
| 0 | 0 |
|
gcs resource freelist | 1 | 0.00 |
| 0 | 0 |
|
gcs resource hash | 1 | 0.00 |
| 0 | 0 |
|
gcs resource scan list | 1 | 0.00 |
| 0 | 0 |
|
gcs resource validate list | 1 | 0.00 |
| 0 | 0 |
|
gcs shadows freelist | 1 | 0.00 |
| 0 | 0 |
|
ges cached resource lists | 1 | 0.00 |
| 0 | 0 |
|
ges domain table | 1 | 0.00 |
| 0 | 0 |
|
ges enqueue table freelist | 1 | 0.00 |
| 0 | 0 |
|
ges group table | 1 | 0.00 |
| 0 | 0 |
|
ges process hash list | 1 | 0.00 |
| 0 | 0 |
|
ges process parent latch | 1 | 0.00 |
| 0 | 0 |
|
ges resource hash list | 1 | 0.00 |
| 0 | 0 |
|
ges resource scan list | 1 | 0.00 |
| 0 | 0 |
|
ges resource table freelist | 1 | 0.00 |
| 0 | 0 |
|
ges timeout list | 1 | 0.00 |
| 0 | 0 |
|
ges value block free list | 1 | 0.00 |
| 0 | 0 |
|
global KZLD latch for auth type mem in SGA | 35 | 0.00 |
| 0 | 0 |
|
global tx hash mapping | 1 | 0.00 |
| 0 | 0 |
|
granule from data transfer cache | 1 | 0.00 |
| 0 | 0 |
|
granule operation | 1 | 0.00 |
| 0 | 0 |
|
hash table column usage latch | 665 | 0.00 |
| 0 | 18,054 | 0.00 |
hash table modification latch | 64 | 0.00 |
| 0 | 2 | 0.00 |
heartbeat check | 1 | 0.00 |
| 0 | 0 |
|
imc buf hdl lat | 1 | 0.00 |
| 0 | 0 |
|
imc hash lat | 1 | 0.00 |
| 0 | 0 |
|
imc sj lat | 1 | 0.00 |
| 0 | 0 |
|
imc srchsp lat | 1 | 0.00 |
| 0 | 0 |
|
imc-txn-wrk-lat | 1 | 0.00 |
| 0 | 0 |
|
in-memory area latch | 1 | 0.00 |
| 0 | 0 |
|
in-memory columnar segment hash table latch | 1 | 0.00 |
| 0 | 0 |
|
in-memory columnar ts extent map chunk latch | 1 | 0.00 |
| 0 | 0 |
|
in-memory global pool latch | 1 | 0.00 |
| 0 | 0 |
|
internal temp table object number allocation latch | 55 | 0.00 |
| 0 | 0 |
|
intra txn parallel recovery | 1 | 0.00 |
| 0 | 0 |
|
io pool granule list | 4 | 0.00 |
| 0 | 0 |
|
io pool granule metadata list | 9 | 0.00 |
| 0 | 0 |
|
job workq parent latch | 23 | 0.00 |
| 0 | 22 | 0.00 |
job_queue_processes free list latch | 86 | 0.00 |
| 0 | 2 | 0.00 |
job_queue_processes parameter latch | 6 | 0.00 |
| 0 | 0 |
|
k2q lock allocation | 1 | 0.00 |
| 0 | 0 |
|
kcb DW scan objtemp hash table latch | 1 | 0.00 |
| 0 | 0 |
|
kcn buffer chains | 1 | 0.00 |
| 0 | 0 |
|
kdlx hb parent latch | 1 | 0.00 |
| 0 | 0 |
|
kgb parent | 1 | 0.00 |
| 0 | 0 |
|
kgnfs mount latch | 1 | 0.00 |
| 0 | 0 |
|
kjci objects freelist latch | 1 | 0.00 |
| 0 | 0 |
|
kjci process context latch | 1 | 0.00 |
| 0 | 2,891 | 0.00 |
kjoedcso state object freelist latch | 30 | 0.00 |
| 0 | 0 |
|
kjoeq omni enqueue hash bucket latch | 1 | 0.00 |
| 0 | 0 |
|
kjoer owner hash bucket | 1 | 0.00 |
| 0 | 0 |
|
kokc descriptor allocation latch | 186 | 0.00 |
| 0 | 0 |
|
krso process latch | 62 | 0.00 |
| 0 | 0 |
|
ksfv messages | 1 | 0.00 |
| 0 | 0 |
|
ksi resource reuse count | 1 | 0.00 |
| 0 | 0 |
|
ksim group membership cache | 1 | 0.00 |
| 0 | 0 |
|
kss move lock | 167 | 0.00 |
| 0 | 0 |
|
ksuosstats global area | 850 | 0.00 |
| 0 | 0 |
|
ksv allocation latch | 363 | 0.00 |
| 0 | 0 |
|
ksv class latch | 335 | 0.00 |
| 0 | 3 | 0.00 |
ksv msg queue latch | 1 | 0.00 |
| 0 | 0 |
|
ksz_so allocation latch | 277 | 0.00 |
| 0 | 0 |
|
ktfbn latch | 385 | 0.00 |
| 0 | 0 |
|
ktm global data | 131 | 0.00 |
| 0 | 0 |
|
ktm prv jrnls | 1 | 0.00 |
| 0 | 0 |
|
ktmpj HT ls | 1 | 0.00 |
| 0 | 0 |
|
kwqbsn:qsga | 66 | 0.00 |
| 0 | 0 |
|
kwslbmdl: metadata latch | 62 | 0.00 |
| 0 | 0 |
|
kwslbql: queue latch | 1 | 0.00 |
| 0 | 0 |
|
kwsptQcachLt: queue cache latch | 1 | 0.00 |
| 0 | 0 |
|
kwsptTrncTsksLt: trunc task latch | 1 | 0.00 |
| 0 | 0 |
|
kwsptjobAdPtLt: AdPt list latch | 134 | 0.00 |
| 0 | 0 |
|
kxfxscanrate_latch | 1 | 0.00 |
| 0 | 0 |
|
lgwr LWN SCN | 801 | 0.00 |
| 0 | 0 |
|
list of block allocation | 80 | 0.00 |
| 0 | 0 |
|
loader state object freelist | 72 | 0.00 |
| 0 | 0 |
|
lob segment dispenser latch | 207 | 0.00 |
| 0 | 0 |
|
lob segment hash table latch | 64 | 1.56 | 1.00 | 0 | 0 |
|
lob segment query latch | 3 | 0.00 |
| 0 | 0 |
|
lock DBA buffer during media recovery | 1 | 0.00 |
| 0 | 0 |
|
log write info | 0 |
|
| 0 | 243 | 0.00 |
log write slave phase | 1 | 0.00 |
| 0 | 0 |
|
logical standby cache | 1 | 0.00 |
| 0 | 0 |
|
logminer context allocation | 1 | 0.00 |
| 0 | 0 |
|
logminer local | 1 | 0.00 |
| 0 | 0 |
|
logminer work area | 1 | 0.00 |
| 0 | 0 |
|
longop free list parent | 1 | 0.00 |
| 0 | 0 |
|
managed standby latch | 62 | 0.00 |
| 0 | 0 |
|
mapped buffers lru chain | 1 | 0.00 |
| 0 | 0 |
|
message bitmap latch | 1 | 0.00 |
| 0 | 0 |
|
message pool operations parent latch | 1 | 0.00 |
| 0 | 0 |
|
messages | 23,017 | 0.00 |
| 0 | 0 |
|
msg queue latch | 1 | 0.00 |
| 0 | 0 |
|
multiblock read objects | 16 | 0.00 |
| 0 | 2 | 0.00 |
name-service namespace bucket | 1 | 0.00 |
| 0 | 0 |
|
ncodef allocation latch | 30 | 0.00 |
| 0 | 0 |
|
ninth spare latch - X parent | 1 | 0.00 |
| 0 | 0 |
|
object queue header freelist | 715 | 0.00 |
| 0 | 0 |
|
object queue header operation | 5,055 | 0.00 |
| 0 | 0 |
|
object queue memory | 119 | 0.00 |
| 0 | 0 |
|
object stats modification | 685 | 0.00 |
| 0 | 0 |
|
parallel query alloc buffer | 1 | 0.00 |
| 0 | 228 | 0.00 |
parallel query stats | 1 | 0.00 |
| 0 | 0 |
|
parameter table management | 1,246 | 0.00 |
| 0 | 0 |
|
peshm | 1 | 0.00 |
| 0 | 0 |
|
pesom_free_list | 1 | 0.00 |
| 0 | 0 |
|
pesom_hash_node | 1 | 0.00 |
| 0 | 0 |
|
pkey global statistics | 1 | 0.00 |
| 0 | 0 |
|
post/wait queue | 1,597 | 0.00 |
| 0 | 1,527 | 0.00 |
process allocation | 380 | 0.00 |
| 0 | 138 | 0.00 |
process group creation | 277 | 0.00 |
| 0 | 0 |
|
process pkey statistics list | 1 | 0.00 |
| 0 | 0 |
|
process queue | 1 | 0.00 |
| 0 | 0 |
|
process queue reference | 1 | 0.00 |
| 0 | 0 |
|
qmn task queue latch | 270 | 0.00 |
| 0 | 0 |
|
query server freelists | 1 | 0.00 |
| 0 | 0 |
|
query server process | 1,241 | 0.00 |
| 0 | 0 |
|
queued dump request | 6 | 0.00 |
| 0 | 0 |
|
queuing load statistics | 1 | 0.00 |
| 0 | 0 |
|
recovery domain hash list | 1 | 0.00 |
| 0 | 0 |
|
redo allocation | 1,045 | 0.00 |
| 0 | 5,939 | 0.00 |
redo copy | 1 | 0.00 |
| 0 | 5,939 | 0.98 |
redo writing | 3,062 | 0.00 |
| 0 | 0 |
|
resmgr group change latch | 59 | 0.00 |
| 0 | 0 |
|
resmgr:active threads | 325 | 0.00 |
| 0 | 0 |
|
resmgr:actses change group | 141 | 0.00 |
| 0 | 0 |
|
resmgr:actses change state | 1 | 0.00 |
| 0 | 0 |
|
resmgr:free threads list | 321 | 0.00 |
| 0 | 0 |
|
resmgr:plan CPU method | 1 | 0.00 |
| 0 | 0 |
|
resmgr:resource group CPU method | 1 | 0.00 |
| 0 | 0 |
|
resmgr:schema config | 4 | 0.00 |
| 0 | 0 |
|
resmgr:session queuing | 1 | 0.00 |
| 0 | 0 |
|
rm cas latch | 1 | 0.00 |
| 0 | 0 |
|
row cache objects | 117,991 | 0.00 |
| 0 | 1,461 | 0.00 |
rules engine evaluation context statistics | 0 |
|
| 0 | 2 | 0.00 |
second Audit Vault latch | 1 | 0.00 |
| 0 | 0 |
|
sequence cache | 175 | 0.00 |
| 0 | 0 |
|
session allocation | 918 | 0.00 |
| 0 | 0 |
|
session idle bit | 1,804 | 0.00 |
| 0 | 0 |
|
session queue latch | 1 | 0.00 |
| 0 | 0 |
|
session state list latch | 523 | 0.00 |
| 0 | 0 |
|
session statistics | 322 | 0.00 |
| 0 | 2 | 0.00 |
session switching | 170 | 0.00 |
| 0 | 0 |
|
session timer | 620 | 0.00 |
| 0 | 0 |
|
seventh spare latch - X parent | 1 | 0.00 |
| 0 | 0 |
|
sga hash table parent latch | 1 | 0.00 |
| 0 | 0 |
|
shard latch | 1 | 0.00 |
| 0 | 0 |
|
shared pool | 65,316 | 0.00 | 1.00 | 0 | 0 |
|
shared pool sim alloc | 39 | 0.00 |
| 0 | 0 |
|
shared pool simulator | 4,079 | 0.00 |
| 0 | 0 |
|
sim partition latch | 1 | 0.00 |
| 0 | 0 |
|
simulator hash latch | 5,256 | 0.00 |
| 0 | 0 |
|
simulator lru latch | 453 | 0.00 |
| 0 | 4,593 | 0.00 |
sixth spare latch - X parent | 1 | 0.00 |
| 0 | 0 |
|
sort extent pool | 285 | 0.00 |
| 0 | 0 |
|
space background state object latch | 4 | 0.00 |
| 0 | 0 |
|
space background task latch | 872 | 0.00 |
| 0 | 1,248 | 0.00 |
state object free list | 2 | 0.00 |
| 0 | 0 |
|
statistics aggregation | 140 | 0.00 |
| 0 | 0 |
|
subscriber Ht bkt | 1 | 0.00 |
| 0 | 0 |
|
tablespace key chain | 21 | 0.00 |
| 0 | 0 |
|
temp lob duration state obj allocation | 26 | 0.00 |
| 0 | 0 |
|
temporary table state object allocation | 4 | 0.00 |
| 0 | 0 |
|
tenth spare latch - X parent | 1 | 0.00 |
| 0 | 0 |
|
test excl. parent l0 | 1 | 0.00 |
| 0 | 0 |
|
test excl. parent2 l0 | 1 | 0.00 |
| 0 | 0 |
|
test excl. parent2 lmid cln | 1 | 0.00 |
| 0 | 0 |
|
test shared parent2 lmid | 1 | 0.00 |
| 0 | 0 |
|
thirteenth spare latch - children | 1 | 0.00 |
| 0 | 0 |
|
threshold alerts latch | 60 | 0.00 |
| 0 | 0 |
|
transaction allocation | 233 | 0.00 |
| 0 | 0 |
|
twelfth spare latch - children | 1 | 0.00 |
| 0 | 0 |
|
twenty-fifth spare latch - S par | 1 | 0.00 |
| 0 | 0 |
|
twenty-first spare latch - S par | 1 | 0.00 |
| 0 | 0 |
|
twenty-fourth spare latch - S par | 1 | 0.00 |
| 0 | 0 |
|
twenty-second spare latch - S par | 1 | 0.00 |
| 0 | 0 |
|
twenty-third spare latch - S par | 1 | 0.00 |
| 0 | 0 |
|
undo global data | 2,752 | 0.00 |
| 0 | 0 |
|
virtual circuit buffers | 1 | 0.00 |
| 0 | 0 |
|
virtual circuit holder | 1 | 0.00 |
| 0 | 0 |
|
virtual circuit queues | 1 | 0.00 |
| 0 | 0 |
|
Back to LatchStatistics
Back to Top
Latch Sleep Breakdown
- ordered by misses desc
Latch Name | Get Requests | Misses | Sleeps | Spin Gets |
shared pool | 65,316 | 2 | 2 | 0 |
lob segment hash table latch | 64 | 1 | 1 | 0 |
Back to LatchStatistics
Back to Top
Latch Miss Sources
- only latches with sleeps are shown
- ordered by name, sleeps desc
Latch Name | Where | NoWait Misses | Sleeps | Waiter Sleeps |
lob segment hash table latch | lob_segment_dispenser:05 | 0 | 1 | 0 |
shared pool | kghalp | 0 | 1 | 0 |
shared pool | kghupr1 | 0 | 1 | 2 |
Back to LatchStatistics
Back to Top
Mutex Sleep Summary
Nodata exists for this section of the report.
Back to LatchStatistics
Back to Top
Parent Latch Statistics
Nodata exists for this section of the report.
Back to Latch Statistics
Back to Top
Child Latch Statistics
Nodata exists for this section of the report.
Back to LatchStatistics
Back to Top
Segment Statistics
- Segments by Logical Reads
- Segments by Physical Reads
- Segments by Physical Read Requests
- Segments by UnOptimized Reads
- Segments by Optimized Reads
- Segments by Direct Physical Reads
- Segments by Physical Writes
- Segments by Physical Write Requests
- Segments by Direct Physical Writes
- Segments by Table Scans
- Segments by DB Blocks Changes
- Segments by Row Lock Waits
- Segments by ITL Waits
- Segments by Buffer Busy Waits
Back to Top
Segments by Logical Reads
- Total Logical Reads: 75,400
- Captured Segments account for 67.1% of Total
- When ** MISSING ** occurs, some of the object attributes may not be available
Owner | Tablespace Name | Object Name | Subobject Name | Obj. Type | Obj# | Dataobj# | Logical Reads | %Total |
SYS | SYSTEM | I_OBJ5 |
| INDEX | 40 | 40 | 4,480 | 5.94 |
SYS | SYSTEM | AUD_OBJECT_OPT$ |
| TABLE | 450 | 450 | 3,696 | 4.90 |
SYS | SYSTEM | I_HH_OBJ#_INTCOL# |
| INDEX | 70 | 70 | 3,520 | 4.67 |
SYS | SYSTEM | SYS_C00828 |
| INDEX | 658 | 658 | 2,736 | 3.63 |
SYS | SYSTEM | I_CCOL1 |
| INDEX | 57 | 57 | 2,688 | 3.56 |
Back to SegmentStatistics
Back to Top
Segments by Physical Reads
- Total Physical Reads: 1,548
- Captured Segments account for 38.8% of Total
- When ** MISSING ** occurs, some of the object attributes may not be available
Owner | Tablespace Name | Object Name | Subobject Name | Obj. Type | Obj# | Dataobj# | Physical Reads | %Total |
SYS | SYSAUX | SYS_LOB0000008304C00004$$ |
| LOB | 8305 | 8305 | 267 | 17.25 |
SYS | SYSTEM | IDL_UB1$ |
| TABLE | 302 | 302 | 209 | 13.50 |
SYS | SYSTEM | I_OBJ2 |
| INDEX | 37 | 37 | 16 | 1.03 |
SYS | SYSAUX | WRH$_SYSMETRIC_HISTORY_INDEX |
| INDEX | 8488 | 8488 | 14 | 0.90 |
SYS | SYSAUX | WRH$_BG_EVENT_SUMMARY_PK |
| INDEX | 8331 | 8331 | 9 | 0.58 |
Back to SegmentStatistics
Back to Top
Segments by Physical Read Requests
- Total Physical Read Requests: 1,519
- Captured Segments account for 39.6% of Total
- When ** MISSING ** occurs, some of the object attributes may not be available
Owner | Tablespace Name | Object Name | Subobject Name | Obj. Type | Obj# | Dataobj# | Phys Read Requests | %Total |
SYS | SYSAUX | SYS_LOB0000008304C00004$$ |
| LOB | 8305 | 8305 | 267 | 17.58 |
SYS | SYSTEM | IDL_UB1$ |
| TABLE | 302 | 302 | 209 | 13.76 |
SYS | SYSTEM | I_OBJ2 |
| INDEX | 37 | 37 | 16 | 1.05 |
SYS | SYSAUX | WRH$_SYSMETRIC_HISTORY_INDEX |
| INDEX | 8488 | 8488 | 14 | 0.92 |
SYS | SYSAUX | WRH$_BG_EVENT_SUMMARY_PK |
| INDEX | 8331 | 8331 | 9 | 0.59 |
Back to SegmentStatistics
Back to Top
Segments by UnOptimized Reads
- Total UnOptimized Read Requests: 1,519
- Captured Segments account for 39.6% of Total
- When ** MISSING ** occurs, some of the object attributes may not be available
Owner | Tablespace Name | Object Name | Subobject Name | Obj. Type | Obj# | Dataobj# | UnOptimized Reads | %Total |
SYS | SYSAUX | SYS_LOB0000008304C00004$$ |
| LOB | 8305 | 8305 | 267 | 17.58 |
SYS | SYSTEM | IDL_UB1$ |
| TABLE | 302 | 302 | 209 | 13.76 |
SYS | SYSTEM | I_OBJ2 |
| INDEX | 37 | 37 | 16 | 1.05 |
SYS | SYSAUX | WRH$_SYSMETRIC_HISTORY_INDEX |
| INDEX | 8488 | 8488 | 14 | 0.92 |
SYS | SYSAUX | WRH$_BG_EVENT_SUMMARY_PK |
| INDEX | 8331 | 8331 | 9 | 0.59 |
Back to SegmentStatistics
Back to Top
Segments by Optimized Reads
Nodata exists for this section of the report.
Back to SegmentStatistics
Back to Top
Segments by Direct Physical Reads
Nodata exists for this section of the report.
Back to SegmentStatistics
Back to Top
Segments by Physical Writes
- Total Physical Writes: 791
- Captured Segments account for 35.8% of Total
- When ** MISSING ** occurs, some of the object attributes may not be available
Owner | Tablespace Name | Object Name | Subobject Name | Obj. Type | Obj# | Dataobj# | Physical Writes | %Total |
SYS | SYSAUX | SYS_LOB0000008304C00004$$ |
| LOB | 8305 | 8305 | 32 | 4.05 |
SYS | SYSTEM | COL_USAGE$ |
| TABLE | 578 | 578 | 29 | 3.67 |
SYS | SYSAUX | SYS_LOB0000006450C00009$$ | SYS_LOB_P1672 | LOB PARTITION | 138970 | 138970 | 25 | 3.16 |
SYS | SYSAUX | WRH$_LATCH | WRH$_LATCH_53626287_97 | TABLE PARTITION | 138837 | 138837 | 16 | 2.02 |
SYS | SYSAUX | WRH$_LATCH_PK | WRH$_LATCH_53626287_97 | INDEX PARTITION | 138839 | 138839 | 16 | 2.02 |
Back to SegmentStatistics
Back to Top
Segments by Physical Write Requests
- Total Physical Write Requests: 444
- Captured Segments account for 29.3% of Total
- When ** MISSING ** occurs, some of the object attributes may not be available
Owner | Tablespace Name | Object Name | Subobject Name | Obj. Type | Obj# | Dataobj# | Phys Write Requests | %Total |
SYS | SYSTEM | OBJ$ |
| TABLE | 18 | 18 | 11 | 2.48 |
SYS | SYSAUX | SYS_LOB0000006450C00009$$ | SYS_LOB_P1672 | LOB PARTITION | 138970 | 138970 | 9 | 2.03 |
SYS | SYSAUX | WRH$_SYSMETRIC_HISTORY_INDEX |
| INDEX | 8488 | 8488 | 8 | 1.80 |
SYS | SYSAUX | SYS_LOB0000008304C00004$$ |
| LOB | 8305 | 8305 | 7 | 1.58 |
SYS | SYSAUX | SCHEDULER$_EVENT_LOG |
| TABLE | 7903 | 7903 | 6 | 1.35 |
Back to SegmentStatistics
Back to Top
Segments by Direct Physical Writes
- Total Direct Physical Writes: 44
- Captured Segments account for 9.1% of Total
- When ** MISSING ** occurs, some of the object attributes may not be available
Owner | Tablespace Name | Object Name | Subobject Name | Obj. Type | Obj# | Dataobj# | Direct Writes | %Total |
SYS | SYSAUX | SYS_LOB0000006450C00009$$ | SYS_LOB_P1672 | LOB PARTITION | 138970 | 138970 | 3 | 6.82 |
SYS | SYSAUX | SYS_LOB0000008304C00004$$ |
| LOB | 8305 | 8305 | 1 | 2.27 |
Back to SegmentStatistics
Back to Top
Segments by Table Scans
Nodata exists for this section of the report.
Back to Segment Statistics
Back to Top
Segments by DB Blocks Changes
- % of Capture shows % of DB Block Changes for each top segment compared
- with total DB Block Changes for all segments captured by the Snapshot
- When ** MISSING ** occurs, some of the object attributes may not be available
Owner | Tablespace Name | Object Name | Subobject Name | Obj. Type | Obj# | Dataobj# | DB Block Changes | % of Capture |
SYS | SYSTEM | COL_USAGE$ |
| TABLE | 578 | 578 | 928 | 30.37 |
SYS | SYSAUX | WRH$_SYSSTAT_PK | WRH$_SYSSTA_53626287_97 | INDEX PARTITION | 138859 | 138859 | 800 | 26.18 |
SYS | SYSAUX | WRH$_LATCH_PK | WRH$_LATCH_53626287_97 | INDEX PARTITION | 138839 | 138839 | 432 | 14.14 |
SYS | SYSAUX | WRH$_SYSMETRIC_HISTORY_INDEX |
| INDEX | 8488 | 8488 | 224 | 7.33 |
SYS | SYSAUX | SYS_LOB0000008304C00004$$ |
| LOB | 8305 | 8305 | 144 | 4.71 |
Back to SegmentStatistics
Back to Top
Segments by Row Lock Waits
Nodata exists for this section of the report.
Back to SegmentStatistics
Back to Top
Segments by ITL Waits
Nodata exists for this section of the report.
Back to SegmentStatistics
Back to Top
Segments by Buffer Busy Waits
Nodata exists for this section of the report.
Back to SegmentStatistics
Back to Top
Dictionary Cache Stats
- "Pct Misses" should be very low (< 2% in most cases)
- "Final Usage" is the number of cache entries being used
Cache | Get Requests | Pct Miss | Scan Reqs | Pct Miss | Mod Reqs | Final Usage |
dc_awr_control | 37 | 0.00 | 0 |
| 2 | 1 |
dc_global_oids | 2,603 | 0.23 | 0 |
| 0 | 58 |
dc_histogram_data | 3,507 | 9.67 | 0 |
| 0 | 1,693 |
dc_histogram_defs | 10,152 | 20.89 | 0 |
| 202 | 3,837 |
dc_objects | 11,937 | 4.35 | 0 |
| 126 | 1,874 |
dc_profiles | 13 | 0.00 | 0 |
| 0 | 1 |
dc_props | 1,552 | 0.00 | 0 |
| 0 | 3 |
dc_rollback_segments | 434 | 0.00 | 0 |
| 0 | 22 |
dc_segments | 2,503 | 9.31 | 0 |
| 14 | 670 |
dc_sequences | 2 | 0.00 | 0 |
| 2 | 2 |
dc_tablespaces | 3,575 | 0.00 | 0 |
| 0 | 8 |
dc_users | 4,057 | 0.07 | 156 | 0.00 | 0 | 104 |
outstanding_alerts | 2 | 0.00 | 0 |
| 0 | 1 |
sch_lj_oids | 42 | 0.00 | 0 |
| 0 | 17 |
Back to Top
Library Cache Activity
- "Pct Misses" should be very low
Namespace | Get Requests | Pct Miss | Pin Requests | Pct Miss | Reloads | Invali- dations |
AUDIT POLICY | 78 | 0.00 | 78 | 0.00 | 0 | 0 |
BODY | 348 | 7.76 | 480 | 6.04 | 2 | 0 |
CLUSTER | 30 | 0.00 | 30 | 0.00 | 0 | 0 |
DBLINK | 106 | 0.00 | 0 |
| 0 | 0 |
EDITION | 138 | 0.00 | 267 | 0.00 | 0 | 0 |
HINTSET OBJECT | 18 | 33.33 | 18 | 33.33 | 0 | 0 |
INDEX | 35 | 51.43 | 31 | 87.10 | 9 | 0 |
OBJECT ID | 26 | 100.00 | 0 |
| 0 | 0 |
SCHEMA | 701 | 0.29 | 0 |
| 0 | 0 |
SQL AREA | 2,957 | 26.18 | 14,976 | 7.26 | 115 | 36 |
SQL AREA BUILD | 402 | 97.01 | 0 |
| 0 | 0 |
SQL AREA STATS | 385 | 75.32 | 385 | 75.32 | 0 | 0 |
TABLE/PROCEDURE | 2,832 | 12.82 | 8,217 | 14.63 | 334 | 0 |
USER PRIVILEGE | 4 | 0.00 | 4 | 0.00 | 0 | 0 |
Back to Top
Memory Statistics
- Memory Dynamic Components
- Memory Resize Operations Summary
- Memory Resize Ops
- Process Memory Summary
- SGA Memory Summary
- SGA breakdown difference
Back to Top
Memory Dynamic Components
- Min/Max sizes since instance startup
- Oper Types/Modes: INItializing,GROw,SHRink,STAtic/IMMediate,DEFerred
- ordered by Component
Component | Begin Snap Size (Mb) | Current Size (Mb) | Min Size (Mb) | Max Size (Mb) | Oper Count | Last Op Typ/Mod |
ASM Buffer Cache | 0.00 | 0.00 | 0.00 | 0.00 | 0 | STA/ |
DEFAULT 16K buffer cache | 0.00 | 0.00 | 0.00 | 0.00 | 0 | STA/ |
DEFAULT 2K buffer cache | 0.00 | 0.00 | 0.00 | 0.00 | 0 | STA/ |
DEFAULT 32K buffer cache | 0.00 | 0.00 | 0.00 | 0.00 | 0 | STA/ |
DEFAULT 4K buffer cache | 0.00 | 0.00 | 0.00 | 0.00 | 0 | STA/ |
DEFAULT 8K buffer cache | 0.00 | 0.00 | 0.00 | 0.00 | 0 | STA/ |
DEFAULT buffer cache | 736.00 | 736.00 | 624.00 | 736.00 | 0 | GRO/DEF |
Data Transfer Cache | 0.00 | 0.00 | 0.00 | 0.00 | 0 | STA/ |
In-Memory Area | 0.00 | 0.00 | 0.00 | 0.00 | 0 | STA/ |
KEEP buffer cache | 0.00 | 0.00 | 0.00 | 0.00 | 0 | STA/ |
PGA Target | 368.00 | 368.00 | 368.00 | 368.00 | 0 | STA/ |
RECYCLE buffer cache | 0.00 | 0.00 | 0.00 | 0.00 | 0 | STA/ |
SGA Target | 1,088.00 | 1,088.00 | 1,088.00 | 1,088.00 | 0 | STA/ |
Shared IO Pool | 48.00 | 48.00 | 0.00 | 48.00 | 0 | GRO/IMM |
java pool | 16.00 | 16.00 | 16.00 | 16.00 | 0 | STA/ |
large pool | 32.00 | 32.00 | 32.00 | 144.00 | 0 | SHR/DEF |
shared pool | 240.00 | 240.00 | 240.00 | 240.00 | 0 | STA/ |
streams pool | 0.00 | 0.00 | 0.00 | 0.00 | 0 | STA/ |
Back to MemoryStatistics
Back to Top
Memory Resize Operations Summary
Nodata exists for this section of the report.
Back to MemoryStatistics
Back to Top
Memory Resize Ops
Nodata exists for this section of the report.
Back to MemoryStatistics
Back to Top
Process Memory Summary
- B: Begin Snap E: End Snap
- All rows below contain absolute values (i.e. not diffed over the interval)
- Max Alloc is Maximum PGA Allocation size at snapshot time
- Hist Max Alloc is the Historical Max Allocation for still-connected processes
- ordered by Begin/End snapshot, Alloc (MB) desc
Category | Alloc (MB) | Used (MB) | Avg Alloc (MB) | Std Dev Alloc (MB) | Max Alloc (MB) | Hist Max Alloc (MB) | Num Proc | Num Alloc | |
B | Other | 127.37 |
| 3.64 | 9.98 | 60 | 60 | 35 | 35 |
B | Freeable | 11.94 | 0.00 | 0.99 | 1.58 | 6 |
| 12 | 12 |
B | SQL | 0.94 | 0.10 | 0.07 | 0.08 | 0 | 3 | 13 | 10 |
B | PL/SQL | 0.66 | 0.58 | 0.02 | 0.07 | 0 | 0 | 33 | 33 |
E | Other | 126.25 |
| 3.71 | 10.12 | 60 | 60 | 34 | 34 |
E | Freeable | 12.69 | 0.00 | 1.06 | 1.68 | 6 |
| 12 | 12 |
E | SQL | 0.78 | 0.55 | 0.06 | 0.16 | 1 | 3 | 13 | 9 |
E | PL/SQL | 0.69 | 0.61 | 0.02 | 0.07 | 0 | 0 | 32 | 32 |
Back to MemoryStatistics
Back to Top
SGA Memory Summary
SGA regions | Begin Size (Bytes) | End Size (Bytes) (if different) |
Database Buffers | 822,083,584 |
|
Fixed Size | 2,923,584 |
|
Redo Buffers | 13,852,672 |
|
Variable Size | 301,990,848 |
|
Back to MemoryStatistics
Back to Top
SGA breakdown difference
- ordered by Pool, Name
- N/A value for Begin MB or End MB indicates the size of that Pool/Name was insignificant, or zero in that snapshot
Pool | Name | Begin MB | End MB | % Diff |
java | free memory | 16.00 | 16.00 | 0.00 |
large | ASM map operations hashta | 0.38 | 0.38 | 0.00 |
large | PX msg pool | 0.47 | 0.47 | 0.00 |
large | free memory | 31.16 | 31.16 | 0.00 |
shared | KCB Table Scan Buffer | 4.00 | 4.00 | 0.00 |
shared | KGLH0 | 16.06 | 15.62 | -2.71 |
shared | KGLHD | 4.60 | 4.34 | -5.54 |
shared | KGLS | 8.87 | 5.43 | -38.82 |
shared | KGLSG | 5.03 | 5.03 | 0.00 |
shared | KQR L PO | 5.43 | 5.62 | 3.47 |
shared | KQR X SO |
| 2.59 |
|
shared | KSFD SGA I/O b | 4.00 | 4.00 | 0.00 |
shared | KTI-UNDO | 3.45 | 3.45 | 0.00 |
shared | Multiblock Index SO | 3.69 | 3.69 | 0.00 |
shared | PLDIA | 3.30 |
| -100.00 |
shared | PLMCD | 5.61 | 5.03 | -10.34 |
shared | SGA - SWRF Metric CHBs | 2.48 | 2.48 | 0.00 |
shared | SQLA | 31.89 | 27.47 | -13.85 |
shared | db_block_hash_buckets | 5.50 | 5.50 | 0.00 |
shared | dbktb: trace buffer | 4.69 | 4.69 | 0.00 |
shared | dbwriter coalesce buffer | 4.00 | 4.00 | 0.00 |
shared | event statistics per sess | 6.71 | 6.71 | 0.00 |
shared | free memory | 22.87 | 32.52 | 42.17 |
shared | kglsim hash table bkts | 4.00 | 4.00 | 0.00 |
shared | ksunfy : SSO free list | 3.78 | 3.78 | 0.00 |
shared | message pool freequeue | 2.43 | 2.43 | 0.00 |
shared | obj stats allocation chun | 3.28 | 3.28 | 0.00 |
shared | private strands | 6.62 | 6.62 | 0.00 |
shared | row cache | 8.24 | 8.24 | 0.00 |
shared | write state object | 3.86 | 3.86 | 0.00 |
| buffer_cache | 736.00 | 736.00 | 0.00 |
| fixed_sga | 2.79 | 2.79 | 0.00 |
| log_buffer | 13.21 | 13.21 | 0.00 |
| shared_io_pool | 48.00 | 48.00 | 0.00 |
Back to MemoryStatistics
Back to Top
Replication Statistics (GoldenGate,XStream)
- Replication System Resource Usage
- Replication SGA Usage
- GoldenGate Capture
- GoldenGate Capture Rate
- GoldenGate Apply Reader
- GoldenGate Apply Coordinator
- GoldenGate Apply Server
- GoldenGate Apply Coordinator Rate
- GoldenGate Apply Reader and Server Rate
- XStream Capture
- XStream Capture Rate
- XStream Apply Reader
- XStream Apply Coordinator
- XStream Apply Server
- XStream Apply Coordinator Rate
- XStream Apply Reader and Server Rate
- Table Statistics by DML Operations
- Table Statistics by Conflict Resolutions
- Replication Large Transaction Statistics
- Replication Long Running Transaction Statistics
Back to Top
Replication System Resource Usage
Nodata exists for this section of the report.
Back to ReplicationStatistics (GoldenGate, XStream)
Back to Top
Replication SGA Usage
Nodata exists for this section of the report.
Back to ReplicationStatistics (GoldenGate, XStream)
Back to Top
GoldenGate Capture
Nodata exists for this section of the report.
Back to ReplicationStatistics (GoldenGate, XStream)
Back to Top
GoldenGate Capture Rate
Nodata exists for this section of the report.
Back to ReplicationStatistics (GoldenGate, XStream)
Back to Top
GoldenGate Apply Reader
Nodata exists for this section of the report.
Back to Replication Statistics(GoldenGate, XStream)
Back to Top
GoldenGate Apply Coordinator
Nodata exists for this section of the report.
Back to ReplicationStatistics (GoldenGate, XStream)
Back to Top
GoldenGate Apply Server
Nodata exists for this section of the report.
Back to ReplicationStatistics (GoldenGate, XStream)
Back to Top
GoldenGate Apply Coordinator Rate
Nodata exists for this section of the report.
Back to ReplicationStatistics (GoldenGate, XStream)
Back to Top
GoldenGate Apply Reader and Server Rate
Nodata exists for this section of the report.
Back to ReplicationStatistics (GoldenGate, XStream)
Back to Top
XStream Capture
Nodata exists for this section of the report.
Back to ReplicationStatistics (GoldenGate, XStream)
Back to Top
XStream Capture Rate
Nodata exists for this section of the report.
Back to Replication Statistics(GoldenGate, XStream)
Back to Top
XStream Apply Reader
Nodata exists for this section of the report.
Back to ReplicationStatistics (GoldenGate, XStream)
Back to Top
XStream Apply Coordinator
Nodata exists for this section of the report.
Back to ReplicationStatistics (GoldenGate, XStream)
Back to Top
XStream Apply Server
Nodata exists for this section of the report.
Back to ReplicationStatistics (GoldenGate, XStream)
Back to Top
XStream Apply Coordinator Rate
Nodata exists for this section of the report.
Back to ReplicationStatistics (GoldenGate, XStream)
Back to Top
XStream Apply Reader and Server Rate
Nodata exists for this section of the report.
Back to ReplicationStatistics (GoldenGate, XStream)
Back to Top
Table Statistics by DML Operations
Nodata exists for this section of the report.
Back to ReplicationStatistics (GoldenGate, XStream)
Back to Top
Table Statistics by ConflictResolutions
Nodata exists for this section of the report.
Back to ReplicationStatistics (GoldenGate, XStream)
Back to Top
Replication Large Transaction Statistics
Nodata exists for this section of the report.
Back to ReplicationStatistics (GoldenGate, XStream)
Back to Top
Replication Long Running TransactionStatistics
Nodata exists for this section of the report.
Back to ReplicationStatistics (GoldenGate, XStream)
Back to Top
Streams Statistics
- Streams CPU/IO Usage
- Streams Capture
- Streams Capture Rate
- Streams Apply
- Streams Apply Rate
- Buffered Queues
- Buffered Queue Subscribers
- Rule Set
- Persistent Queues
- Persistent Queues Rate
- Persistent Queue Subscribers
Back to Top
Streams CPU/IO Usage
Nodata exists for this section of the report.
Back to StreamsStatistics
Back to Top
Streams Capture
Nodata exists for this section of the report.
Back to StreamsStatistics
Back to Top
Streams Capture Rate
Nodata exists for this section of the report.
Back to StreamsStatistics
Back to Top
Streams Apply
Nodata exists for this section of the report.
Back to StreamsStatistics
Back to Top
Streams Apply Rate
Nodata exists for this section of the report.
Back to StreamsStatistics
Back to Top
Buffered Queues
Nodata exists for this section of the report.
Back to StreamsStatistics
Back to Top
Buffered Queue Subscribers
Nodata exists for this section of the report.
Back to StreamsStatistics
Back to Top
Rule Set
Nodata exists for this section of the report.
Back to StreamsStatistics
Back to Top
Persistent Queues
Nodata exists for this section of the report.
Back to StreamsStatistics
Back to Top
Persistent Queues Rate
Nodata exists for this section of the report.
Back to StreamsStatistics
Back to Top
Persistent Queue Subscribers
Nodata exists for this section of the report.
Back to StreamsStatistics
Back to Top
Resource Limit Stats
Nodata exists for this section of the report.
Back to Top
Shared Server Statistics
- Shared Servers Activity
- Shared Servers Rates
- Shared Servers Utilization
- Shared Servers Common Queue
- Shared Servers Dispatchers
Back to Top
Shared Servers Activity
- Values represent averages for all samples
Avg Total Connections | Avg Active Connections | Avg Total Shared Srvrs | Avg Active Shared Srvrs | Avg Total Dispatchers | Avg Active Dispatchers |
0 | 0 | 1 | 0 | 1 | 0 |
Back to Shared ServerStatistics
Back to Top
Shared Servers Rates
Common Queue Per Sec | Disp Queue Per Sec | Server Msgs/Sec | Server KB/Sec | Common Queue Total | Disp Queue Total | Server Total Msgs | Server Total(KB) |
0 | 0 | 0 | 0.00 | 0 | 0 | 0 | 0 |
Back to Shared ServerStatistics
Back to Top
Shared Servers Utilization
- Statistics are combined for all servers
- Incoming and Outgoing Net % are included in %Busy
Total Server Time (s) | %Busy | %Idle | Incoming Net % | Outgoing Net % |
1,861 | 0.00 | 100.00 | 0.00 | 0.00 |
Back to Shared ServerStatistics
Back to Top
Shared Servers Common Queue
Nodata exists for this section of the report.
Back to Shared ServerStatistics
Back to Top
Shared Servers Dispatchers
- Ordered by %Busy, descending
- Total Queued, Total Queue Wait and Avg Queue Wait are for dispatcher queue
- Name suffixes: "(N)" - dispatcher started between begin and end snapshots "(R)" - dispatcher re-started between begin and end snapshots
Name | Avg Conns | Total Disp Time (s) | %Busy | %Idle | Total Queued | Total Queue Wait (s) | Avg Queue Wait (ms) |
D000 | 0.00 | 1,861 | 0.00 | 100.00 | 0 | 0 |
|
Back to Shared ServerStatistics
Back to Top
init.ora Parameters
- init.ora Parameters
- init.ora Multi-Valued Parameters
Back to Top
init.ora Parameters
Parameter Name | Begin value | End value (if different) |
audit_file_dest | /u01/app/oracle/admin/toaddb/adump |
|
audit_trail | DB |
|
compatible | 12.1.0.2.0 |
|
control_files | +DATA/toaddb/control01.ctl, +DATA/toaddb/control02.ctl |
|
db_block_size | 8192 |
|
db_domain |
|
|
db_name | toaddb |
|
diagnostic_dest | /u01/app/oracle |
|
dispatchers | (PROTOCOL=TCP) (SERVICE=toaddbXDB) |
|
local_listener | LISTENER_TOADDB |
|
open_cursors | 300 |
|
optimizer_adaptive_features | FALSE |
|
parallel_max_servers | 8 |
|
parallel_min_servers | 0 |
|
pga_aggregate_target | 377487360 |
|
processes | 300 |
|
remote_login_passwordfile | EXCLUSIVE |
|
session_cached_cursors | 201 |
|
sga_target | 1140850688 |
|
undo_tablespace | UNDOTBS1 |
|
utl_file_dir | /home/oracle/logminer |
|
Back to init.oraParameters
Back to Top
init.ora Multi-Valued Parameters
- This section only displays parameters that have more than one value
- '(NULL)' indicates a missing parameter value
- A blank in the 'End Snapshot' indicates the same value as the 'Begin Snapshot'
Parameter Name | Begin value | End value (if different) |
control_files | +DATA/toaddb/control01.ctl |
|
control_files | +DATA/toaddb/control02.ctl |
|
Back to init.oraParameters
Back to Top
Active Session History (ASH) Report
- Top SQL with Top Events
- Top SQL with Top Row Sources
- Top Sessions
- Top Blocking Sessions
- Top PL/SQL Procedures
- Top Events
- Top Event P1/P2/P3 Values
- Top DB Objects
- Activity Over Time
Back to Top
Top SQL with Top Events
- Top SQL statements by DB Time along with the top events by DB Time for those SQLs.
- % Activity is the percentage of DB Time due to the SQL.
- % Event is the percentage of DB Time due to the event that the SQL is waiting on.
- % Row Source is the percentage of DB Time due to the row source for the SQL waiting on the event.
- Executions is the number of executions of the SQL that were sampled in ASH.
SQL ID | Plan Hash | Executions | % Activity | Event | % Event | Top Row Source | % Row Source | SQL Text |
2z1r2g6ayph4p | 2898676228 | 0 | 12.50 | db file sequential read | 12.50 | ** Row Source Not Available ** | 12.50 | ** SQL Text Not Available ** |
357cru8xpxh55 | 3161201770 | 0 | 12.50 | CPU + Wait for CPU | 12.50 | SELECT STATEMENT | 12.50 | SELECT A.EXECUTION_ID, A.JOBNA... |
8mdz49zkajhw3 |
| 0 | 12.50 | CPU + Wait for CPU | 12.50 | ** Row Source Not Available ** | 12.50 | SELECT /*+ OPT_PARAM('_fix_con... |
Back to Active SessionHistory (ASH) Report
Back to Top
Top SQL with Top Row Sources
- Top SQL statements by DB Time along with the top row sources by DB Time for those SQLs.
- % Activity is the percentage of DB Time due to the SQL.
- % Row Source is the percentage of DB Time spent on the row source by that SQL.
- % Event is the percentage of DB Time spent on the event by the SQL executing the row source.
- Executions is the number of executions of the SQL that were sampled in ASH.
SQL ID | Plan Hash | Executions | % Activity | Row Source | % Row Source | Top Event | % Event | SQL Text |
2z1r2g6ayph4p | 2898676228 | 0 | 12.50 | ** Row Source Not Available ** | 12.50 | db file sequential read | 12.50 | ** SQL Text Not Available ** |
357cru8xpxh55 | 3161201770 | 0 | 12.50 | SELECT STATEMENT | 12.50 | CPU + Wait for CPU | 12.50 | SELECT A.EXECUTION_ID, A.JOBNA... |
8mdz49zkajhw3 |
| 0 | 12.50 | ** Row Source Not Available ** | 12.50 | CPU + Wait for CPU | 12.50 | SELECT /*+ OPT_PARAM('_fix_con... |
Back to Active SessionHistory (ASH) Report
Back to Top
Top Sessions
- '# Samples Active' shows the number of ASH samples in which the session was found waiting for that particular event. The percentage shown in this column is calculated with respect to wall clock time and not total database activity.
- 'XIDs' shows the number of distinct transaction IDs sampled in ASH when the session was waiting for that particular event
Sid, Serial# | % Activity | Event | % Event | User | Program | # Samples Active | XIDs |
3,56653 | 12.50 | os thread creation | 12.50 | SYS | oracle@OEL (PSP0) | 1/186 [ 1%] | 0 |
13,50948 | 12.50 | log file parallel write | 12.50 | SYS | oracle@OEL (LGWR) | 1/186 [ 1%] | 0 |
14,16753 | 12.50 | control file parallel write | 12.50 | SYS | oracle@OEL (CKPT) | 1/186 [ 1%] | 0 |
21, 3715 | 12.50 | oracle thread bootstrap | 12.50 | SYS | oracle@OEL (MMON) | 1/186 [ 1%] | 0 |
25,62364 | 12.50 | CPU + Wait for CPU | 12.50 | SYS | oracle@OEL (M000) | 1/186 [ 1%] | 0 |
Back to Active SessionHistory (ASH) Report
Back to Top
Top Blocking Sessions
- Blocking session activity percentages are calculated with respect to waits on enqueues, latches and "buffer busy" only
- '% Activity' represents the load on the database caused by a particular blocking session
- '# Samples Active' shows the number of ASH samples in which the blocking session was found active.
- 'XIDs' shows the number of distinct transaction IDs sampled in ASH when the blocking session was found active.
Blocking Sid (Inst) | % Activity | Event Caused | % Event | User | Program | # Samples Active | XIDs |
13,50948( 1) | 12.50 | log file sync | 12.50 | SYS | oracle@OEL (LGWR) | 1/186 [ 1%] | 0 |
Back to Active SessionHistory (ASH) Report
Back to Top
Top PL/SQL Procedures
- 'PL/SQL entry subprogram' represents the application's top-level entry-point (procedure, function, trigger, package initialization or RPC call) into PL/SQL.
- 'PL/SQL current subprogram' is the PL/SQL subprogram being executed at the point of sampling . If the value is 'SQL', it represents the percentage of time spent executing SQL for the particular PL/SQL entry subprogram
PL/SQL Entry Subprogram | % Activity | PL/SQL Current Subprogram | % Current |
SYS.DBMS_AUTO_REPORT_INTERNAL.I_SAVE_REPORT | 12.50 | SQL | 12.50 |
SYS.PRVT_ILM.ILM_CLEANUP | 12.50 | SQL | 12.50 |
Back to Active SessionHistory (ASH) Report
Back to Top
Top Events
- Top Events by DB Time
- % Activity is the percentage of DB Time due to the event
Event | Event Class | Session Type | % Activity | Avg Active Sessions |
CPU + Wait for CPU | CPU | BACKGROUND | 25.00 | 0.01 |
control file parallel write | System I/O | BACKGROUND | 12.50 | 0.01 |
db file sequential read | User I/O | BACKGROUND | 12.5 | 0.01 |
log file parallel write | System I/O | BACKGROUND | 12.5 | 0.01 |
log file sync | Commit | FOREGROUND | 12.5 | 0.01 |
Back to Active SessionHistory (ASH) Report
Back to Top
Top Event P1/P2/P3 Values
- Top Events by DB Time and the top P1/P2/P3 values for those events.
- % Event is the percentage of DB Time due to the event
- % Activity is the percentage of DB Time due to the event with the given P1,P2,P3 Values.
Event | % Event | P1, P2, P3 Values | % Activity | Parameter 1 | Parameter 2 | Parameter 3 |
control file parallel write | 12.50 | "2","3","2" | 12.50 | files | block# | requests |
db file sequential read | 12.50 | "1","101153","1" | 12.50 | file# | block# | blocks |
log file parallel write | 12.50 | "1","3","1" | 12.50 | files | blocks | requests |
log file sync | 12.50 | "6218","2770432","0" | 12.50 | buffer# | sync scn | NOT DEFINED |
oracle thread bootstrap | 12.50 | "3158067","0","0" | 12.50 | pname | NOT DEFINED | NOT DEFINED |
Back to Active SessionHistory (ASH) Report
Back to Top
Top DB Objects
Nodata exists for this section of the report.
Back to Active SessionHistory (ASH) Report
Back to Top
Activity Over Time
- Analysis period is divided into smaller time slots as indicated in the 'Slot Time (Duration)'.
- Top 3 events are reported in each of those slots
- 'Slot Count' shows the number of ASH samples in that slot
- 'Event Count' shows the number of ASH samples waiting for that event in that slot
- '% Event' is 'Event Count' over all ASH samples in the analysis period
Slot Time (Duration) | Slot Count | Event | Event Count | % Event |
16:48:00 (2.0 min) | 5 | CPU + Wait for CPU | 1 | 12.50 |
16:48:00 (2.0 min) | 5 | control file parallel write | 1 | 12.50 |
16:48:00 (2.0 min) | 5 | db file sequential read | 1 | 12.50 |
17:00:00 (5.0 min) | 3 | CPU + Wait for CPU | 1 | 12.50 |
17:00:00 (5.0 min) | 3 | oracle thread bootstrap | 1 | 12.50 |
17:00:00 (5.0 min) | 3 | os thread creation | 1 | 12.50 |
Back to Active SessionHistory (ASH) Report
Back to Top
ADDM TaskADDM:53626287_1_103
ADDM Report for Task 'ADDM:53626287_1_103'
------------------------------------------
Analysis Period
---------------
AWR snapshot range from 102 to 103.
Time period starts at 09-MAR-16 04.48.01 PM
Time period ends at 09-MAR-16 05.19.01 PM
Analysis Target
---------------
Database 'TOADDB' with DB ID 53626287.
Database version 12.1.0.2.0.
ADDM performed an analysis of instance toaddb, numbered 1 and hosted at OEL.
Activity During the Analysis Period
-----------------------------------
Total database time was 6 seconds.
The average number of active sessions was 0.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There are no findings to report.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Additional Information
----------------------
Miscellaneous Information
-------------------------
There was no significant database activity to run the ADDM.
The database's maintenance windows were active during 100% of the analysis
period.
Back to Top
Endof Report
最后
以上就是动听衬衫为你收集整理的34.Oracle深度学习笔记——12C的AWR初步解读1. 快照生成方法2. 生成AWR报告3. 系统描述4. 报告汇总5. 等待事件统计6. SQL统计7. 实例活动统计8. IO状态9. 缓存池统计10. 数据库建议统计11. 等待统计12. 回滚统计13. Latch统计14. 段信息统计15. 字典CACHE 统计16. 库缓存统计17. 内存统计18. 复制统计(X流,GoldenGate)19. 流统计2的全部内容,希望文章能够帮你解决34.Oracle深度学习笔记——12C的AWR初步解读1. 快照生成方法2. 生成AWR报告3. 系统描述4. 报告汇总5. 等待事件统计6. SQL统计7. 实例活动统计8. IO状态9. 缓存池统计10. 数据库建议统计11. 等待统计12. 回滚统计13. Latch统计14. 段信息统计15. 字典CACHE 统计16. 库缓存统计17. 内存统计18. 复制统计(X流,GoldenGate)19. 流统计2所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复