如何分析诊断收集信息 1. 查看awr 报告中high paring 和high version部分内容 具体查看这几个部分的内容:sqlordered by parse calls' or 'sql ordered by version count' sql ordered by parse calls 关于这部分中的sql 解析执行是否过高,或者能否减小来
如何分析诊断收集信息
1. 查看awr 报告中high paring 和high version部分内容
具体查看这几个部分的内容:sqlordered by parse calls' or 'sql ordered by version count'
sql ordered by parse calls关于这部分中的sql 解析执行是否过高,或者能否减小来。
sql ordered by version count关于这部分中的high version sql ,需要找出为啥他们不能共享,可以通过 v$sql_shared_cursor 视图查找原因
2. systemstats 和errorstack 的关注点
对于systemstats 和errorstack 时效性非常重要。需要在问题发生时刻进行dump ,否则过时采集的信息是无效的。在一个高速运行的系统中,那些holders and waiter 进程转瞬即逝。
根据awr 的 load profile 部分内容可以初步判断出 系统 sql 解析情况:
如果看到hard parses 很多,表明系统可能没有使用绑定变量,或者有新的sql 上线。
对于high version counts 也会导致 cursor:ping s wait on x
使用v$sql_shared_cursor可以查找出 sql 不能共享的原因
有些bug可能会导致 high version counts:
document 1057392.8 bug 10157392 - high version counts forsql with binds (bind_mismatch)
document 9689310.8 bug 9689310 - excessive child cursors /high version_count / oeri:17059 due to bind mismatch
bug 可能会导致 cursor pin s wait on x :
nb
bug
fixed
description
5650841
hang / deadlock from analyze of cluster index
16191248
12.1.0.1.1, 12.1.0.2, 12.2.0.0
hang from concurrent drop of on-commit materialized views or using dbms_redefinition
14295250
11.2.0.4, 12.1.0.1
long parse time for large query with many nested views due to much time in epxression analysis code
14191508
11.2.0.3.8, 11.2.0.3.bp16, 11.2.0.4, 12.1.0.1
slow row cache load due to seg$ and indsubpart$ queries
14176247
11.2.0.4, 12.1.0.1
many child cursors using adaptive cursor sharing with binds (due to bind_equiv_failure)
18292893
12.1.0.2, 12.2.0.0
jobs don't execute per schedule with a large number of pdbs
18018515
12.2.0.0
high cpu in qcthasfakebind (can cause 'cursor: pin s wait on x' waits)
16448569
11.2.0.4, 12.1.0.2, 12.2.0.0
pq hang/deadlock possible - cursor: pin s wait on x waits
16400122
12.2.0.0
spikes in library cache mutex contention for sql using sql plan baseline
15850031
11.2.0.4, 12.2.0.0
rare instance hang: deadlock between 'row cache lock' and 'cursor: pin s wait for x'
14469756
12.2.0.0
partition pruning causes delay in tbl$or$idx$part$num
14302813
11.2.0.4, 12.2.0.0
qc blocked / parse hang for parallel dml executed from remote stored procedure
14029891
11.2.0.4, 12.1.0.1
mutex deadlock having sql baselines on recursive dictionary cursor
11927619
11.2.0.1.bp11, 11.2.0.2.bp07, 11.2.0.3, 12.1.0.1
dbms_stats slow on interval composite partitions
11855965
11.2.0.3, 12.1.0.1
truncate partition takes long time doing recursive delete on mlog$
10213073
11.2.0.2.8, 11.2.0.2.bp18, 11.2.0.3, 12.1.0.1
create synonym and create package may incorrectly invalidate objects
10171273
11.2.0.2.8, 11.2.0.2.bp08, 11.2.0.3, 12.1.0.1
long parse time with non-equi subpartitioning under interval partitioning
9944129
11.2.0.1.bp12, 11.2.0.2, 12.1.0.1
sql not shared due to inst_drtld_mismatch with global transaction
9935787
11.2.0.3, 12.1.0.1
long parse time for large inlists - can cause 'cursor: pin s wait on x' waits
9694101
10.2.0.5.7, 11.2.0.2, 12.1.0.1
hang / deadlock between cursor: pin s wait on x and library cache lock involving dictionary objects
9499302
10.2.0.5.5, 11.1.0.7.7, 11.2.0.1.bp08, 11.2.0.2, 12.1.0.1
improve concurrent mutex request handling
9472669
11.2.0.1.bp12, 11.2.0.2, 12.1.0.1
'cursor: pin s wait on x' waits for invalid sql over db link
8508078
11.2.0.2, 12.1.0.1
contention from many concurrent bad sqls - superseded
12432089
11.2.0.3
library cache lock/cursor: pin s wait on x with parallel partition stats gathering
8441239
11.2.0.1
library cache lock waits if long running truncate in progress
8348464
11.1.0.7.2, 11.2.0.1
create synonym and create package may incorrectly invalidate objects
7234778
11.2.0.1
unnecessary cursor: pin s wait on x waits
5485914
10.2.0.4
mutex self deadlock on explain / trace of remote mapped sql
6143420
10.2.0.5, 11.1.0.6
deadlock involving row cache lock on dc_users and cursor: pin s wait on x
6011045
10.2.0.5.5
dbms_stats causes deadlock between 'cursor: pin s wait on x' and 'library cache lock'
7462072
10.2.0.4.3, 10.2.0.5
unnecessary cursor: pin s wait on x waits
5983020
10.2.0.4
mmon deadlock with user session executing alter user
7226463
10.2.0.5
execute immediate no releasing mutex or library cache pin
+
5907779
10.2.0.4
self deadlock hang on cursor: pin s wait on x (typically from dbms_stats)