This document discusses SQL tuning and provides an overview of the SQL execution process. It outlines the steps to identify and analyze poorly performing SQL, including using views like v$session to find long running sessions, AWR to find top SQL, and generating execution plans using EXPLAIN PLAN or DBMS_XPLAN to interpret execution plans and identify bottlenecks. The next session will cover interpreting execution plans in more detail as well as additional techniques for SQL tuning.
Design and develop with performance in mind
Establish a tuning environment
Index wisely
Reduce parsing
Take advantage of Cost Based Optimizer
Avoid accidental table scans
Optimize necessary table scans
Optimize joins
Use array processing
Consider PL/SQL for “tricky” SQL
Design and develop with performance in mind
Establish a tuning environment
Index wisely
Reduce parsing
Take advantage of Cost Based Optimizer
Avoid accidental table scans
Optimize necessary table scans
Optimize joins
Use array processing
Consider PL/SQL for “tricky” SQL
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentalsJohn Beresniewicz
RMOUG 2020 abstract:
This session will cover core concepts for Oracle performance analysis first introduced in Oracle 10g and forming the backbone of many features in the Diagnostic and Tuning packs. The presentation will cover the theoretical basis and meaning of these concepts, as well as illustrate how they are fundamental to many user-facing features in both the database itself and Enterprise Manager.
Oracle Performance Tuning Training | Oracle Performance TuningOracleTrainings
Email: inbox.oracletrainings@gmail.com
Contact: +91 8121 020 111
Oracle Performance Tuning Training helps to use Oracle Database performance tools in the command-line interface to optimize database performance and tune SQL statements.
Oracle Performance Tuning Training Course Content
Overview Of Performance Tuning
• Basic Concepts in Performance Tuning
• Getting Start with Performance Tuning Features & Tools
Designing & Developing for Performance
• Oracle_Methodology
• Understanding the Investment Options
• Understanding the Scalability
• System _Architecture
• The Application Design Principles
• Workload Testing, Modeling, & Implementation
• Deploying the New Applications
The Performance Improvement Methods
• Oracle Performance Improvement Method
• Emergency Performance_Methods
Configuring an Database for Performance
• Performance Considerations for the Initial Instance Configuration
• Creating & Maintaining Tables for Good Performance
• Performance Considerations for the Shared Servers
Automatic Performance Statistics
• Data Gathering
• Overview toAutomatic Workload Repository
The Automatic Performance Diagnostics
• Introduction to the Database Diagnostic Monitoring
• Automatic Database Diagnostic_ Monitor
Memory Configuration & Use
• Understanding the Memory Allocation Issues
• Configuring & Using the Buffer Cache
• Configuring & Using the Shared Pool and Large Pool
• Configuring & Using the Redo Log Buffer
• PGA Memory Management
I/O Configuration & Design
• Understanding the I/O
• The Basic I/O Configuration
Understanding The Operating System Resources
• Understanding The Operating System Performance Issues
• Solving the Operating System Problems
• Understanding Of CPU
Indexing Strategies for Oracle Databases - Beyond the Create Index StatementSean Scott
There's more to indexing than the basic "create index" statement! We'll go under the covers and look at the different types of indexes available in both Enterprise and Standard Editions, including b-tree, bitmap, reverse-key, functional, composite and partitioned; describe how to select the most appropriate type of index for a particular situation; explore storage parameters and lesser-known configuration options available to fine-tune performance; discuss methods for gathering statistics, including whether to capture histograms or not; and cover techniques for managing and maintaining a healthy library of indexes. Scripts included!
1. How to choose the appropriate type of index for a particular implementation.
2. An understanding of indexing options and storage configurations available to improve index (and database) performance.
3. Techniques for managing and maintaining the health of indexes.
Learn from the author of SQLTXPLAIN the fundamentals of SQL Tuning: 1) Diagnostics Collection; 2) Root Cause Analysis (RCA); and 3) Remediation.
SQL Tuning is a complex and intimidating area of knowledge, and it requires years of frequent practice to master it. Nevertheless, there are some concepts and practices that are fundamental to succeed. From basic understanding of the Cost-based Optimizer (CBO) and the Execution Plans, to more advance topics such as Plan Stability and the caveats of using SQL Profiles and SQL Plan Baselines, this session is full of advice and experience sharing. Learn what works and what doesn't when it comes to SQL Tuning.
Participants of this session will also learn about several free tools (besides SQLTXPLAIN) that can be used to diagnose a SQL statement performing poorly, and some others to improve Execution Plan Stability.
Either if your are a novice DBA, or an experienced DBA or Developer, there will be something new for you on this session. And if this is your first encounter with SQL Tuning, at least you will learn the basic concepts and steps to succeed in your endeavor.
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentalsJohn Beresniewicz
RMOUG 2020 abstract:
This session will cover core concepts for Oracle performance analysis first introduced in Oracle 10g and forming the backbone of many features in the Diagnostic and Tuning packs. The presentation will cover the theoretical basis and meaning of these concepts, as well as illustrate how they are fundamental to many user-facing features in both the database itself and Enterprise Manager.
Oracle Performance Tuning Training | Oracle Performance TuningOracleTrainings
Email: inbox.oracletrainings@gmail.com
Contact: +91 8121 020 111
Oracle Performance Tuning Training helps to use Oracle Database performance tools in the command-line interface to optimize database performance and tune SQL statements.
Oracle Performance Tuning Training Course Content
Overview Of Performance Tuning
• Basic Concepts in Performance Tuning
• Getting Start with Performance Tuning Features & Tools
Designing & Developing for Performance
• Oracle_Methodology
• Understanding the Investment Options
• Understanding the Scalability
• System _Architecture
• The Application Design Principles
• Workload Testing, Modeling, & Implementation
• Deploying the New Applications
The Performance Improvement Methods
• Oracle Performance Improvement Method
• Emergency Performance_Methods
Configuring an Database for Performance
• Performance Considerations for the Initial Instance Configuration
• Creating & Maintaining Tables for Good Performance
• Performance Considerations for the Shared Servers
Automatic Performance Statistics
• Data Gathering
• Overview toAutomatic Workload Repository
The Automatic Performance Diagnostics
• Introduction to the Database Diagnostic Monitoring
• Automatic Database Diagnostic_ Monitor
Memory Configuration & Use
• Understanding the Memory Allocation Issues
• Configuring & Using the Buffer Cache
• Configuring & Using the Shared Pool and Large Pool
• Configuring & Using the Redo Log Buffer
• PGA Memory Management
I/O Configuration & Design
• Understanding the I/O
• The Basic I/O Configuration
Understanding The Operating System Resources
• Understanding The Operating System Performance Issues
• Solving the Operating System Problems
• Understanding Of CPU
Indexing Strategies for Oracle Databases - Beyond the Create Index StatementSean Scott
There's more to indexing than the basic "create index" statement! We'll go under the covers and look at the different types of indexes available in both Enterprise and Standard Editions, including b-tree, bitmap, reverse-key, functional, composite and partitioned; describe how to select the most appropriate type of index for a particular situation; explore storage parameters and lesser-known configuration options available to fine-tune performance; discuss methods for gathering statistics, including whether to capture histograms or not; and cover techniques for managing and maintaining a healthy library of indexes. Scripts included!
1. How to choose the appropriate type of index for a particular implementation.
2. An understanding of indexing options and storage configurations available to improve index (and database) performance.
3. Techniques for managing and maintaining the health of indexes.
Learn from the author of SQLTXPLAIN the fundamentals of SQL Tuning: 1) Diagnostics Collection; 2) Root Cause Analysis (RCA); and 3) Remediation.
SQL Tuning is a complex and intimidating area of knowledge, and it requires years of frequent practice to master it. Nevertheless, there are some concepts and practices that are fundamental to succeed. From basic understanding of the Cost-based Optimizer (CBO) and the Execution Plans, to more advance topics such as Plan Stability and the caveats of using SQL Profiles and SQL Plan Baselines, this session is full of advice and experience sharing. Learn what works and what doesn't when it comes to SQL Tuning.
Participants of this session will also learn about several free tools (besides SQLTXPLAIN) that can be used to diagnose a SQL statement performing poorly, and some others to improve Execution Plan Stability.
Either if your are a novice DBA, or an experienced DBA or Developer, there will be something new for you on this session. And if this is your first encounter with SQL Tuning, at least you will learn the basic concepts and steps to succeed in your endeavor.
Antes de migrar de 10g a 11g o 12c, tome en cuenta las siguientes consideraciones. No es tan sencillo como simplemente cambiar de motor de base de datos, se necesita hacer consideraciones a nivel del aplicativo.
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsZohar Elkayam
Oracle Week 2017 slides.
Agenda:
Basics: How and What To Tune?
Using the Automatic Workload Repository (AWR)
Using AWR-Based Tools: ASH, ADDM
Real-Time Database Operation Monitoring (12c)
Identifying Problem SQL Statements
Using SQL Performance Analyzer
Tuning Memory (SGA and PGA)
Parallel Execution and Compression
Oracle Database 12c Performance New Features
Les index columnstore sont apparus avec SQL Server 2012 et bon nombre de limitations ou d'améliorations ont vu le jour avec SQL Server 2014 et bientôt SQL Server 2016. Il en va de même pour les tables In-Memory à partir de SQL Server 2014. Découvrez lors de cette session comment SQL Server 2016 répond aux besoins d'analyse opérationnelle en temps réel en introduisant et en mixant ces 2 technologies In-Memory
Access Data from XPages with the Relational ControlsTeamstudio
Did you know that Domino and XPages allows for the easy access of relational data? These exciting capabilities in the Extension Library can greatly enhance the capability of your applications and allow access to information beyond Domino. Howard and Paul will discuss what you need to get started, what controls allow access to relational data, and the new @Functions available to incorporate relational data in your Server Side JavaScript programming.
Java Developers, make the database work for you (NLJUG JFall 2010)Lucas Jellema
The general consensus among Java developers has evolved from a dogmatic strive for database independence to a much more pragmatic wish to leverage the power of the database. This session demonstrates some of the (hidden) powers of the database and how these can be utilized from Java applications using either straight JDBC or working through JPA. The Oracle database is used as example: SQL for Aggregation and Analysis, Flashback Queries for historical comparison and trends, Virtual Private Database, complex validation, PL/SQL and collections for bulk data manipulation, view and instead-of triggers for data model morphing, server push of relevant data changes, edition based redefinition for release management.
- overview of role of database in JEE architecture (and a little history on how the database is perceived through the years)
- discussion on the development of database functionality
- demonstration of some powerful database features
- description of how we leveraged these features in our JSF (RichFaces)/JPA (Hibernate) application
- demo of web application based on these features
- discussion on how to approach the database
Adapting and adopting SQL Plan Management (SPM) to achieve execution plan stability for sub-second queries on a high-rate OLTP mission-critical application
Efficient working with Databases in LabVIEW - Sam Sharp (MediaMongrels Ltd) -...MediaMongrels Ltd
Sam Sharp's presentation from GDevCon#2 on Efficient Working with Databases in LabVIEW.
This presentation discusses some best practice hints & tips for working with databases in LabVIEW and uses Yii's ActiveRecord implementation as an example of how we can work more efficiently with databases in LabVIEW.
Document is about how we can effectively use OEM to test various iterations of a SQL without a pain of really going through whole long SQL to find all the Binds.
Sql developer - Powerful Free tool for Developers and DBA'sNavneet Upneja
SQL Developer is a powerful tool for both Developers and DBA's. With every new version and release, Oracle is making sure that SQL Developer becomes more and more power ful that can bridge gap between DBA and a Developer. It is not longer just a Developer's Friend. Its horizon has increased many folds and I would encourage everyone to start using it. Its easy. Its Free. #Devops
This presentation is about the role Analytics can play in any DBAs (Database Administrator's) life. This will certainly help you multiply your time to make sure that you spend your time on learning new things in Technology world
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Jeffrey Haguewood
Sidekick Solutions uses Bonterra Impact Management (fka Social Solutions Apricot) and automation solutions to integrate data for business workflows.
We believe integration and automation are essential to user experience and the promise of efficient work through technology. Automation is the critical ingredient to realizing that full vision. We develop integration products and services for Bonterra Case Management software to support the deployment of automations for a variety of use cases.
This video focuses on the notifications, alerts, and approval requests using Slack for Bonterra Impact Management. The solutions covered in this webinar can also be deployed for Microsoft Teams.
Interested in deploying notification automations for Bonterra Impact Management? Contact us at sales@sidekicksolutionsllc.com to discuss next steps.
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...DanBrown980551
Do you want to learn how to model and simulate an electrical network from scratch in under an hour?
Then welcome to this PowSyBl workshop, hosted by Rte, the French Transmission System Operator (TSO)!
During the webinar, you will discover the PowSyBl ecosystem as well as handle and study an electrical network through an interactive Python notebook.
PowSyBl is an open source project hosted by LF Energy, which offers a comprehensive set of features for electrical grid modelling and simulation. Among other advanced features, PowSyBl provides:
- A fully editable and extendable library for grid component modelling;
- Visualization tools to display your network;
- Grid simulation tools, such as power flows, security analyses (with or without remedial actions) and sensitivity analyses;
The framework is mostly written in Java, with a Python binding so that Python developers can access PowSyBl functionalities as well.
What you will learn during the webinar:
- For beginners: discover PowSyBl's functionalities through a quick general presentation and the notebook, without needing any expert coding skills;
- For advanced developers: master the skills to efficiently apply PowSyBl functionalities to your real-world scenarios.
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
JMeter webinar - integration with InfluxDB and GrafanaRTTS
Watch this recorded webinar about real-time monitoring of application performance. See how to integrate Apache JMeter, the open-source leader in performance testing, with InfluxDB, the open-source time-series database, and Grafana, the open-source analytics and visualization application.
In this webinar, we will review the benefits of leveraging InfluxDB and Grafana when executing load tests and demonstrate how these tools are used to visualize performance metrics.
Length: 30 minutes
Session Overview
-------------------------------------------
During this webinar, we will cover the following topics while demonstrating the integrations of JMeter, InfluxDB and Grafana:
- What out-of-the-box solutions are available for real-time monitoring JMeter tests?
- What are the benefits of integrating InfluxDB and Grafana into the load testing stack?
- Which features are provided by Grafana?
- Demonstration of InfluxDB and Grafana using a practice web application
To view the webinar recording, go to:
https://www.rttsweb.com/jmeter-integration-webinar
Accelerate your Kubernetes clusters with Varnish CachingThijs Feryn
A presentation about the usage and availability of Varnish on Kubernetes. This talk explores the capabilities of Varnish caching and shows how to use the Varnish Helm chart to deploy it to Kubernetes.
This presentation was delivered at K8SUG Singapore. See https://feryn.eu/presentations/accelerate-your-kubernetes-clusters-with-varnish-caching-k8sug-singapore-28-2024 for more details.
PHP Frameworks: I want to break free (IPC Berlin 2024)Ralf Eggert
In this presentation, we examine the challenges and limitations of relying too heavily on PHP frameworks in web development. We discuss the history of PHP and its frameworks to understand how this dependence has evolved. The focus will be on providing concrete tips and strategies to reduce reliance on these frameworks, based on real-world examples and practical considerations. The goal is to equip developers with the skills and knowledge to create more flexible and future-proof web applications. We'll explore the importance of maintaining autonomy in a rapidly changing tech landscape and how to make informed decisions in PHP development.
This talk is aimed at encouraging a more independent approach to using PHP frameworks, moving towards a more flexible and future-proof approach to PHP development.
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Keynote at DIGIT West Expo, Glasgow on 29 May 2024.
Cheryl Hung, ochery.com
Sr Director, Infrastructure Ecosystem, Arm.
The key trends across hardware, cloud and open-source; exploring how these areas are likely to mature and develop over the short and long-term, and then considering how organisations can position themselves to adapt and thrive.
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
UiPath Test Automation using UiPath Test Suite series, part 4DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 4. In this session, we will cover Test Manager overview along with SAP heatmap.
The UiPath Test Manager overview with SAP heatmap webinar offers a concise yet comprehensive exploration of the role of a Test Manager within SAP environments, coupled with the utilization of heatmaps for effective testing strategies.
Participants will gain insights into the responsibilities, challenges, and best practices associated with test management in SAP projects. Additionally, the webinar delves into the significance of heatmaps as a visual aid for identifying testing priorities, areas of risk, and resource allocation within SAP landscapes. Through this session, attendees can expect to enhance their understanding of test management principles while learning practical approaches to optimize testing processes in SAP environments using heatmap visualization techniques
What will you get from this session?
1. Insights into SAP testing best practices
2. Heatmap utilization for testing
3. Optimization of testing processes
4. Demo
Topics covered:
Execution from the test manager
Orchestrator execution result
Defect reporting
SAP heatmap example with demo
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
2. Who AM I?
Navneet Upneja (Oracle DBA)
7 Years of Experience in Oracle Databases and
Middleware Applications
Oracle Certified Professional
Hand on experience on OLTP, Datawarehouse,
Oracle BI, APEX…
Member of North India Chapter.
3. Agenda
• SQL
• Execution Process
• Scope of Tuning
• Set of Actions
• Generation of Explain Plan
• Discussing Various Techniques for
Execution Plan generation
• We are not tuning anything today
4. What is SQL?
• Stands for "Structured Query Language,"
• pronounced as either "sequel" or "S-Q-L.
• created by IBM in 1975
In Oracle:
• Way to query database.
• Identified by SQL ID
• 310rmwf1kf334 (13 Character Base 32
encod)
5. Types of SQL
• QUERY
– Select
• DML
– Insert
– Update
– Delete
– Merge
• DDL
– Create
– ALTER
– DROP
• …..
6. Steps in SQL Execution
Parse
• Syntax
• Symantec
• Optimization
• Execution
Plan(s)
Execute
• Bind
Variable to
Bind Values
• Execution of
Query with
Select
Execution
Plan
Fetch
• Data
Fetched to
be returned
back to
users (Only
for Quries)
8. Scenarios
• Someone complains of Application Slow or
some report is slow.
• Query from somewhere suddenly pops
that making things go bad.
• Your scheduled database program like
ETL Load starts taking longer.
• Some Ad hoc queries.
• New queries from development team.
9. Action Plan
• Find the offending session
– v$session
– OEM
• Find the bad SQL
– OEM
– AWR
– ASH
– Data Dictionary Views (v$SQL,v$SQLSTATS,DBA_HIST_SQLSTAT…)
• Generate Execution Plan
– Explain Plan for
– DBMS_XPLAN
• Display_Cursor
• Display_AWR
– SQL Monitoring from OEM
– DBMS_SQLTUNE.REPORT_SQL_MONITOR
• Interpret the Plan
– Go through the plan
– Look out for suspicious steps that may be causing Issue
– Cardinality
• Apply your fixes
– Optimizer Statistics
– Missing Indexes (Be careful)
– SQL Profile
– SQL Baseline
16. Execution Plan
• Detailed Steps required
to execute a SQL.
• Combination of various
database operations.
• Designed by Query
Optimizer
• Tree Shaped
• For better usability,
shown in Tabular form.
• OEM shows both plans.
17. Generating Explain plan
• Explain plan for .. <SQL Statement>
– Populated plan_table
– Captured plan can be viewed using SQL
Statsment
– select plan_table_output from
table(dbms_xplan.display('plan_table',null,'serial'))
– @?rdbmsadminutlxpls
– Not always right specifically if SQL Statement
contains BIND Variables
18. Example of Explain plan…
• Explain plan for a simple select with one Bind Variable
• Resulted plan shows Index Range scan.
19. • Lets run the same query with Literal
select * from employees where department_id=50
Optimizer decided to perform Full table scan instead of using Index
Check the difference in Number of Rows returned against FTS
20. So, Then What if not Explain
plan?
• DBMS_XPLAN
– Display Plan from Cursor
Cache
– From AWR
– From SQL Plan Baseline
– From SQL Set
22. DBMS_XPLAN.DISPLAY_CURSOR
– Display from GV$SQL_PLAN (or
GV$SQL_PLAN_STATISTICS_ALL)
– Useful in providing real statistics for SQL
execution
– Various options to display different details like
Advanced, Allstats, IOSTATS etc..
– Is NOT RAC Aware
24. Rowsource Statistics
• More detailed statistics
• Provide real picture but
after execution of query
• Must to find out exact
cause of problem
• v$sql_plan_statistics_all
• Provides Real Numbers
for :
– Rows returned
– CPU
– Physical IO
– LIO
– Elapsed Time
Pre-requisite:
STATISTICS_LEVEL=ALL
(At session level)
OR
/*+ gather_plan_statistics */
Hint in SQL
26. DBMS_XPLAN.DISPLAY_AWR
– Display Execution plan for SQL_ID’s captured
in AWR
– Can show details of Peeked Bind Values.
– Useful to troubleshoot performance of SQL
from the past
– Can be used to compare the execution plan
from the past
– Is definitely a next step after AWR Report.
27. Example..
• select * from table(dbms_xplan.display_awr('86bh2bn3gtmm0',null,
null, 'ALL +peeked_binds'));
28.
29. SQL Monitor
• Real Time Monitoring
• Identify run time problems
• Useful for long running Queries
• Provide actual run time values for each step in execution
plan.
• Easy to access through OEM.
• DBMS_SQLTUNE.report_sql_monitor
• STATISTICS_LEVEL=TYPICAL/ALL
• control_management_pack_access
=DIAGNOSTIC+TUNING