Are you a monkey or an astronaut?
-
Upload
karen-morton -
Category
Technology
-
view
2.009 -
download
1
description
Transcript of Are you a monkey or an astronaut?
![Page 1: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/1.jpg)
Are you a monkey or an
astronaut?
The Oracle Advisors from
a different perspective.
Karen Morton [email protected]
![Page 2: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/2.jpg)
Your speaker…
• Karen Morton
– Educator, DBA, developer,
consultant, researcher, author, speaker, …
– Director
– Software, education, consulting
• Come see us…
– method-r.com
– karenmorton.blogspot.com
– An Oracle user group near you
Committed to genuinely satisfying software performance
![Page 3: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/3.jpg)
Agenda
• Introduction
• The “Self-Managing” Database
• Before and After
• What do we really want?
• When the Advisors mislead
• It takes human intelligence
• Conclusion
• Q&A
![Page 4: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/4.jpg)
It is impossible to underrate
human intelligence – beginning
with one’s own.
Henry Brooks Adams
![Page 5: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/5.jpg)
Introduction
![Page 6: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/6.jpg)
Do you remember?
![Page 7: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/7.jpg)
What about these guys?
![Page 8: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/8.jpg)
Monkeys were first
![Page 9: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/9.jpg)
Are you a monkey?
![Page 10: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/10.jpg)
Or, are you an astronaut?
![Page 11: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/11.jpg)
The Self-Managing
Database
![Page 12: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/12.jpg)
The Oracle Advisors
![Page 13: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/13.jpg)
Database performance optimization is a “complex, time consuming task and
requires expensive specialist consulting skills” to perform
![Page 14: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/14.jpg)
Performance diagnosis and tuning is mostly about following a logical, methodical approach. Fortunately computers are pretty good at that!
Graham Wood & Kyle Hailey
![Page 15: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/15.jpg)
What role will we choose and
what is the risk?
![Page 16: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/16.jpg)
![Page 17: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/17.jpg)
The system is slow!
Please fix it now!
DBAx
x
![Page 18: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/18.jpg)
How would you diagnose the problem?
![Page 19: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/19.jpg)
1) Check server to determine if adequate resources are available
![Page 20: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/20.jpg)
2) Check database and notice many sessions are waiting on “latch free” waits
![Page 21: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/21.jpg)
3) Drilling down into latches shows most are on “library cache” and “shared pool” latches
![Page 22: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/22.jpg)
4) From knowledge, experience and reference books, you know these latches are associated
with hard parsing issues
![Page 23: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/23.jpg)
5) Double-check the hypothesis that hard parsing is the problem by looking at
the rate at which “parse time elapsed” and “parse time cpu” are increasing
![Page 24: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/24.jpg)
6) Now determine if one or more sessions are responsible for the majority of the hard
parses or check shared pool for existence of many similar statements with the
same SQL plan
![Page 25: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/25.jpg)
7) By looking at the shared pool, you find there are a small number of plans each of which
has many different SQL texts associated with it (they differ only by a literal)
![Page 26: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/26.jpg)
8) Now the problem is identified and you can move on to fixing it
![Page 27: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/27.jpg)
With ADDM, how would the problem have been diagnosed?
![Page 28: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/28.jpg)
SQL statements were not shared due to usage of literals. This resulted in additional hard parses which were consuming significant database time.
ADDM says…
![Page 29: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/29.jpg)
ADDM recommends…
ACTION: Investigate application logic for possible use of bind variables instead of literals. Alternatively, you may set the parameter CURSOR_SHARING to FORCE.
![Page 30: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/30.jpg)
…because…
RATIONALE: SQL statements with PLAN_HASH_VALUE 3106087033 were found to be using literals. Look in V$SQL for examples of such SQL statements.
![Page 31: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/31.jpg)
Without ADDM
• Multiple investigative steps must be
completed
• Must have knowledge of what latch
free waits indicate
• Must locate the problem SQL
• Requires executing queries against
database that add overhead to the system
With ADDM
• Consult the latest ADDM report
• No mention of latching at all in the
report
• Exact SQL identified with
PLAN_HASH_VALUE
• No additional overhead needed as
report is based on previously collected snapshot data
Given this example, which method of diagnosis would you prefer?
![Page 32: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/32.jpg)
ADDM did a great job!
![Page 33: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/33.jpg)
Who wouldn’t want to spend less time getting to the root
cause of a problem?
![Page 34: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/34.jpg)
But…
![Page 35: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/35.jpg)
Could you have diagnosed the problem without ADDM?
![Page 36: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/36.jpg)
If you could have diagnosed the problem, would using ADDM
have been quicker (and therefore, better)?
![Page 37: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/37.jpg)
What would you have done if you fixed the problem as described
by ADDM, but the user says “it’s still slow”?
![Page 38: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/38.jpg)
Instead of using the human brain, humans have created another brain to do the job. There is nothing around us that is not built to cater to the needs of the human race and to ease off the duties of what the human brain is supposed to do; for instance, thinking. Is laziness going to be the death of the human race?
Kurt Vonnegut
![Page 39: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/39.jpg)
What do we really want?
![Page 40: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/40.jpg)
A magic formula?
![Page 41: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/41.jpg)
A checklist, a “how-to”, a tool or some secret parameter?
alter system set fast = true;
![Page 42: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/42.jpg)
What most people really want is knowledge and experience
…that allows us to confidently approach a problem and
solve it efficiently
![Page 43: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/43.jpg)
We want training that teaches us how and why things work as they do
…and teaches us how to “know” what to do and how to do it
when problems arise
![Page 44: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/44.jpg)
The part of intuition that involves pattern matching and recognition of familiar and typical cases can be trained. If you want people to size up situations quickly and accurately, you need to expand their experience base. One way is to arrange for a person to receive more difficult cases.
Gary Klein
…or simply have them become an Oracle DBA or developer.
![Page 45: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/45.jpg)
When the advisors
mislead
![Page 46: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/46.jpg)
What would you do if the problem isn’t resolved via the advisors?
![Page 47: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/47.jpg)
The advisors aren’t true artificial intelligence
![Page 48: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/48.jpg)
They can only pattern match, aggregate and assimilate answers based on programmed heuristics
![Page 49: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/49.jpg)
They can only suggest solutions within a realm of known
(i.e. built-in) possibilities
![Page 50: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/50.jpg)
They can’t rewrite code
![Page 51: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/51.jpg)
They can miss something or “get it wrong”
![Page 52: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/52.jpg)
It takes human intelligence
![Page 53: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/53.jpg)
SQL Tuning Advisor vs. Human
![Page 54: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/54.jpg)
Example
![Page 55: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/55.jpg)
![Page 56: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/56.jpg)
![Page 57: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/57.jpg)
So, how did the SQL Advisor do?
![Page 58: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/58.jpg)
Let’s compare using AUTOTRACE
Elapsed: 00:00:01.51 -------------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | -------------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 160 | 2560 | 191 (78)| 00:00:03 | | 1 | SORT UNIQUE | | 160 | 2560 | 191 (78)| 00:00:03 | | 2 | UNION-ALL | | | | | | |* 3 | FILTER | | | | | | | 4 | HASH GROUP BY | | 10 | 160 | 48 (11)| 00:00:01 | |* 5 | HASH JOIN OUTER | | 12890 | 201K| 44 (3)| 00:00:01 | | 6 | INDEX FAST FULL SCAN| CUST2_PK | 1000 | 5000 | 2 (0)| 00:00:01 | | 7 | TABLE ACCESS FULL | ORD2 | 12890 | 138K| 41 (0)| 00:00:01 | |* 8 | FILTER | | | | | | | 9 | HASH GROUP BY | | 50 | 800 | 48 (15)| 00:00:01 | | 10 | NESTED LOOPS | | 12890 | 201K| 44 (7)| 00:00:01 | | 11 | TABLE ACCESS FULL | ORD2 | 12890 | 138K| 41 (0)| 00:00:01 | |* 12 | INDEX UNIQUE SCAN | CUST2_PK | 1 | 5 | 0 (0)| 00:00:01 | |* 13 | FILTER | | | | | | | 14 | HASH GROUP BY | | 50 | 800 | 48 (15)| 00:00:01 | | 15 | NESTED LOOPS | | 12890 | 201K| 44 (7)| 00:00:01 | | 16 | TABLE ACCESS FULL | ORD2 | 12890 | 138K| 41 (0)| 00:00:01 | |* 17 | INDEX UNIQUE SCAN | CUST2_PK | 1 | 5 | 0 (0)| 00:00:01 | |* 18 | FILTER | | | | | | | 19 | HASH GROUP BY | | 50 | 800 | 48 (15)| 00:00:01 | | 20 | NESTED LOOPS | | 12890 | 201K| 44 (7)| 00:00:01 | | 21 | TABLE ACCESS FULL | ORD2 | 12890 | 138K| 41 (0)| 00:00:01 | |* 22 | INDEX UNIQUE SCAN | CUST2_PK | 1 | 5 | 0 (0)| 00:00:01 | --------------------------------------------------------------------------------------
![Page 59: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/59.jpg)
Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
39419 consistent gets
0 physical reads
0 redo size
26289 bytes sent via SQL*Net to client
1107 bytes received via SQL*Net from client
68 SQL*Net roundtrips to/from client
1 sorts (memory)
0 sorts (disk)
1000 rows processed
![Page 60: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/60.jpg)
Elapsed: 00:00:01.50 ------------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | ------------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 160 | 2560 | 184 (77)| 00:00:03 | | 1 | UNION-ALL | | | | | | |* 2 | FILTER | | | | | | | 3 | HASH GROUP BY | | 10 | 160 | 46 (7)| 00:00:01 | |* 4 | HASH JOIN OUTER | | 12890 | 201K| 44 (3)| 00:00:01 | | 5 | INDEX FAST FULL SCAN| CUST2_PK | 1000 | 5000 | 2 (0)| 00:00:01 | | 6 | TABLE ACCESS FULL | ORD2 | 12890 | 138K| 41 (0)| 00:00:01 | |* 7 | FILTER | | | | | | | 8 | HASH GROUP BY | | 50 | 800 | 46 (11)| 00:00:01 | | 9 | NESTED LOOPS | | 12890 | 201K| 44 (7)| 00:00:01 | | 10 | TABLE ACCESS FULL | ORD2 | 12890 | 138K| 41 (0)| 00:00:01 | |* 11 | INDEX UNIQUE SCAN | CUST2_PK | 1 | 5 | 0 (0)| 00:00:01 | |* 12 | FILTER | | | | | | | 13 | HASH GROUP BY | | 50 | 800 | 46 (11)| 00:00:01 | | 14 | NESTED LOOPS | | 12890 | 201K| 44 (7)| 00:00:01 | | 15 | TABLE ACCESS FULL | ORD2 | 12890 | 138K| 41 (0)| 00:00:01 | |* 16 | INDEX UNIQUE SCAN | CUST2_PK | 1 | 5 | 0 (0)| 00:00:01 | |* 17 | FILTER | | | | | | | 18 | HASH GROUP BY | | 50 | 800 | 46 (11)| 00:00:01 | | 19 | NESTED LOOPS | | 12890 | 201K| 44 (7)| 00:00:01 | | 20 | TABLE ACCESS FULL | ORD2 | 12890 | 138K| 41 (0)| 00:00:01 | |* 21 | INDEX UNIQUE SCAN | CUST2_PK | 1 | 5 | 0 (0)| 00:00:01 | -------------------------------------------------------------------------------------
![Page 61: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/61.jpg)
Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
39419 consistent gets
0 physical reads
0 redo size
24813 bytes sent via SQL*Net to client
1107 bytes received via SQL*Net from client
68 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1000 rows processed
![Page 62: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/62.jpg)
Differences?
• Elapsed time went from 1.51s to 1.50s
• Memory sorts were reduced from 1 to 0
• Query cost reduced from 191 to 184
• Consistent gets stayed the same
I still need better response time and less resource consumption.
Now what?
![Page 63: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/63.jpg)
Let’s give the human a try
![Page 64: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/64.jpg)
I rewrite the query…
SQL> get cust_disc_rewrite.sql
1 select c.cust_no, sum(o.total_order_price) tot_orders,
2 (case when sum(o.total_order_price) = 0 then 0
3 when sum(o.total_order_price) <= 100000 then .10
4 when sum(o.total_order_price) <= 500000 then .15
5 when sum(o.total_order_price) > 500000 then .20
6 else 0 end) as disc_rate
7 from customer2 c, ord2 o
8 where c.cust_no = o.cust_no(+)
9* group by c.cust_no
![Page 65: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/65.jpg)
…and make a huge difference!
Elapsed: 00:00:00.29
-----------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
-----------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1000 | 16000 | 46 (7)| 00:00:01 |
| 1 | HASH GROUP BY | | 1000 | 16000 | 46 (7)| 00:00:01 |
|* 2 | HASH JOIN OUTER | | 12890 | 201K| 44 (3)| 00:00:01 |
| 3 | INDEX FAST FULL SCAN| CUST2_PK | 1000 | 5000 | 2 (0)| 00:00:01 |
| 4 | TABLE ACCESS FULL | ORD2 | 12890 | 138K| 41 (0)| 00:00:01 |
-----------------------------------------------------------------------------------
![Page 66: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/66.jpg)
The query uses 191 vs. 39,419 LIOs and runs in .29 seconds!
Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
191 consistent gets
0 physical reads
0 redo size
26279 bytes sent via SQL*Net to client
1107 bytes received via SQL*Net from client
68 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1000 rows processed
![Page 67: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/67.jpg)
The moral of the story
![Page 68: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/68.jpg)
Something else to keep in mind…
![Page 69: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/69.jpg)
Tools on the market today do not use a business-task focused approach to solve a performance problem
![Page 70: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/70.jpg)
The Advisors and Enterprise Manager mainly monitor system-wide metrics
![Page 71: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/71.jpg)
What do you do if your user’s performance problem
isn’t representative of the system-wide issues?
![Page 72: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/72.jpg)
That’s exactly what Method R
is all about
![Page 73: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/73.jpg)
1. Determine the business task that is performing sub-optimally that you want to fix next.
![Page 74: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/74.jpg)
2. Collect detailed statistics about how this task spends its time while it is performing poorly.
![Page 75: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/75.jpg)
3. Execute repairs to reduce the task’s response time and/or resources consumed, or prove that it is already as efficient as it can affordably be made.
![Page 76: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/76.jpg)
4. If problems still exist, then go to step 1.
![Page 77: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/77.jpg)
There is a belief that there is a downside to a business task-focused approach.
![Page 78: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/78.jpg)
Many believe it’s too difficult to get access to the information or people needed.
![Page 79: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/79.jpg)
It seems easier to focus on what the “system” has to tell us in order to find and fix problems.
![Page 80: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/80.jpg)
Remember the monkeys?
![Page 81: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/81.jpg)
Enter the astronaut.
![Page 82: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/82.jpg)
The costs of following the wrong advise can be substantial.
![Page 83: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/83.jpg)
If you are working on the wrong thing, the real problem remains and
the business continues to suffer.
![Page 84: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/84.jpg)
Conclusion
![Page 85: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/85.jpg)
Don’t let the advisors – or any ‘automatic’ feature
become the dictator of your career.
![Page 86: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/86.jpg)
Tools are there to facilitate our knowledge, not replace it.
![Page 87: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/87.jpg)
Use the tools wisely but not as a substitute for your own
lack of knowledge.
![Page 88: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/88.jpg)
The bottom line
![Page 89: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/89.jpg)
The key is about a thirst for knowledge… not just the knowledge itself.
![Page 90: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/90.jpg)
It’s about how we strive to learn, understand, and know how and why
things work that makes the difference.
![Page 91: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/91.jpg)
It is the fulfillment of the desire to know that leads us to the knowledge we need
to evolve from monkey to astronaut and to be able to solve the problems
that seem unsolvable.
![Page 92: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/92.jpg)
It takes effort but the result is that you become a respected,
invaluable resource with the skills and confidence to impact your
business in a positive way.
![Page 93: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/93.jpg)
![Page 94: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/94.jpg)
![Page 95: Are you a monkey or an astronaut?](https://reader033.fdocuments.net/reader033/viewer/2022052900/555a9cb6d8b42a991b8b519a/html5/thumbnails/95.jpg)
Thank You!