About the course:
This Oracle performance tuning online course is designed for the audience who want to learn basics and core concepts of Oracle PT. You will be learning about Introduction, basic tuning diagnostics, how to use automatic workload repository, defining of problems, how to create AWR baselines, monitoring of applications Etc. All Oracle performance tuning classes will be live and interactive.
Course Target:
Oracle performance tuning online training is designed to teach you fundamentals of PT.
Understand basic tuning diagnostics.
Learn how to use Automatic workload repository.
Obtain knowledge of using metrics and alerts.
Clear understanding of how to monitor applications.
Need to identify problem SQL statements
Learn how to influence the optimizer.
Understand SQL performance management.
Tuning the shared pool, I/0, Buffer cache, PGA and temporary space.
Course Targeted Audience:
Any candidate can join our Oracle performance tuning online course.
People who are from professional background can join.
Researches can also participate in this course.
Prerequisites:
Candidates with basic knowledge of computer.
Basics of database are recommended.
Training Format:
Kernel Training provides Oracle performance tuning online course led by real time expert.
Registered Candidates can interact with instructor in live interactive sessions.
Candidates will have life time access to learning material.
Companies Using Oracle PT:
Major international IT companies perform Oracle performance tuning for their operations.
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsJohn Kanagaraj
Oracle Database 10g brought in a slew of tuning and performance related tools and indeed a new way of dealing with performance issues. Even though 10g has been around for a while, many DBAs haven’t really used many of the new features, mostly because they are not well known or understood. In this Expert session, we will look past the slick demos of the new tuning and performance related tools and go “under the hood”. Using this knowledge, we will bypass the GUI and look at the views and counters that matter and quickly understand what they are saying. Tools covered include AWR, ADDM, ASH, Metrics, Tuning Advisors and their related views. Much of information about Oracle Database 10g presented in this paper has been adapted from my book and I acknowledge that with gratitude to my publisher - SAMS (Pearson).
Dynamic Management Views (DMVs) provide a wealth of information for identifying and tuning poorly performing SQL. This presentation describe approaches to using DMV's to proactively or reactively tune SQL Server. This presentation also describe some of the blind spots or potentially inaccuracies that may exist in the DMV data.
About the course:
This Oracle performance tuning online course is designed for the audience who want to learn basics and core concepts of Oracle PT. You will be learning about Introduction, basic tuning diagnostics, how to use automatic workload repository, defining of problems, how to create AWR baselines, monitoring of applications Etc. All Oracle performance tuning classes will be live and interactive.
Course Target:
Oracle performance tuning online training is designed to teach you fundamentals of PT.
Understand basic tuning diagnostics.
Learn how to use Automatic workload repository.
Obtain knowledge of using metrics and alerts.
Clear understanding of how to monitor applications.
Need to identify problem SQL statements
Learn how to influence the optimizer.
Understand SQL performance management.
Tuning the shared pool, I/0, Buffer cache, PGA and temporary space.
Course Targeted Audience:
Any candidate can join our Oracle performance tuning online course.
People who are from professional background can join.
Researches can also participate in this course.
Prerequisites:
Candidates with basic knowledge of computer.
Basics of database are recommended.
Training Format:
Kernel Training provides Oracle performance tuning online course led by real time expert.
Registered Candidates can interact with instructor in live interactive sessions.
Candidates will have life time access to learning material.
Companies Using Oracle PT:
Major international IT companies perform Oracle performance tuning for their operations.
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsJohn Kanagaraj
Oracle Database 10g brought in a slew of tuning and performance related tools and indeed a new way of dealing with performance issues. Even though 10g has been around for a while, many DBAs haven’t really used many of the new features, mostly because they are not well known or understood. In this Expert session, we will look past the slick demos of the new tuning and performance related tools and go “under the hood”. Using this knowledge, we will bypass the GUI and look at the views and counters that matter and quickly understand what they are saying. Tools covered include AWR, ADDM, ASH, Metrics, Tuning Advisors and their related views. Much of information about Oracle Database 10g presented in this paper has been adapted from my book and I acknowledge that with gratitude to my publisher - SAMS (Pearson).
Dynamic Management Views (DMVs) provide a wealth of information for identifying and tuning poorly performing SQL. This presentation describe approaches to using DMV's to proactively or reactively tune SQL Server. This presentation also describe some of the blind spots or potentially inaccuracies that may exist in the DMV data.
Database Automation with MySQL Triggers and Event SchedulersAbdul Rahman Sherzad
This advanced training seminar on "Database Automation using MySQL Triggers and Event Schedulers" is dedicated to the Computer Science graduates and students of both public and private universities.
In this seminar we are going to look in depth at MySQL Triggers and Event Schedulers– powerful features supported by most popular commercial and open source relational database systems.
The Triggers are powerful tools for protecting the integrity of the data in the databases, logging and auditing of the changes on data, business logic, perform calculations, run further SQL commands, etc.
The Events are very useful to automate some database operations such as optimizing database tables, cleaning up logs, archiving data, or generate complex reports during off-peak time, etc.
The participants will learn about the true concept, implementation and application of MySQL Triggers and Event Schedulers with real life examples and scenarios.
They will also learn how to use the database triggers and event schedulers in many real cases to automate database tasks - such as optimizing database tables, cleaning up logs, archiving data, or generate complex reports during off-peak time.
This seminar is presented by Abdul Rahman Sherzad lecturer at Computer Science faculty of Herat University, and PhD Student at Technical University of Berlin, Germany at Hariwa Institute of Higher Education, Herat, Afghanistan.
Oracle 12c includes over 500 new features and enhancements which greatly enhance the Oracle database experience for developers and DBAs.
For this presentation, I have selected the top 12 new features of Oracle 12c:
From the "game changing" Pluggable Database architecture to lesser known but extremely cool features such as improved top-N queries or VARCHAR(32K).
In our webinar, we will discuss the top 12 new features of Oracle 12c we think every DBA should know about and demo some of the most useful new enchantments and capabilities available in Oracle's latest release.
1. PL/SQL enhancements.
2. Improve "column defaults" for tables - identity columns in Oracle, and more ...
3. Increased Size Limits - VARCHARS can go up to 32K!
4. Improved "TOP-n" queries - new Row limiting clause for result set pagination.
5. Row Pattern Matching - search for a specific pattern of data using SQL with REGEX-like syntax.
6. New partitioning features - multiple operations on multiple partitions in a single DDL, move a partition ONLINE (no DBMS_REDEF!), and more...
7. Adaptive Execution Plans - allows multiple execution plans to co-exists for a single SQL and have the optimizer switch between plans in realtime.
8. Enhanced Statistics - new histograms for data skew, automatically computed statistics after direct loads and more...
9. Temporary UNDO - Store UNDO data generated for temporary tables inside the UNDO tablespace itself which allows for DataGuard and Flashback enhancements.
10. Data Optimisation and ILM - The database now "remembers" which blocks are read / written frequently ("heat map") and allows us to create policies based on block access.
11. Transaction Guard - Provide protection for sensitive transactions that are allowed to only happen once.
12. Pluggable Databases - The "Game changer" of Oracle 12c, perform database consolidation on a scale never done before.
This webinar is intended for Oracle developers and DBAs experienced with Oracle 11g but which are new to Oracle 12c and wish to learn more about Oracle's latest and greatest database version.
Database Automation with MySQL Triggers and Event SchedulersAbdul Rahman Sherzad
This advanced training seminar on "Database Automation using MySQL Triggers and Event Schedulers" is dedicated to the Computer Science graduates and students of both public and private universities.
In this seminar we are going to look in depth at MySQL Triggers and Event Schedulers– powerful features supported by most popular commercial and open source relational database systems.
The Triggers are powerful tools for protecting the integrity of the data in the databases, logging and auditing of the changes on data, business logic, perform calculations, run further SQL commands, etc.
The Events are very useful to automate some database operations such as optimizing database tables, cleaning up logs, archiving data, or generate complex reports during off-peak time, etc.
The participants will learn about the true concept, implementation and application of MySQL Triggers and Event Schedulers with real life examples and scenarios.
They will also learn how to use the database triggers and event schedulers in many real cases to automate database tasks - such as optimizing database tables, cleaning up logs, archiving data, or generate complex reports during off-peak time.
This seminar is presented by Abdul Rahman Sherzad lecturer at Computer Science faculty of Herat University, and PhD Student at Technical University of Berlin, Germany at Hariwa Institute of Higher Education, Herat, Afghanistan.
Oracle 12c includes over 500 new features and enhancements which greatly enhance the Oracle database experience for developers and DBAs.
For this presentation, I have selected the top 12 new features of Oracle 12c:
From the "game changing" Pluggable Database architecture to lesser known but extremely cool features such as improved top-N queries or VARCHAR(32K).
In our webinar, we will discuss the top 12 new features of Oracle 12c we think every DBA should know about and demo some of the most useful new enchantments and capabilities available in Oracle's latest release.
1. PL/SQL enhancements.
2. Improve "column defaults" for tables - identity columns in Oracle, and more ...
3. Increased Size Limits - VARCHARS can go up to 32K!
4. Improved "TOP-n" queries - new Row limiting clause for result set pagination.
5. Row Pattern Matching - search for a specific pattern of data using SQL with REGEX-like syntax.
6. New partitioning features - multiple operations on multiple partitions in a single DDL, move a partition ONLINE (no DBMS_REDEF!), and more...
7. Adaptive Execution Plans - allows multiple execution plans to co-exists for a single SQL and have the optimizer switch between plans in realtime.
8. Enhanced Statistics - new histograms for data skew, automatically computed statistics after direct loads and more...
9. Temporary UNDO - Store UNDO data generated for temporary tables inside the UNDO tablespace itself which allows for DataGuard and Flashback enhancements.
10. Data Optimisation and ILM - The database now "remembers" which blocks are read / written frequently ("heat map") and allows us to create policies based on block access.
11. Transaction Guard - Provide protection for sensitive transactions that are allowed to only happen once.
12. Pluggable Databases - The "Game changer" of Oracle 12c, perform database consolidation on a scale never done before.
This webinar is intended for Oracle developers and DBAs experienced with Oracle 11g but which are new to Oracle 12c and wish to learn more about Oracle's latest and greatest database version.
Autonomous Transaction Processing (ATP): In Heavy Traffic, Why Drive Stick?Jim Czuprynski
Autonomous Transaction Processing (ATP) - the second in the family of Oracle’s Autonomous Databases – offers Oracle DBAs the ability to apply a force multiplier for their OLTP database application workloads. However, it’s important to understand both the benefits and limitations of ATP before migrating any workloads to that environment. I'll offer a quick but deep dive into how best to take advantage of ATP - including how to load data quickly into the underlying database – and some ideas on how ATP will impact the role of Oracle DBA in the immediate future. (Hint: Think automatic transmission instead of stick-shift.)
In this practical and script-focused session, Presenter William Assaf discusses best practices regarding SQL Server administration, maintenance, optimizations and monitoring using Dynamic Management Views. DMV's are essential tools for the SQL administrator, but have a wide range of applications by developers, network engineers and DBAs.
This are my keynote slides from SQL Saturday Oregon 2023 on AI and the Intersection of AI, Machine Learning and Economnic Challenges as a Technical Specialist
This is the second session of the learning pathway at PASS Summit 2019, which is still a stand alone session to teach you how to write proper Linux BASH scripts
2. Denver DBA
Kellyn Pot’Vin,
Westminster, Colorado
Oracle ACE, Sr. Technical Specialist at Enkitec
Multi-Platform DBA
Specialize in performance and management
of large enterprise environments.
Board of directors for RMOUG, Director of
Training Days 2013, KSCOPE DB Track Lead
2013
Blog: DBAKevlar.com
Twitter: @DBAKevlar
3. Challenges for Today’s DBA
Added Complexity by Less Manual
Configurations in Environment.
Added Roles to DBA’s, either requiring
more specializing and/or overall
knowledge required.
Added Features, systems.
More open source solutions required,
outside of standard design.
5. “Tinsel” vs. “Valuable”
Tinsel = anything that is shiny-
◦ graphs from EM without investigation.
◦ costs without research verifying are valid.
◦ Assumptions without proof.
Tuning “Tinsel” results in no productive gain
in performance in the database.
Valuable optimization=Performance Gain.
Performance gain should equal time savings.
Time is gold.
6. What is Performance “Gold”
Performance optimization that-
◦ saves valuable time to a long running process.
◦ Saves users valuable time to their work day.
◦ Saves results in value to the business.
◦ Re-allocates valuable resources, (memory, I/O
or sessions) back to the database.
Optimizing that saves time from
maintenance work that can be re-
allocated back to the business processing.
7. Saving DBA Time
Sharing knowledge- Optimization should
never be viewed as a “mystery process”
or “voodoo”.
Developers and Analysts should have
access to DBA Performance Views.
Ability to create explain plans.
Access to Enterprise Manager “Top
Activity” and drill downs.
8. Goals for the Attendee
AWR, ASH and Tracing Knowledge.
Steps to trouble-shooting an issue.
Over all, the goal of this session is for you
to always, ALWAYS, ALWAYS base any
changes you make on data and proof.
NEVER base changes on assumptions,
guesses or because you “read it
somewhere”.
12. AWR Repository
Used not only by the AWR reports
◦ Automatic Database Diagnostic Monitor, (ADDM
Reporting)
◦ SQL Tuning Advisor
◦ Segment Advisor
By default, snapshots every hour. Retention
is for 7 days. Both are modifiable.
Snapshots can be taken at any time:
EXEC DBMS_WORKLOAD_REPOSITORY.create_snapshot;
13. Running Tuning Pack Reports
Through Enterprise Manager
$ORACLE_HOME/rdbms/admin
◦ ADDM- addmrpt.sql
◦ ASH- ashrpt.sql
◦ AWR- awrrpt.sql
◦ SQL_ID Specific AWR- awrsqrpt.sql
These reports can be in HTML or TEXT
versions.
Require the Tuning and Management Pack
license.
14. AWR Reports
Statspack on “Steroids”
As detailed snapshot of database depending on
intervals of snapshot setup, (hourly be default.)
Introduced in Oracle 10g
Evolution to statspack, requests for performance
reporting improvements.
“Always on” approach to performance metrics
with requirement of non-locking collection
process.
Requires Management Tuning Pack License from
Oracle.
15. Running AWR from Enterprise
Manager
• Post logging into the database, click on
Performance.
• From Performance AWR AWR Report
16. ASH Report
Best in smaller timeslots.
Includes SQL_ID, object information and timeline of
waits.
Samples each active database session every second.
Data is held in buffer in memory.
Built into the Oracle kernel and accessed through the
v$active_session_history view.
In an AWR snapshot, 1 row in 10 from ASH buffer is
placed into the AWR repository.
Managed by the MMNL, (Memory Monitor Lite)
Should not be used to track occurrence.
17. Running ASH Report from
Enterprise Manager
• ASH is always by time, not snapshot.
• Set start date and time.
• End date and time
• Generate report
19. ADDM Report High Lights
“Just the Facts” Report
Produced from AWR Snapshots
Broken down by “Findings and
Recommendations”
Identifies high-level misconfigurations.
Lists what “Is Not an Impact”
Do NOT recommend for non-DBA
Personnel.
20. Creating Explain Plans
Creating an Explain plan:
EXPLAIN PLAN FOR <SQL STATEMENT>;
SELECT PLAN_TABLE_OUTPUT from
table(dbms_xplan.display(‘plan_ta
ble’,null,’basic’));
Preferred:
SELECT * FROM
TABLE(DBMS_XPLAN.DISPLAY);
From a previous run, using SQL_ID:
SELECT * FROM
TABLE(DBMS_XPLAN.DISPLAY_AWR(‘SQL_I
D’));
21. Trace Events and Levels
Event Level Description
10046 0 No statistics generated
Standard trace output including parsing, executes and fetches
10046 1 plus more
10046 2 Same as Level 1
10046 4 Level 1 + Bind Variables
10046 8 Level 1 + Waits
10046 12 Level 1 + Bind Variables & Waits
Added in 11g to generate STAT line dumps for each
execution. STAT dumping has been amended in 11g so that
they are not aggregated across all executions but are dumped
10046 16 after execution.
10053 1 Dump Optimizer Statistics and Computations
10053 2 Dump Optimizer Computations only
22. Tracing: 10046
10046
alter session set events '10046 trace name
context forever, level 8';
exec
dbms_system.set_sql_trace_in_session(<sid>,<s
erial#>,TRUE);
exec
dbms_system.set_ev(<sid>,<serial#>,10046,12,'
');
23. Tracing:10053
Alter session set events '10053 trace
name context forever, level 1';
OR
begin
DBMS_SQLDIAG.DUMP_TRACE(p_sql_id=>‘<sql
_id>',
p_child_number=>0,
p_component=>'Optimizer',
p_file_id=>‘<distinguish trace
name>');
end;
/
24. Trace Files are Too Big/Complex
Become familiar with TKPROF for 10046
trace files.
If tracing often, sell cost effectiveness like
advanced trace assistance tools like
Method R’s “Mr. Trace”.
Become confident in how to find bind
variable, sql_id and column data values in
a trace file.
Become friends with find/search..
25. Real Life Scenario 1
Developer notices that performance is poor in
two standard transformation process.
Process utilizes CTAS, (create table as)
Believes parallel process is being degraded to
serial due to limitations in CPU resources in
database.
First Step?
Second Step?
26. Scenario 1, Step 1
Explain plan of first CTAS shows that
although SQL has parallel hints in “select”
section, no parallel was designated in
“create table” section of statement.
Second process showed parallel in explain
plan, but processing via Enterprise
Manager did show only one process
active for majority of time, other parallel
slaves waiting.
27. Scenario 1, Step 2
10046, level 8 trace of second process.
Trace file clearly shows single slave
session busy on function call, where
parallel at all other processing.
Inspection of code showed function
needed to be created with
“parallel_enable” clause addition.
28. Real Life Scenario 2
11g Upgrade recently performed in
environment.
Overall performance good, but number of large
DML processes degrading.
Elapsed time extended, but time extension is
spread across each transaction in the overall
processing.
First step?
Second step?
29. Scenario 2, Step 1
AWR reports show significant increase in
times.
IO has increased, physical reads on tables
involved in DML shown as increase.
No change in explain plans, utilizing 10g
plans or new plans show no
improvement.
30. Scenario 2, Step 2
10053 trace, level 1 by SQL_ID’s of DML
involved.
Discovered in the trace file, full scans of
tables due to following 11g parameter:
CELL_OFFLOAD_PROCESSING=TRUE
Per the MOS note- High 'ksv master wait'
And 'ASM File Metadata Operation' Waits
In Non-Exadata 11g [ID 1308282.1]
31. Real Life Scenario 3
Users complain of performance
degradation of main processing in data
mart when larger, heavy concurrent
processes.
Same code executed in database when
degradation occurs.
AWR shows adequate SGA, PGA hit, high
I/O.
First step? Second Step?
32. Scenario 3, First Step:
Memory and PGA show fine, yet high I/O, inspect the memory
,workarea and temp:
select vst.sql_text, swa.sql_id, swa.sid,
swa.tablespace
, swa.operation_type
, trunc(swa.work_area_size/1024/1024) "PGA MB"
, trunc(swa.max_mem_used/1024/1024)"Mem MB"
, trunc(swa.tempseg_size/1024/1024)"Temp MB"
from v$sql_workarea_active swa, v$session vs,
v$sqltext vst
where swa.sid=vs.sid
and swa.sql_id=vs.sql_id
and vs.sql_id=vst.sql_id
and vst.piece=0
order by swa.sql_id;
33. Scenario 3, Second Step:
Workarea shows no PGA allocated,
considering the size of temp table created
as part of the CTAS, hash joins and hash
group by sort.
Performed 10048 trace of session.
Action Plan: Traced session and noted the
following, which was then located in
procedure call: alter session set
WORKAREA_SIZE_POLICY =
MANUAL;
35. Design of an Optimization Exercise
Collect top 10 list of database
performance challenges.
Review with peers and user base.
Create top 10 list that incorporates both
the DBA list of top 10 and the User list.
Divide the list into “low-hanging fruit” and
those that will demand extensive
resources to correct.
Review the database again only after the
“low-hanging fruit” has been addressed.
36. Summary
Optimization is not an exact science, but
following logical steps when scenarios
develop is key.
Always optimize for time savings
Research to produce data, (proof) behind
any optimize goaled exercise to eliminate
wasted effort before an exercise is
commenced.
37. Thank you
Kellyn Pot’Vin
Website: http://dbakevlar.com
and http://enkitec.com
Email: dbakevlar@gmail.com or kpotvin@enkitec.com
Twitter: @DBAKevlar
Facebook and LinkedIn: Kellyn Pot’Vin