The document contains details of SQL execution plans and statistics for queries run against tables A and B. It includes the execution plan details showing the operations performed at each step including table access methods and indexes used. It also shows statistics on the performance of the queries such as elapsed time, CPU time, number of executions and rows processed.
This paper describes the evolution of the Plan table and DBMSX_PLAN in 11g and some of the features that can be used to troubelshoot SQL performance effectively and efficiently.
On version 12c Oracle introduced new features to allow Adaptive optimizations: Adaptive Plans and Adaptive Statistics. After a quick presentation of concepts, this session will explore the interaction of these features with other performance management techniques using examples, like SPM and SQL profiles. Attendees will get an updated picture of tools available to troubleshoot performance issues, and how to get the most of these new features.
One of the most frustrating challenges many of us deal with is SQL performance regression caused by execution plan changes. Performance seems to take a nose-dive for no apparent reason and everyone scrambles to figure out what happened. Perhaps statistics changed, perhaps an instance parameter changed, perhaps indexes were added or dropped, or perhaps nothing identifiable has changed at all. Regardless of why it happens, the regression needs to be found and corrected quickly.
Karen Morton, Oracle ACE and Embarcadero's Scott Walz will guide you through plan stability strategies.
Watch this webinar on demand to learn:
- How to define and identify plan stability/instability issues
- How SQL profiles and SQL patches can be used to stabilize plans
- Limitations of SQL profiles and SQL patches
- How Oracle's SQL Plan Management features provide a broad solution for plan stability
Basic Query Tuning Primer - Pg West 2009mattsmiley
Intro to query tuning in Postgres, for beginners or intermediate software developers. Lists your basic toolkit, common problems, a series of examples. Assumes the audience knows basic SQL but has little or no experience with reading or adjusting execution plans. Accompanies 45-90 minute talk; meant to encourage Q/A.
Matt Smiley
This is a basic primer aimed primarily at developers or DBAs new to Postgres. The format is a Q/A style tour with examples, based on common questions and pitfalls. Begin with a quick tour of relevant parts of the postgres catalog, with an aim to answer simple but important questions like:
How many rows does the optimizer think my table has?
When was it last analyzed?
Which other tables also have a column named "foo"?
How often is this index used?
Similar to E34 : [JPOUG Presents] Oracle Database の隠されている様々な謎を解くセッション「なーんでだ?」再び @ db tech showcase 2015 Tokyo (20)
Climate Impact of Software Testing at Nordic Testing DaysKari Kakkonen
My slides at Nordic Testing Days 6.6.2024
Climate impact / sustainability of software testing discussed on the talk. ICT and testing must carry their part of global responsibility to help with the climat warming. We can minimize the carbon footprint but we can also have a carbon handprint, a positive impact on the climate. Quality characteristics can be added with sustainability, and then measured continuously. Test environments can be used less, and in smaller scale and on demand. Test techniques can be used in optimizing or minimizing number of tests. Test automation can be used to speed up testing.
Dr. Sean Tan, Head of Data Science, Changi Airport Group
Discover how Changi Airport Group (CAG) leverages graph technologies and generative AI to revolutionize their search capabilities. This session delves into the unique search needs of CAG’s diverse passengers and customers, showcasing how graph data structures enhance the accuracy and relevance of AI-generated search results, mitigating the risk of “hallucinations” and improving the overall customer journey.
How to Get CNIC Information System with Paksim Ga.pptxdanishmna97
Pakdata Cf is a groundbreaking system designed to streamline and facilitate access to CNIC information. This innovative platform leverages advanced technology to provide users with efficient and secure access to their CNIC details.
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionAggregage
Join Maher Hanafi, VP of Engineering at Betterworks, in this new session where he'll share a practical framework to transform Gen AI prototypes into impactful products! He'll delve into the complexities of data collection and management, model selection and optimization, and ensuring security, scalability, and responsible use.
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
Communications Mining Series - Zero to Hero - Session 1DianaGray10
This session provides introduction to UiPath Communication Mining, importance and platform overview. You will acquire a good understand of the phases in Communication Mining as we go over the platform with you. Topics covered:
• Communication Mining Overview
• Why is it important?
• How can it help today’s business and the benefits
• Phases in Communication Mining
• Demo on Platform overview
• Q/A
Sudheer Mechineni, Head of Application Frameworks, Standard Chartered Bank
Discover how Standard Chartered Bank harnessed the power of Neo4j to transform complex data access challenges into a dynamic, scalable graph database solution. This keynote will cover their journey from initial adoption to deploying a fully automated, enterprise-grade causal cluster, highlighting key strategies for modelling organisational changes and ensuring robust disaster recovery. Learn how these innovations have not only enhanced Standard Chartered Bank’s data infrastructure but also positioned them as pioneers in the banking sector’s adoption of graph technology.
Removing Uninteresting Bytes in Software FuzzingAftab Hussain
Imagine a world where software fuzzing, the process of mutating bytes in test seeds to uncover hidden and erroneous program behaviors, becomes faster and more effective. A lot depends on the initial seeds, which can significantly dictate the trajectory of a fuzzing campaign, particularly in terms of how long it takes to uncover interesting behaviour in your code. We introduce DIAR, a technique designed to speedup fuzzing campaigns by pinpointing and eliminating those uninteresting bytes in the seeds. Picture this: instead of wasting valuable resources on meaningless mutations in large, bloated seeds, DIAR removes the unnecessary bytes, streamlining the entire process.
In this work, we equipped AFL, a popular fuzzer, with DIAR and examined two critical Linux libraries -- Libxml's xmllint, a tool for parsing xml documents, and Binutil's readelf, an essential debugging and security analysis command-line tool used to display detailed information about ELF (Executable and Linkable Format). Our preliminary results show that AFL+DIAR does not only discover new paths more quickly but also achieves higher coverage overall. This work thus showcases how starting with lean and optimized seeds can lead to faster, more comprehensive fuzzing campaigns -- and DIAR helps you find such seeds.
- These are slides of the talk given at IEEE International Conference on Software Testing Verification and Validation Workshop, ICSTW 2022.
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
Securing your Kubernetes cluster_ a step-by-step guide to success !KatiaHIMEUR1
Today, after several years of existence, an extremely active community and an ultra-dynamic ecosystem, Kubernetes has established itself as the de facto standard in container orchestration. Thanks to a wide range of managed services, it has never been so easy to set up a ready-to-use Kubernetes cluster.
However, this ease of use means that the subject of security in Kubernetes is often left for later, or even neglected. This exposes companies to significant risks.
In this talk, I'll show you step-by-step how to secure your Kubernetes cluster for greater peace of mind and reliability.
UiPath Test Automation using UiPath Test Suite series, part 5DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 5. In this session, we will cover CI/CD with devops.
Topics covered:
CI/CD with in UiPath
End-to-end overview of CI/CD pipeline with Azure devops
Speaker:
Lyndsey Byblow, Test Suite Sales Engineer @ UiPath, Inc.
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofsAlex Pruden
This paper presents Reef, a system for generating publicly verifiable succinct non-interactive zero-knowledge proofs that a committed document matches or does not match a regular expression. We describe applications such as proving the strength of passwords, the provenance of email despite redactions, the validity of oblivious DNS queries, and the existence of mutations in DNA. Reef supports the Perl Compatible Regular Expression syntax, including wildcards, alternation, ranges, capture groups, Kleene star, negations, and lookarounds. Reef introduces a new type of automata, Skipping Alternating Finite Automata (SAFA), that skips irrelevant parts of a document when producing proofs without undermining soundness, and instantiates SAFA with a lookup argument. Our experimental evaluation confirms that Reef can generate proofs for documents with 32M characters; the proofs are small and cheap to verify (under a second).
Paper: https://eprint.iacr.org/2023/1886
Essentials of Automations: The Art of Triggers and Actions in FMESafe Software
In this second installment of our Essentials of Automations webinar series, we’ll explore the landscape of triggers and actions, guiding you through the nuances of authoring and adapting workspaces for seamless automations. Gain an understanding of the full spectrum of triggers and actions available in FME, empowering you to enhance your workspaces for efficient automation.
We’ll kick things off by showcasing the most commonly used event-based triggers, introducing you to various automation workflows like manual triggers, schedules, directory watchers, and more. Plus, see how these elements play out in real scenarios.
Whether you’re tweaking your current setup or building from the ground up, this session will arm you with the tools and insights needed to transform your FME usage into a powerhouse of productivity. Join us to discover effective strategies that simplify complex processes, enhancing your productivity and transforming your data management practices with FME. Let’s turn complexity into clarity and make your workspaces work wonders!
5.
5
COLUMN_NAME DATA_TYPE
-------------------- ------------
ID NUMBER
DATA1 VARCHAR2
DATA2 VARCHAR2
INDEX_NAME COLUMN_NAME DESC
-------------------- ------------ ----
PK_A ID ASC
COLUMN_NAME DATA_TYPE
-------------------- ----------------
ID NUMBER
BR# NUMBER
DATA1 VARCHAR2
DATA2 VARCHAR2
INDEX_NAME COLUMN_NAME DESC
-------------------- --------------- ----
PK_B ID ASC
PK_B BR# ASC
TABLE_NAME NUM_ROWS
----------------- ----------
A 100
B 300
⬇
6. ∼
6
SELECT
/*+
LEADING(a b)
USE_NL(a b)
*/
a.id
,b.br#
,SUBSTR(a.data1, 10) AS a_data1
,SUBSTR(b.data1, 10) AS b_data1
FROM
a INNER JOIN b
ON
a.id = b.id
WHERE
a.id BETWEEN 1 AND 5
ORDER BY
a.id
,b.br#;
SELECT
/*+
LEADING(b a)
USE_NL(b a)
*/
a.id
,b.br#
,SUBSTR(a.data1, 10) AS a_data1
,SUBSTR(b.data1, 10) AS b_data1
FROM
a INNER JOIN b
ON
a.id = b.id
WHERE
a.id BETWEEN 1 AND 5
ORDER BY
a.id
,b.br#;
⬆
?⏬
20. 15
接続されました。
1 declare
2 cursor cs_foobar is
3 select
4 rowid
5 from
6 foobar
7 where
8 id between 1 and 100000
9 order by
10 dbms_rowid.rowid_block_number(rowid)
11 for update;
12 begin
13 for row in cs_foobar loop
14 update foobar
15 set
16 a = lpad('y',1795,'y')
17 where
18 rowid = row.rowid;
19 end loop;
20 commit;
21* end;
PL/SQLプロシージャが正常に完了しました。
経過: 00:03:03.40
21. 15
接続されました。
1 declare
2 cursor cs_foobar is
3 select
4 rowid
5 from
6 foobar
7 where
8 id between 1 and 100000
9 order by
10 dbms_rowid.rowid_block_number(rowid)
11 for update;
12 begin
13 for row in cs_foobar loop
14 update foobar
15 set
16 a = lpad('y',1795,'y')
17 where
18 rowid = row.rowid;
19 end loop;
20 commit;
21* end;
PL/SQLプロシージャが正常に完了しました。
経過: 00:03:03.40
22. 16
SQL ordered by Executions DB/Inst: NONPDB12/nonpdb12c Snaps: 21-31
-> End Executions Threshold: 100 Total Executions: 122,051
-> Captured SQL accounts for 16.1% of Total Executions
-> SQL reported below exceeded 1.0% of Total Executions
CPU per Elap per Old
Executions Rows Processed Rows per Exec Exec (s) Exec (s) Hash Value
------------ --------------- ---------------- ----------- ---------- ----------
6,107 5,129 0.8 0.00 0.00 4274598960
select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, tim
estamp#, sample_size, minimum, maximum, distcnt, lowval, hival,
density, col#, spare1, spare2, avgcln from hist_head$ where obj#
=:1 and intcol#=:2
2,656 41,093 15.5 0.00 0.00 343569411
select /*+ rule */ bucket, endpoint, col#, epvalue, epvalue_raw,
ep_repeat_count from histgrm$ where obj#=:1 and intcol#=:2 and
row#=:3 order by bucket
1,858 2,747 1.5 0.00 0.00 2482976222
select intcol#,nvl(pos#,0),col#,nvl(spare1,0) from ccol$ where c
on#=:1
23. 16
SQL ordered by Executions DB/Inst: NONPDB12/nonpdb12c Snaps: 21-31
-> End Executions Threshold: 100 Total Executions: 122,051
-> Captured SQL accounts for 16.1% of Total Executions
-> SQL reported below exceeded 1.0% of Total Executions
CPU per Elap per Old
Executions Rows Processed Rows per Exec Exec (s) Exec (s) Hash Value
------------ --------------- ---------------- ----------- ---------- ----------
6,107 5,129 0.8 0.00 0.00 4274598960
select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, tim
estamp#, sample_size, minimum, maximum, distcnt, lowval, hival,
density, col#, spare1, spare2, avgcln from hist_head$ where obj#
=:1 and intcol#=:2
2,656 41,093 15.5 0.00 0.00 343569411
select /*+ rule */ bucket, endpoint, col#, epvalue, epvalue_raw,
ep_repeat_count from histgrm$ where obj#=:1 and intcol#=:2 and
row#=:3 order by bucket
1,858 2,747 1.5 0.00 0.00 2482976222
select intcol#,nvl(pos#,0),col#,nvl(spare1,0) from ccol$ where c
on#=:1
CPU per Elap per Old
Executions Rows Processed Rows per Exec Exec (s) Exec (s) Hash Value
------------ --------------- ---------------- ----------- ---------- ----------
100,000 100,000 1.0 0.00 0.00 3389821460
Module: SQL*Plus
UPDATE FOOBAR SET A = LPAD('y',1795,'y') WHERE ROWID = :B1
24. 16
SQL ordered by Executions DB/Inst: NONPDB12/nonpdb12c Snaps: 21-31
-> End Executions Threshold: 100 Total Executions: 122,051
-> Captured SQL accounts for 16.1% of Total Executions
-> SQL reported below exceeded 1.0% of Total Executions
CPU per Elap per Old
Executions Rows Processed Rows per Exec Exec (s) Exec (s) Hash Value
------------ --------------- ---------------- ----------- ---------- ----------
6,107 5,129 0.8 0.00 0.00 4274598960
select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, tim
estamp#, sample_size, minimum, maximum, distcnt, lowval, hival,
density, col#, spare1, spare2, avgcln from hist_head$ where obj#
=:1 and intcol#=:2
2,656 41,093 15.5 0.00 0.00 343569411
select /*+ rule */ bucket, endpoint, col#, epvalue, epvalue_raw,
ep_repeat_count from histgrm$ where obj#=:1 and intcol#=:2 and
row#=:3 order by bucket
1,858 2,747 1.5 0.00 0.00 2482976222
select intcol#,nvl(pos#,0),col#,nvl(spare1,0) from ccol$ where c
on#=:1
27. 19
⏩
STATSPACK report for
Load Profile
Instance Efficiency Indicators
Top 5 Timed Event
Instance CPU
Memory Statistics
Statistic
Foreground Wait Events
Background Wait Events
Wait Events (fg and bg)
Wait Event Histogram
SQL ordered by CPU
SQL ordered by Gets
SQL ordered by Executions
SQL ordered by Parse Calls
Instance Activity Stats
OS Statistics
IO Stat by Function - summary/detail
Tablespace IO Stats
File IO Stats
File Read Histogram Stats
IO Stats Function Detail
Instance Recovery Stats
Memory Dynamic Components
Memory Resize Operations
Buffer Pool Advisory
Buffer Pool Statistics
PGA Aggr Target Stats
PGA Aggr Target Histogram
PGA Memory Advisory
Process Memory Summary Stats
Shared Pool Advisory
Cache Size Changes
SGA Target Advisory
SGA breakdown difference
init.ora Parameters
28. 20
STATSPACK report for
Database DB Id Instance Inst Num Startup Time Release RAC
~~~~~~~~ ----------- ------------ -------- --------------- ----------- ---
4044466261 nonpdb12c 1 31-5月 -15 22:0 12.1.0.2.0 NO
3
Host Name Platform CPUs Cores Sockets Memory (G)
~~~~ ---------------- ---------------------- ----- ----- ------- ------------
foobar Linux x86 64-bit 4 4 1 7.9
Snapshot Snap Id Snap Time Sessions Curs/Sess Comment
~~~~~~~~ ---------- ------------------ -------- --------- ------------------
Begin Snap: 83 31-5月 -15 22:05:54 32 .9
End Snap: 93 31-5月 -15 22:08:53 31 .9
Elapsed: 2.98 (mins) Av Act Sess: 1.0
DB time: 2.95 (mins) DB CPU: 0.96 (mins) ⬆
29. 21
Cache Sizes Begin End
~~~~~~~~~~~ ---------- ----------
Buffer Cache: 532M 524M Std Block Size: 8K
Shared Pool: 172M 180M Log Buffer: 7,432K
Load Profile Per Second Per Transaction Per Exec Per Call
~~~~~~~~~~~~ ------------------ ----------------- ----------- -----------
DB time(s): 1.0 22.1 0.00 3.28
DB CPU(s): 0.3 7.2 0.00 1.06
Redo size: 2,380,617.8 53,266,323.0
Logical reads: 3,113.7 69,668.9
Block changes: 2,952.4 66,059.1
Physical reads: 2,037.4 45,586.9
Physical writes: 1,575.3 35,247.9
User calls: 0.3 6.8
Parses: 9.3 208.8
Hard parses: 2.3 50.9
W/A MB processed: 0.3 6.2
Logons: 0.1 1.1
Executes: 611.5 13,682.0
Rollbacks: 0.0 0.0
Transactions: 0.0
⬆
30. 22
Instance Efficiency Indicators
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Buffer Nowait %: 100.00 Redo NoWait %: 100.00
Buffer Hit %: 34.57 Optimal W/A Exec %: 100.00
Library Hit %: 97.70 Soft Parse %: 75.63
Execute to Parse %: 98.47 Latch Hit %: 99.99
Parse CPU to Parse Elapsd %: 98.61 % Non-Parse CPU: 97.60
Shared Pool Statistics Begin End
------ ------
Memory Usage %: 89.03 91.18
% SQL with executions>1: 77.86 79.00
% Memory for SQL w/exec>1: 75.17 78.51
⬆
31. 23
Top 5 Timed Events Avg %Total
~~~~~~~~~~~~~~~~~~ wait Call
Event Waits Time (s) (ms) Time
----------------------------------------- ------------ ----------- ------ ------
LGWR worker group idle 432 478 1105 35.1
lreg timer 63 180 2860 13.2
AQPC idle 6 180 30005 13.2
heartbeat redo informer 179 179 1000 13.2
db file sequential read 200,834 135 1 9.9
-------------------------------------------------------------
Host CPU (CPUs: 4 Cores: 4 Sockets: 1)
~~~~~~~~ Load Average
Begin End User System Idle WIO WCPU
------- ------- ------- ------- ------- ------- --------
0.10 1.02 6.68 2.71 90.44 14.26
Note: There is a 6% discrepancy between the OS Stat total CPU time and
the total CPU time estimated by Statspack
OS Stat CPU time: 675(s) (BUSY_TIME + IDLE_TIME)
Statspack CPU time: 716(s) (Elapsed time * num CPUs in end snap)
⬆
32. 24
Instance CPU
~~~~~~~~~~~~ % Time (seconds)
-------- --------------
Host: Total time (s): 675.4
Host: Busy CPU time (s): 64.6
% of time Host is Busy: 9.6
Instance: Total CPU time (s): 64.0
% of Busy CPU used for Instance: 99.1
Instance: Total Database time (s): 204.2
%DB time waiting for CPU (Resource Mgr): 0.0
Memory Statistics Begin End
~~~~~~~~~~~~~~~~~ ------------ ------------
Host Mem (MB): 8,040.8 8,040.8
SGA use (MB): 768.0 768.0
PGA use (MB): 88.2 90.2
% Host Mem used for SGA+PGA: 10.6 10.7
-------------------------------------------------------------
⬆
33. 25
Statistic Time (s) % DB time
----------------------------------- -------------------- ---------
sql execute elapsed time 177.0 100.0
DB CPU 57.4 32.4
PL/SQL execution elapsed time 3.5 2.0
parse time elapsed 1.9 1.1
hard parse elapsed time 1.9 1.1
connection management call elapsed 0.1 .1
repeated bind elapsed time 0.0 .0
PL/SQL compilation elapsed time 0.0 .0
sequence load elapsed time 0.0 .0
DB time 177.1
background elapsed time 27.1
background cpu time 6.6
-------------------------------------------------------------
⬆
34. 26
Foreground Wait Events
-> Only events with Total Wait Time (s) >= .001 are shown
-> ordered by Total Wait Time desc, Waits desc (idle events last)
Avg %Total
%Tim Total Wait wait Waits Call
Event Waits out Time (s) (ms) /txn Time
---------------------------- ------------ ---- ---------- ------ -------- ------
db file sequential read 200,794 0 135 1 ######## 9.9
db file scattered read 1,516 0 8 5 189.5 .6
log file switch completion 4 0 0 24 0.5 .0
control file sequential read 266 0 0 0 33.3 .0
log file switch (private str 2 0 0 23 0.3 .0
log file sync 3 0 0 2 0.4 .0
reliable message 10 0 0 0 1.3 .0
Disk file operations I/O 8 0 0 0 1.0 .0
SQL*Net message from client 26 0 0 1 3.3
------------------------------------------------------------- ⬆
35. 27
Background Wait Events
-> Only events with Total Wait Time (s) >= .001 are shown
-> ordered by Total Wait Time desc, Waits desc (idle events last)
Avg %Total
%Tim Total Wait wait Waits Call
Event Waits out Time (s) (ms) /txn Time
---------------------------- ------------ ---- ---------- ------ -------- ------
LGWR worker group idle 432 0 478 1105 54.0 35.1
lreg timer 63 95 180 2860 7.9 13.2
AQPC idle 6 100 180 30005 0.8 13.2
heartbeat redo informer 179 0 179 1000 22.4 13.2
Streams AQ: load balancer id 1 100 120 ###### 0.1 8.8
db file parallel write 2,179 0 16 7 272.4 1.2
log file parallel write 430 0 4 9 53.8 .3
db file async I/O submit 1,119 0 1 1 139.9 .1
control file parallel write 151 0 0 3 18.9 .0
control file sequential read 453 0 0 1 56.6 .0
oracle thread bootstrap 7 0 0 18 0.9 .0
Parameter File I/O 16 0 0 3 2.0 .0
db file sequential read 40 0 0 1 5.0 .0
target log write size 2 100 0 10 0.3 .0
direct path write 6 0 0 2 0.8 .0
log file single write 10 0 0 1 1.3 .0
os thread creation 7 0 0 1 0.9 .0
direct path read 5 0 0 1 0.6 .0
Disk file operations I/O 27 0 0 0 3.4 .0
log file sequential read 10 0 0 0 1.3 .0
LGWR all worker groups 5 0 0 0 0.6 .0 ⬆
36. 28
Wait Events (fg and bg)
-> s - second, cs - centisecond, ms - millisecond, us - microsecond
-> %Timeouts: value of 0 indicates value was < .5%. Value of null is truly 0
-> Only events with Total Wait Time (s) >= .001 are shown
-> ordered by Total Wait Time desc, Waits desc (idle events last)
Avg %Total
%Tim Total Wait wait Waits Call
Event Waits out Time (s) (ms) /txn Time
---------------------------- ------------ ---- ---------- ------ -------- ------
LGWR worker group idle 432 0 478 1105 54.0 35.1
lreg timer 63 95 180 2860 7.9 13.2
AQPC idle 6 100 180 30005 0.8 13.2
heartbeat redo informer 179 0 179 1000 22.4 13.2
db file sequential read 200,834 0 135 1 ######## 9.9
Streams AQ: load balancer id 1 100 120 ###### 0.1 8.8
db file parallel write 2,179 0 16 7 272.4 1.2
db file scattered read 1,516 0 8 5 189.5 .6
log file parallel write 430 0 4 9 53.8 .3
db file async I/O submit 1,119 0 1 1 139.9 .1
control file parallel write 151 0 0 3 18.9 .0
control file sequential read 719 0 0 0 89.9 .0
oracle thread bootstrap 7 0 0 18 0.9 .0
log file switch completion 4 0 0 24 0.5 .0
log file switch (private str 2 0 0 23 0.3 .0
Parameter File I/O 16 0 0 3 2.0 .0
target log write size 2 100 0 10 0.3 .0
direct path write 6 0 0 2 0.8 .0
log file single write 10 0 0 1 1.3 .0
os thread creation 7 0 0 1 0.9 .0
direct path read 5 0 0 1 0.6 .0
Disk file operations I/O 35 0 0 0 4.4 .0
log file sync 3 0 0 2 0.4 .0
log file sequential read 10 0 0 0 1.3 .0
reliable message 10 0 0 0 1.3 .0
LGWR all worker groups 5 0 0 0 0.6 .0
⬆
37. 29
Wait Event Histogram
-> Total Waits - units: K is 1000, M is 1000000, G is 1000000000
-> % of Waits - column heading: <=1s is truly <1024ms, >1s is truly >=1024ms
-> % of Waits - value: .0 indicates value was <.05%, null is truly 0
-> Ordered by Event (idle events last)
Total ----------------- % of Waits ------------------
Event Waits <1ms <2ms <4ms <8ms <16ms <32ms <=1s >1s
-------------------------- ----- ----- ----- ----- ----- ----- ----- ----- -----
AQPC idle 6 100.0
Disk file operations I/O 35 97.1 2.9
LGWR all worker groups 5 100.0
LGWR worker group idle 432 .5 90.7 8.8
Parameter File I/O 16 62.5 12.5 6.3 18.8
Streams AQ: load balancer 1 100.0
asynch descriptor resize 19 100.0
control file parallel writ 151 46.4 46.4 2.0 5.3
control file sequential re 719 96.1 2.1 .8 .1 .7 .1
db file async I/O submit 1119 78.9 16.5 3.1 .7 .5 .1 .1
db file parallel write 2179 42.5 2.5 3.3 3.6 37.4 10.7
db file scattered read 1516 34.4 14.7 1.6 28.4 11.9 9.0
db file sequential read 200K 94.4 4.7 .4 .2 .3 .0
direct path read 5 60.0 40.0
direct path write 6 50.0 50.0
heartbeat redo informer 179 100.0
latch free 1 100.0
latch: cache buffers lru c 1 100.0
latch: shared pool 5 100.0
log file parallel write 430 1.4 .7 41.6 53.7 2.6
log file sequential read 10 100.0
log file single write 10 70.0 30.0
log file switch (private s 2 100.0
log file switch completion 4 100.0
log file sync 3 33.3 66.7
lreg timer 63 4.8 95.2
oracle thread bootstrap 7 14.3 85.7
SQL*Net message to client 32 100.0
⬆
38. 30
SQL ordered by CPU
-> Total DB CPU (s): 57
-> Captured SQL accounts for 3.1% of Total DB CPU
-> SQL reported below exceeded 1.0% of Total DB CPU
CPU CPU per Elapsd Old
Time (s) Executions Exec (s) %Total Time (s) Buffer Gets Hash Value
---------- ------------ ---------- ------ ---------- --------------- ----------
1.02 1 1.02 1.8 1.10 13,200 4269626113
Module: SQL*Plus
BEGIN :snap# := statspack.snap(i_snap_level=>7); END;
⬆
39. 31
SQL ordered by Gets
-> End Buffer Gets Threshold: 10000 Total Buffer Gets: 557,351
-> Captured SQL accounts for 5.8% of Total Buffer Gets
-> SQL reported below exceeded 1.0% of Total Buffer Gets
CPU Elapsd Old
Buffer Gets Executions Gets per Exec %Total Time (s) Time (s) Hash Value
--------------- ------------ -------------- ------ -------- --------- ----------
13,200 1 13,200.0 2.4 1.02 1.10 4269626113
Module: SQL*Plus
BEGIN :snap# := statspack.snap(i_snap_level=>7); END;
7,130 2,399 3.0 1.3 0.12 0.16 4274598960
select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, tim
estamp#, sample_size, minimum, maximum, distcnt, lowval, hival,
density, col#, spare1, spare2, avgcln from hist_head$ where obj#
=:1 and intcol#=:2
⬆
40. 32
SQL ordered by Executions
-> End Executions Threshold: 100 Total Executions: 109,456
-> Captured SQL accounts for 7.7% of Total Executions
-> SQL reported below exceeded 1.0% of Total Executions
CPU per Elap per Old
Executions Rows Processed Rows per Exec Exec (s) Exec (s) Hash Value
------------ --------------- ---------------- ----------- ---------- ----------
2,399 2,327 1.0 0.00 0.00 4274598960
select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, tim
estamp#, sample_size, minimum, maximum, distcnt, lowval, hival,
density, col#, spare1, spare2, avgcln from hist_head$ where obj#
=:1 and intcol#=:2
⬆
41. 33
SQL ordered by Parse Calls
-> End Parse Calls Threshold: 1000 Total Parse Calls: 1,670
-> Captured SQL accounts for 69.0% of Total Parse Calls
-> SQL reported below exceeded 1.0% of Total Parse Calls
% Total Old
Parse Calls Executions Parses Hash Value
------------ ------------ -------- ----------
210 210 12.57 2018736380
select timestamp, flags from fixed_obj$ where obj#=:1
139 139 8.32 1198893840
select order#,columns,types from access$ where d_obj#=:1
139 139 8.32 2824870641
select owner#,name,namespace,remoteowner,linkname,p_timestamp,p_
obj#, nvl(property,0),subname,type#,flags,d_attrs from dependenc
y$ d, obj$ o where d_obj#=:1 and p_obj#=obj#(+) order by order#
117 117 7.01 4118814203
select decode(u.type#, 2, u.ext_username, u.name), o.name,
t.update$, t.insert$, t.delete$, t.enabled, decode(bita
nd(t.property, 8192),8192, 1, 0), decode(bitand(t.propert
y, 65536), 65536, 1, 0), decode(bitand(t.property, 131072)
112 112 6.71 1512023764
select obj#, name, stab#, sobj#, sobjd#, ttab#, tobj#, tobjd#, m
flags from rmtab$ where (stab# = :1 or ttab# = :1) order by obj#
⬆
42. 34
Instance Activity Stats
Statistic Total per Second per Trans
--------------------------------- ------------------ -------------- ------------
rollback changes - undo records a 0 0.0 0.0
rollbacks only - consistent read 0 0.0 0.0
rows fetched via callback 678 3.8 84.8
session connect time 180 1.0 22.5
session cursor cache hits 43,551 243.3 5,443.9
session logical reads 557,351 3,113.7 69,668.9
session pga memory 2,362,616 13,199.0 295,327.0
session pga memory max 1,576,184 8,805.5 197,023.0
session uga memory 400,216 2,235.8 50,027.0
session uga memory max 21,289,200 118,934.1 2,661,150.0
shared hash latch upgrades - no w 160 0.9 20.0
shared io pool buffer get success 0 0.0 0.0
sorts (memory) 2,984 16.7 373.0
sorts (rows) 127,277 711.0 15,909.6
sql area evicted 218 1.2 27.3
sql area purged 0 0.0 0.0
summed dirty queue length 415,865 2,323.3 51,983.1
switch current to new buffer 3 0.0 0.4
⬆
44. 36
IO Stat by Function - summary
->Data Volume values suffixed with M,G,T,P are in multiples of 1024,
other values suffixed with K,M,G,T,P are in multiples of 1000
->ordered by Data Volume (Read+Write) desc
---------- Read --------- --------- Write -------- --- Wait ----
Data Requests Data Data Requests Data Avg
Function Volume /sec Vol/sec Volume /sec Vol/sec Count Tm(ms)
--------------- ------ -------- -------- ------ -------- -------- ------ ------
Buffer Cache Re 2849M 1130.3 15.9M 202K 0.0
LGWR 1M .3 .0M 423M 4.7 2.4M 552 0.0
Others 10M 3.8 .1M 3M 1.2 .0M 789 0.0
Direct Reads 1M .1 .0M .0 0.0
Direct Writes .0 .1 0.0
-------------------------------------------------------------
IO Stat by Function - detail
->ordered by Data Volume (Read+Write) desc
----------- Read ---------- ----------- Write ---------
Small Large Small Large Small Large Small Large
Read Read Data Data Write Write Data Data
Function Reqs Reqs Read Read Reqs Reqs Writn Writn
------------------ ------ ------ ------ ------ ------ ------ ------ ------
Buffer Cache Reads 201K 1436 1575M 1274M
LGWR 62 1M 332 513 5M 418M
Others 677 10M 214 3M
Direct Reads 19 1M 2
Direct Writes 2 19
-------------------------------------------------------------
⬆
46. 38
File IO Stats
->Mx Rd Bkt: Max bucket time for single block read
->ordered by Tablespace, File
Tablespace Filename
------------------------ ----------------------------------------------------
Av Mx Av
Av Rd Rd Av Av Buffer BufWt
Reads Reads/s (ms) Bkt Blks/Rd Writes Writes/s Waits (ms)
-------------- ------- ----- --- ------- ------------ -------- ---------- ------
EXAMPLE /u01/oradata/nonpdb12c/example01.dbf
3 0 0.0 1.0 3 0 0
SYSAUX /u01/oradata/nonpdb12c/sysaux01.dbf
340 2 0.3 1 1.0 196 1 0
SYSTEM /u01/oradata/nonpdb12c/system01.dbf
478 3 0.4 1 1.0 28 0 0
UNDOTBS1 /u01/oradata/nonpdb12c/undotbs01.dbf
9 0 1.1 1 1.0 1,107 6 0
USERS /u01/oradata/nonpdb12c/users01.dbf
201,520 1,126 0.7 1 1.8 18,970 106 0
-------------------------------------------------------------
⬆
47. 39
File Read Histogram Stats
->Number of single block reads in each time range
->Tempfiles are not included
->ordered by Tablespace, File
Tablespace Filename
------------------------ ----------------------------------------------------
0 - 2 ms 2 - 4 ms 4 - 8 ms 8 - 16 ms 16 - 32 ms 32+ ms
------------ ------------ ------------ ------------ ------------ ------------
SYSAUX /u01/oradata/nonpdb12c/sysaux01.dbf
333 0 0 0 0 0
SYSTEM /u01/oradata/nonpdb12c/system01.dbf
459 0 0 0 0 0
UNDOTBS1 /u01/oradata/nonpdb12c/undotbs01.dbf
6 0 0 0 0 0
USERS /u01/oradata/nonpdb12c/users01.dbf
188,707 0 0 0 0 0
⬆
48. 40
IO Stats Function Detail
Small Small Large Large
Function FileType Read Write Read Write Wait Time
Name Name (MB) (MB) (MB) (MB) Waits (ms)
------------ ------------ ------- ------- ------- ------- --------- -----------
DBWR Control File 0 0 0 0 0 0
DBWR Data File 0 84 0 2117 0 0
LGWR Control File 1 2 0 0 52 26
LGWR Data File 0 0 0 0 0 0
LGWR Log File 0 3 0 418 20 15
LGWR Other(8) 0 0 0 0 480 3903
Streams AQ Data File 0 0 0 0 0 0
Buffer Cache Data File 1575 0 1274 0 202331 147785
Buffer Cache Other(8) 0 0 0 0 0 0
Direct Reads Data File 1 0 0 0 0 0
Others(14) Control File 10 3 0 0 671 272
Others(14) Data File 0 0 0 0 0 0
Others(14) Other(8) 0 0 0 0 102 296
Others(14) Parameter Fi 0 0 0 0 16 42
Others(14) External Tab 0 0 0 0 0 0
0 0 0 0 0 0 ⬆
49. 41
Instance Recovery Stats
-> B: Begin snapshot, E: End snapshot
Targt Estd Log File Log Ckpt Log Ckpt
MTTR MTTR Recovery Actual Target Size Timeout Interval
(s) (s) Estd IOs Redo Blks Redo Blks Redo Blks Redo Blks Redo Blks
- ----- ----- ---------- --------- --------- ---------- --------- ------------
B 0 8 424 3469 331776 331776
E 0 45 44244 287011 331776 331776
-------------------------------------------------------------
⬆
50. 42
Memory Dynamic Components
-> Op - memory resize Operation
-> Cache: D: Default, K: Keep, R: Recycle
-> Mode: DEF: DEFerred mode, IMM: IMMediate mode
Begin Snap End Snap Op Last Op
Cache Size (M) Size (M) Count Type/Mode Last Op Time
---------------------- ---------- -------- ------- ---------- ---------------
D:buffer cache 532 524 1 SHRINK/DEF 31-5月 22:05:5
7
PGA Target 768 0 STATIC
SGA Target 768 0 STATIC
Shared IO Pool 28 0 GROW/IMM 31-5月 22:03:5
5
java pool 4 0 STATIC
large pool 20 0 SHRINK/DEF 31-5月 22:04:2
7
shared pool 172 180 1 GROW/DEF 31-5月 22:05:5
7 ⬆
51. 43
Memory Resize Operations
-> Status: ERR: ERRor, COM: COMplete, PEN: PENding
-> Delta - Target change in size (MB)
-> Num Ops - number of identical Operations initiated concurrently
Elap Init Delta(M) Final Num
Start Time (s) Cache Size(M) & Mode Size(M) Sta Ops
------------- ----- -------------- -------- --------- -------- --- -----
0531 22:05:57 0 D:buffer cache 532 -8 DEF 524 COM 1
0531 22:05:57 0 shared pool 172 +8 DEF 180 COM 1
-------------------------------------------------------------
⬆
52. 44
Buffer Pool Advisory
-> Only rows with estimated physical reads >0 are displayed
-> ordered by Pool, Block Size, Buffers For Estimate
Est
Phys Estimated Est
Size for Size Buffers Read Phys Reads Est Phys % dbtime
P Est (M) Factr (thousands) Factr (thousands) Read Time for Rds
--- -------- ----- ------------ ------ -------------- ------------ --------
D 52 .1 6 1.0 375 148 48.8
D 104 .2 13 1.0 374 147 48.5
D 156 .3 19 1.0 374 147 48.5
D 208 .4 25 1.0 374 147 48.5
D 260 .5 32 1.0 374 147 48.5
D 312 .6 38 1.0 374 147 48.5
D 364 .7 45 1.0 374 147 48.5
D 416 .8 51 1.0 374 147 48.5
D 468 .9 57 1.0 374 147 48.5
D 520 1.0 64 1.0 374 147 48.5
D 524 1.0 64 1.0 374 147 48.5
D 572 1.1 70 1.0 374 147 48.5
D 624 1.2 76 1.0 374 147 48.5
D 676 1.3 83 1.0 374 147 48.5
D 728 1.4 89 1.0 374 147 48.5
D 780 1.5 96 1.0 374 147 48.5
D 832 1.6 102 1.0 374 147 48.5
D 884 1.7 108 1.0 357 135 44.6
D 936 1.8 115 0.9 333 119 39.3
D 988 1.9 121 0.8 306 101 33.3
D 1,040 2.0 127 0.8 284 86 28.4 ⬆
53. 45
Buffer Pool Statistics
-> Standard block size Pools D: default, K: keep, R: recycle
-> Default Pools for other block sizes: 2k, 4k, 8k, 16k, 32k
-> Buffers: the number of buffers. Units of K, M, G are divided by 1000
Free Writ Buffer
Pool Buffer Physical Physical Buffer Comp Busy
P Buffers Hit% Gets Reads Writes Waits Wait Waits
--- ------- ---- -------------- ------------ ----------- ------- ---- ----------
D 64K 35 558,026 364,662 281,962 0 0 0
-------------------------------------------------------------
⬆
54. 46
PGA Aggr Target Stats
-> B: Begin snap E: End snap (rows identified with B or E contain data
which is absolute i.e. not diffed over the interval)
-> PGA cache hit % - percentage of W/A (WorkArea) data processed only in-memory
-> 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 Cache Hit % W/A MB Processed Extra W/A MB Read/Written
--------------- ---------------- -------------------------
100.0 49 0
%PGA %Auto %Man
PGA Aggr Auto PGA PGA Mem W/A PGA W/A W/A W/A Global Mem
Target(M) Target(M) Alloc(M) Used(M) Mem Mem Mem Bound(K)
- --------- --------- ---------- ---------- ------ ------ ------ ----------
B 768 647 88.2 0.0 .0 .0 .0 102,400
E 768 646 90.2 0.0 .0 .0 .0 102,400
------------------------------------------------------------- ⬆
56. 48
PGA Memory Advisory
-> When using Auto Memory Mgmt, minimally choose a pga_aggregate_target value
where Estd PGA Overalloc Count is 0
Estd Extra Estd
PGA Aggr W/A MB Estd Time PGA Estd PGA
Target Size W/A MB Read/Written to Process Cache Overalloc
Est (MB) Factr Processed to Disk Bytes (s) Hit % Count
---------- ------ -------------- -------------- ---------- ------ ----------
96 0.1 110 0 0.1 100.0 0
192 0.3 110 0 0.1 100.0 0
384 0.5 110 0 0.1 100.0 0
576 0.8 110 0 0.1 100.0 0
768 1.0 110 0 0.1 100.0 0
922 1.2 110 0 0.1 100.0 0
1,075 1.4 110 0 0.1 100.0 0
1,229 1.6 110 0 0.1 100.0 0
1,382 1.8 110 0 0.1 100.0 0
1,536 2.0 110 0 0.1 100.0 0
2,304 3.0 110 0 0.1 100.0 0
3,072 4.0 110 0 0.1 100.0 0
4,608 6.0 110 0 0.1 100.0 0
⬆
57. 49
Process Memory Summary Stats
-> 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
-> Num Procs or Allocs: For Begin/End snapshot lines, it is the number of
processes. For Category lines, it is the number of allocations
-> ordered by Begin/End snapshot, Alloc (MB) desc
Hist Num
Avg Std Dev Max Max Procs
Alloc Used Freeabl Alloc Alloc Alloc Alloc or
Category (MB) (MB) (MB) (MB) (MB) (MB) (MB) Allocs
- -------- --------- --------- -------- -------- ------- ------- ------ ------
B -------- 88.2 49.8 19.9 1.8 2.6 15 15 50
Other 66.5 1.3 1.7 11 11 50
Freeable 20.0 .0 1.5 1.9 7 13
SQL .9 .1 .1 .1 0 4 12
PL/SQL .8 .7 .0 .1 0 0 32
E -------- 90.3 50.9 19.8 1.8 2.8 15 15 49
Other 68.7 1.4 1.9 11 11 49
Freeable 19.8 .0 1.5 1.8 7 13
SQL .9 .2 .1 .1 0 3 11
PL/SQL .8 .7 .0 .1 0 0 31 ⬆
58. 50
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
Est LC Est LC Est LC Est LC
Shared SP Est LC Time Time Load Load Est LC
Pool Size Size Est LC Saved Saved Time Time Mem
Size (M) Factr (M) Mem Obj (s) Factr (s) Factr Obj Hits
---------- ----- -------- ------------ ------- ------ ------- ------ -----------
180 1.0 15 992 187 1.0 5 1.0 40,197
184 1.0 19 1,200 187 1.0 5 1.0 40,313
188 1.0 23 1,406 187 1.0 5 1.0 40,585
192 1.1 26 1,639 187 1.0 5 1.0 40,809
196 1.1 29 1,828 187 1.0 5 1.0 40,881
200 1.1 32 2,040 187 1.0 5 1.0 40,905
204 1.1 36 2,129 187 1.0 5 1.0 40,920
208 1.2 40 2,245 187 1.0 5 1.0 40,939
212 1.2 44 2,413 187 1.0 5 1.0 40,963
216 1.2 48 2,595 187 1.0 5 1.0 40,976
220 1.2 52 2,791 187 1.0 5 1.0 40,985
240 1.3 64 3,474 187 1.0 5 1.0 40,996
260 1.4 64 3,474 187 1.0 5 1.0 40,996
280 1.6 64 3,474 187 1.0 5 1.0 40,996
300 1.7 64 3,474 187 1.0 5 1.0 40,996
320 1.8 64 3,474 187 1.0 5 1.0 40,996
340 1.9 64 3,474 187 1.0 5 1.0 40,996
360 2.0 64 3,474 187 1.0 5 1.0 40,996
⬆
59. 51
Cache Size Changes
-> Not all cache size changes may be captured. Only cache changes which are
evident at snapshot time are shown
Snap Prior New Difference
Id Cache Size (MB) Size (MB) (MB)
------ ------------ --------- --------- ----------
93 Buffer Cache 532 524 -8
Shared Pool 172 180 8
——————————————————————————————
SGA Target Advisory
SGA Target SGA Size Est DB Est DB Est Physical
Size (M) Factor Time (s) Time Factor Reads
---------- -------- -------- ----------- --------------
192 .3 169 .6 344,392
384 .5 303 1.0 344,426
576 .8 303 1.0 344,426
768 1.0 303 1.0 344,392
960 1.3 303 1.0 344,392
1,152 1.5 276 .9 303,099
1,344 1.8 258 .9 276,788
1,536 2.0 258 .9 276,788 ⬆
60. 52
SGA breakdown difference
-> Top 35 rows by size, ordered by Pool, Name (note rows with null values for
Pool column, or Names showing free memory are always shown)
-> Null 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
------ ------------------------------ -------------- -------------- --------
shared ASH buffers 8.0 8.0 0.00
shared KCB Table Scan Buffer 3.8 3.8 0.00
shared KGLH0 3.6 5.7 56.14
shared KGLS 4.1 ########
shared KGLSG 5.0 5.0 0.00
shared KQR L PO 2.1 ########
shared KSFD SGA I/O b 3.8 3.8 0.00
shared KTI-UNDO 3.4 3.4 0.00
shared Multiblock Index SO 3.7 3.7 0.00
shared SGA - SWRF Metric CHBs 2.5 2.5 0.00
shared SQLA 2.1 4.9 133.58
shared db_block_hash_buckets 2.8 2.8 0.00
shared event statistics per sess 6.7 6.7 0.00
shared free memory 18.9 15.9 -15.84
shared imc buf hdl 2.2 2.2 0.00
shared row cache 8.2 8.2 0.00
shared write state object 2.7 2.7 0.00
buffer_cache 532.0 524.0 -1.50 ⬆
62. 54
CPU per Elap per Old
Executions Rows Processed Rows per Exec Exec (s) Exec (s) Hash Value
------------ --------------- ---------------- ----------- ---------- ----------
6,107 5,129 0.8 0.00 0.00 4274598960
select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, tim
estamp#, sample_size, minimum, maximum, distcnt, lowval, hival,
density, col#, spare1, spare2, avgcln from hist_head$ where obj#
=:1 and intcol#=:2
63. 54
CPU per Elap per Old
Executions Rows Processed Rows per Exec Exec (s) Exec (s) Hash Value
------------ --------------- ---------------- ----------- ---------- ----------
6,107 5,129 0.8 0.00 0.00 4274598960
select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, tim
estamp#, sample_size, minimum, maximum, distcnt, lowval, hival,
density, col#, spare1, spare2, avgcln from hist_head$ where obj#
=:1 and intcol#=:2
70. 59
Instance Activity Stats
Statistic Total per Second per Trans
--------------------------------- ------------------ -------------- ------------
・・・略・・・
CCursor + sql area evicted 682 3.7 68.2
・・・略・・・
sql area evicted 831 4.5 83.1
71. 59
Instance Activity Stats
Statistic Total per Second per Trans
--------------------------------- ------------------ -------------- ------------
・・・略・・・
CCursor + sql area evicted 682 3.7 68.2
・・・略・・・
sql area evicted 831 4.5 83.1
72. 60
Instance Activity Stats
Statistic Total per Second per Trans
--------------------------------- ------------------ -------------- ------------
・・・略・・・
CCursor + sql area evicted 682 3.7 68.2
・・・略・・・
sql area evicted 831 4.5 83.1
73. 61
Instance Activity Stats
Statistic Total per Second per Trans
--------------------------------- ------------------ -------------- ------------
・・・略・・・
CCursor + sql area evicted 682 3.7 68.2
・・・略・・・
sql area evicted 831 4.5 83.1
74. 62
Instance Activity Stats
Statistic Total per Second per Trans
--------------------------------- ------------------ -------------- ------------
・・・略・・・
CCursor + sql area evicted 682 3.7 68.2
・・・略・・・
sql area evicted 831 4.5 83.1
79. 67
SQL ordered by CPU DB/Inst: NONPDB12/nonpdb12c Snaps: 103-104
-> Total DB CPU (s): 59
-> Captured SQL accounts for 191.7% of Total DB CPU
-> SQL reported below exceeded 1.0% of Total DB CPU
CPU CPU per Elapsd Old
Time (s) Executions Exec (s) %Total Time (s) Buffer Gets Hash Value
---------- ------------ ---------- ------ ---------- --------------- ----------
57.11 1 57.11 96.0 183.84 520,249 985249325
Module: SQL*Plus
declare cursor cs_foobar is select
rowid from
foobar where id be
tween 1 and 100000 order by
27.03 100,000 0.00 45.4 84.33 153,711 3389821460
Module: SQL*Plus
UPDATE FOOBAR SET A = LPAD('y',1795,'y') WHERE ROWID = :B1
25.32 1 25.32 42.6 90.92 366,391 741139910
Module: SQL*Plus
SELECT ROWID FROM FOOBAR WHERE ID BETWEEN 1 AND 100000 ORDER BY
DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID) FOR UPDATE
87. 73
Top 10 Foreground Events by Total Wait Time
Enqueue Activity
Segments by Row Lock Waits
Top SQL with Top Events
Foreground Wait Events
Wait Event Histogram
Wait Event Histogram Detail (64 msec to 2 sec)
Wait Event Histogram Detail (4 sec to 2 min)
⏬
88. Top 10 Foreground Events by Total Wait Time
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Total Wait Wait % DB Wait
Event Waits Time (sec) Avg(ms) time Class
------------------------------ ----------- ---------- ---------- ------ --------
DB CPU 80.2 48.2
enq: TX - row lock contention 5,763 51.6 8.96 31.1 Applicat
resmgr:cpu quantum 420 1.8 4.38 1.1 Schedule
latch free 177 1.1 6.41 .7 Other
latch: enqueue hash chains 176 .7 3.92 .4 Other
log file switch (checkpoint in 37 .7 17.88 .4 Configur
log file sync 67 .4 6.65 .3 Commit
latch: shared pool 27 .2 7.72 .1 Concurre
Disk file operations I/O 45 .1 2.78 .1 User I/O
cursor: pin S 35 .1 2.30 .0 Concurre
・・・・・
74
⬆
89. 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)
------------ ------------ ----------- ----------- ------------ --------------
TX-Transaction (row lock contention)
5,758 5,765 0 5,763 53 9.16
HW-Segment High Water Mark
64 64 0 2 0 5.00
TM-DML
76,240 76,240 0 0 0 N/A
75
⬆
90. Segments by Row Lock Waits
-> % of Capture shows % of row lock waits for each top segment compared
-> with total row lock waits for all segments captured by the Snapshot
-> When ** MISSING ** occurs, some of the object attributes may not be available
Tablespace
Owner Name
-------------------- ----------
Row
Subobject Obj. Lock % of
Object Name Name Type Obj# Dataobj# Waits Capture
-------------------- ---------- ----- ---------- ---------- ------------ -------
SCOTT DBTS2014
LOCK_TABLE TABLE 96743 96743 5,748 100.00
------------------------------------------------------
76
⬆
91. 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
----------------------- -------------------- -------------------- --------------
% Row
Event % Event Top Row Source Source
------------------------------ ------- --------------------------------- -------
btxfn6y1htqsd 2069818805 6 61.54
enq: TX - row lock contention 38.46 UPDATE 38.46
UPDATE LOCK_TABLE SET STATUS=1 WHERE ID = :B1
CPU + Wait for CPU 23.08 UPDATE STATEMENT 15.38
・・・・
77
⬆
92. 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
Total
%Time Wait Avg Waits % DB
Event Waits -outs Time (s) wait (ms) /txn time
-------------------------- ----------- ----- -------- ---------- -------- ------
enq: TX - row lock content 5,763 52 8.96 0.1 31.1
resmgr:cpu quantum 420 2 4.38 0.0 1.1
latch free 177 1 6.41 0.0 .7
latch: enqueue hash chains 176 1 3.92 0.0 .4
・・・・・
78
⬆
93. 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
-----------------------------------------------
Total
Event Waits <1ms <2ms <4ms <8ms <16ms <32ms <=1s >1s
------------------------- ------ ----- ----- ----- ----- ----- ----- ----- -----
・・・・・
buffer busy waits 37 64.9 13.5 13.5 5.4 2.7
cursor: pin S 35 71.4 14.3 11.4 2.9
db file async I/O submit 17 17.6 29.4 47.1 5.9
db file parallel write 24 45.8 16.7 4.2 8.3 8.3 16.7
db file sequential read 183 76.0 14.8 8.7 .5
enq: TX - row lock conten 5763 26.4 22.6 23.4 17.4 8.0 2.0 .2 .0
・・・・・
79
⬆
94. Wait Event Histogram Detail (64 msec to 2 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
-----------------------------------------------
Waits
64ms
Event to 2s <32ms <64ms <1/8s <1/4s <1/2s <1s <2s >=2s
------------------------- ------ ----- ----- ----- ----- ----- ----- ----- -----
db file async I/O submit 1 94.1 5.9
enq: TX - row lock conten 12 99.8 .2 .0 .0
latch free 1 99.5 .5
log file parallel write 4 99.9 .1
log file sync 1 98.5 1.5
oracle thread bootstrap 3 50.0 16.7 16.7 16.7
------------------------------------------------------
80
⬆
95. Wait Event Histogram Detail (4 sec to 2 min)
-> Units for Total Waits column: K is 1000, M is 1000000, G is 1000000000
-> Units for % of Total Waits:
s is 1024 milliseconds (approximately 1 second)
m is 64*1024 milliseconds (approximately 67 seconds or 1.1 minutes)
-> % 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
-----------------------------------------------
Waits
4s
Event to 2m <2s <4s <8s <16s <32s < 1m < 2m >=2m
------------------------- ------ ----- ----- ----- ----- ----- ----- ----- -----
enq: TX - row lock conten 1 100.0 .0
------------------------------------------------------
81
⬆
96. 82
Top 10 Foreground Events by Total Wait Time
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Total Wait Wait % DB Wait
Event Waits Time (sec) Avg(ms) time Class
------------------------------ ----------- ---------- ---------- ------ --------
DB CPU 80.2 48.2
enq: TX - row lock contention 5,763 51.6 8.96 31.1 Applicat
resmgr:cpu quantum 420 1.8 4.38 1.1 Schedule
latch free 177 1.1 6.41 .7 Other
latch: enqueue hash chains 176 .7 3.92 .4 Other
log file switch (checkpoint in 37 .7 17.88 .4 Configur
log file sync 67 .4 6.65 .3 Commit
latch: shared pool 27 .2 7.72 .1 Concurre
Disk file operations I/O 45 .1 2.78 .1 User I/O
cursor: pin S 35 .1 2.30 .0 Concurre
・・・・・
Total Wait Wait % DB Wait
Event Waits Time (sec) Avg(ms) time Class
------------------------------ ----------- ---------- ---------- ------ --------
DB CPU 116.2 52.1
enq: TX - row lock contention 9,707 35.5 3.65 15.9 Applicat
resmgr:cpu quantum 3,051 16.7 5.46 7.5 Schedule
cursor: pin S wait on X 92 7.8 85.04 3.5 Concurre
db file sequential read 1,210 1.3 1.04 .6 User I/O
cursor: pin S 148 1.2 8.43 .6 Concurre
library cache load lock 125 1.2 9.86 .6 Concurre
・・・・・
97. 82
Top 10 Foreground Events by Total Wait Time
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Total Wait Wait % DB Wait
Event Waits Time (sec) Avg(ms) time Class
------------------------------ ----------- ---------- ---------- ------ --------
DB CPU 80.2 48.2
enq: TX - row lock contention 5,763 51.6 8.96 31.1 Applicat
resmgr:cpu quantum 420 1.8 4.38 1.1 Schedule
latch free 177 1.1 6.41 .7 Other
latch: enqueue hash chains 176 .7 3.92 .4 Other
log file switch (checkpoint in 37 .7 17.88 .4 Configur
log file sync 67 .4 6.65 .3 Commit
latch: shared pool 27 .2 7.72 .1 Concurre
Disk file operations I/O 45 .1 2.78 .1 User I/O
cursor: pin S 35 .1 2.30 .0 Concurre
・・・・・
Total Wait Wait % DB Wait
Event Waits Time (sec) Avg(ms) time Class
------------------------------ ----------- ---------- ---------- ------ --------
DB CPU 116.2 52.1
enq: TX - row lock contention 9,707 35.5 3.65 15.9 Applicat
resmgr:cpu quantum 3,051 16.7 5.46 7.5 Schedule
cursor: pin S wait on X 92 7.8 85.04 3.5 Concurre
db file sequential read 1,210 1.3 1.04 .6 User I/O
cursor: pin S 148 1.2 8.43 .6 Concurre
library cache load lock 125 1.2 9.86 .6 Concurre
・・・・・
98. 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)
------------ ------------ ----------- ----------- ------------ --------------
TX-Transaction (row lock contention)
5,758 5,765 0 5,763 53 9.16
HW-Segment High Water Mark
64 64 0 2 0 5.00
TM-DML
76,240 76,240 0 0 0 N/A
83
Enqueue Type (Request Reason)
------------------------------------------------------------------------------
Requests Succ Gets Failed Gets Waits Wt Time (s) Av Wt Time(ms)
------------ ------------ ----------- ----------- ------------ --------------
TX-Transaction (row lock contention)
9,704 9,714 0 9,706 37 3.82
SQ-Sequence Cache
3 3 0 2 0 5.00
99. Segments by Row Lock Waits
-> % of Capture shows % of row lock waits for each top segment compared
-> with total row lock waits for all segments captured by the Snapshot
-> When ** MISSING ** occurs, some of the object attributes may not be available
Tablespace
Owner Name
-------------------- ----------
Row
Subobject Obj. Lock % of
Object Name Name Type Obj# Dataobj# Waits Capture
-------------------- ---------- ----- ---------- ---------- ------------ -------
SCOTT DBTS2014
LOCK_TABLE TABLE 96743 96743 5,748 100.00
------------------------------------------------------
84
100. 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
----------------------- -------------------- -------------------- --------------
% Row
Event % Event Top Row Source Source
------------------------------ ------- --------------------------------- -------
btxfn6y1htqsd 2069818805 6 61.54
enq: TX - row lock contention 38.46 UPDATE 38.46
UPDATE LOCK_TABLE SET STATUS=1 WHERE ID = :B1
CPU + Wait for CPU 23.08 UPDATE STATEMENT 15.38
・・・・
85
101. 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
Total
%Time Wait Avg Waits % DB
Event Waits -outs Time (s) wait (ms) /txn time
-------------------------- ----------- ----- -------- ---------- -------- ------
enq: TX - row lock content 5,763 52 8.96 0.1 31.1
resmgr:cpu quantum 420 2 4.38 0.0 1.1
latch free 177 1 6.41 0.0 .7
latch: enqueue hash chains 176 1 3.92 0.0 .4
・・・・・
86
Total
%Time Wait Avg Waits % DB
Event Waits -outs Time (s) wait (ms) /txn time
-------------------------- ----------- ----- -------- ---------- -------- ------
enq: TX - row lock content 9,707 35 3.65 0.1 15.9
resmgr:cpu quantum 3,051 17 5.46 0.0 7.5
cursor: pin S wait on X 92 8 85.04 0.0 3.5
db file sequential read 1,210 1 1.04 0.0 .6
cursor: pin S 148 1 8.43 0.0 .6
102. 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
Total
%Time Wait Avg Waits % DB
Event Waits -outs Time (s) wait (ms) /txn time
-------------------------- ----------- ----- -------- ---------- -------- ------
enq: TX - row lock content 5,763 52 8.96 0.1 31.1
resmgr:cpu quantum 420 2 4.38 0.0 1.1
latch free 177 1 6.41 0.0 .7
latch: enqueue hash chains 176 1 3.92 0.0 .4
・・・・・
86
Total
%Time Wait Avg Waits % DB
Event Waits -outs Time (s) wait (ms) /txn time
-------------------------- ----------- ----- -------- ---------- -------- ------
enq: TX - row lock content 9,707 35 3.65 0.1 15.9
resmgr:cpu quantum 3,051 17 5.46 0.0 7.5
cursor: pin S wait on X 92 8 85.04 0.0 3.5
db file sequential read 1,210 1 1.04 0.0 .6
cursor: pin S 148 1 8.43 0.0 .6
103. 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
-----------------------------------------------
Total
Event Waits <1ms <2ms <4ms <8ms <16ms <32ms <=1s >1s
------------------------- ------ ----- ----- ----- ----- ----- ----- ----- -----
・・・・・
db file parallel write 24 45.8 16.7 4.2 8.3 8.3 16.7
db file sequential read 183 76.0 14.8 8.7 .5
enq: TX - row lock conten 5763 26.4 22.6 23.4 17.4 8.0 2.0 .2 .0
・・・・・
87
Event Waits <1ms <2ms <4ms <8ms <16ms <32ms <=1s >1s
------------------------- ------ ----- ----- ----- ----- ----- ----- ----- -----
・・・・・
db file scattered read 51 9.8 31.4 27.5 15.7 15.7
db file sequential read 1463 64.0 14.3 11.3 7.2 2.9 .3
enq: TX - row lock conten 9707 25.5 22.2 23.9 18.0 8.2 2.0 .2
・・・・・
104. 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
-----------------------------------------------
Total
Event Waits <1ms <2ms <4ms <8ms <16ms <32ms <=1s >1s
------------------------- ------ ----- ----- ----- ----- ----- ----- ----- -----
・・・・・
db file parallel write 24 45.8 16.7 4.2 8.3 8.3 16.7
db file sequential read 183 76.0 14.8 8.7 .5
enq: TX - row lock conten 5763 26.4 22.6 23.4 17.4 8.0 2.0 .2 .0
・・・・・
87
Event Waits <1ms <2ms <4ms <8ms <16ms <32ms <=1s >1s
------------------------- ------ ----- ----- ----- ----- ----- ----- ----- -----
・・・・・
db file scattered read 51 9.8 31.4 27.5 15.7 15.7
db file sequential read 1463 64.0 14.3 11.3 7.2 2.9 .3
enq: TX - row lock conten 9707 25.5 22.2 23.9 18.0 8.2 2.0 .2
・・・・・
105. Wait Event Histogram Detail (64 msec to 2 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
-----------------------------------------------
Waits
64ms
Event to 2s <32ms <64ms <1/8s <1/4s <1/2s <1s <2s >=2s
------------------------- ------ ----- ----- ----- ----- ----- ----- ----- -----
db file async I/O submit 1 94.1 5.9
enq: TX - row lock conten 12 99.8 .2 .0 .0
latch free 1 99.5 .5
log file parallel write 4 99.9 .1
log file sync 1 98.5 1.5
oracle thread bootstrap 3 50.0 16.7 16.7 16.7
------------------------------------------------------
88
Event to 2s <32ms <64ms <1/8s <1/4s <1/2s <1s <2s >=2s
------------------------- ------ ----- ----- ----- ----- ----- ----- ----- -----
cursor: pin S wait on X 48 47.8 12.0 21.7 3.3 15.2
enq: TX - row lock conten 22 99.8 .2 .0
library cache load lock 2 98.4 1.6
106. Wait Event Histogram Detail (64 msec to 2 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
-----------------------------------------------
Waits
64ms
Event to 2s <32ms <64ms <1/8s <1/4s <1/2s <1s <2s >=2s
------------------------- ------ ----- ----- ----- ----- ----- ----- ----- -----
db file async I/O submit 1 94.1 5.9
enq: TX - row lock conten 12 99.8 .2 .0 .0
latch free 1 99.5 .5
log file parallel write 4 99.9 .1
log file sync 1 98.5 1.5
oracle thread bootstrap 3 50.0 16.7 16.7 16.7
------------------------------------------------------
88
Event to 2s <32ms <64ms <1/8s <1/4s <1/2s <1s <2s >=2s
------------------------- ------ ----- ----- ----- ----- ----- ----- ----- -----
cursor: pin S wait on X 48 47.8 12.0 21.7 3.3 15.2
enq: TX - row lock conten 22 99.8 .2 .0
library cache load lock 2 98.4 1.6
107. Wait Event Histogram Detail (4 sec to 2 min)
-> Units for Total Waits column: K is 1000, M is 1000000, G is 1000000000
-> Units for % of Total Waits:
s is 1024 milliseconds (approximately 1 second)
m is 64*1024 milliseconds (approximately 67 seconds or 1.1 minutes)
-> % 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
-----------------------------------------------
Waits
4s
Event to 2m <2s <4s <8s <16s <32s < 1m < 2m >=2m
------------------------- ------ ----- ----- ----- ----- ----- ----- ----- -----
enq: TX - row lock conten 1 100.0 .0
------------------------------------------------------
89
Wait Event Histogram Detail (4 sec to 2 min)
No data exists for this section of the report.
------------------------------------------------------
108. Wait Event Histogram Detail (4 sec to 2 min)
-> Units for Total Waits column: K is 1000, M is 1000000, G is 1000000000
-> Units for % of Total Waits:
s is 1024 milliseconds (approximately 1 second)
m is 64*1024 milliseconds (approximately 67 seconds or 1.1 minutes)
-> % 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
-----------------------------------------------
Waits
4s
Event to 2m <2s <4s <8s <16s <32s < 1m < 2m >=2m
------------------------- ------ ----- ----- ----- ----- ----- ----- ----- -----
enq: TX - row lock conten 1 100.0 .0
------------------------------------------------------
89
Wait Event Histogram Detail (4 sec to 2 min)
No data exists for this section of the report.
------------------------------------------------------