Enviar búsqueda
Cargar
Performance tuning how to write correctly sql statement
•
Descargar como PPTX, PDF
•
0 recomendaciones
•
1,139 vistas
Ronald Francisco Vargas Quesada
Seguir
Estén pendientes de la disponibilidad de este Webinar gratis en la red.
Leer menos
Leer más
Tecnología
Empresariales
Denunciar
Compartir
Denunciar
Compartir
1 de 18
Descargar ahora
Recomendados
Performance tuning how to write and run correctly sql statement
Performance tuning how to write and run correctly sql statement
Ronald Francisco Vargas Quesada
Ronald Vargas Performance Tuning how to write and run correctly sql statement...
Ronald Vargas Performance Tuning how to write and run correctly sql statement...
Ronald Francisco Vargas Quesada
high availability case study fusion middleware cluster1
high availability case study fusion middleware cluster1
Soroush Ghorbani
Top 10 SQL Performance tips & tricks for Java Developers
Top 10 SQL Performance tips & tricks for Java Developers
gvenzl
730dsopug
730dsopug
Mahesh Vootla
Oracle supplier ship and debit
Oracle supplier ship and debit
Franklin Gomez
Performance in the Oracle Cloud
Performance in the Oracle Cloud
Kellyn Pot'Vin-Gorman
AWR and ASH in an EM12c World
AWR and ASH in an EM12c World
Kellyn Pot'Vin-Gorman
Recomendados
Performance tuning how to write and run correctly sql statement
Performance tuning how to write and run correctly sql statement
Ronald Francisco Vargas Quesada
Ronald Vargas Performance Tuning how to write and run correctly sql statement...
Ronald Vargas Performance Tuning how to write and run correctly sql statement...
Ronald Francisco Vargas Quesada
high availability case study fusion middleware cluster1
high availability case study fusion middleware cluster1
Soroush Ghorbani
Top 10 SQL Performance tips & tricks for Java Developers
Top 10 SQL Performance tips & tricks for Java Developers
gvenzl
730dsopug
730dsopug
Mahesh Vootla
Oracle supplier ship and debit
Oracle supplier ship and debit
Franklin Gomez
Performance in the Oracle Cloud
Performance in the Oracle Cloud
Kellyn Pot'Vin-Gorman
AWR and ASH in an EM12c World
AWR and ASH in an EM12c World
Kellyn Pot'Vin-Gorman
1 z0 062 - oracle certification
1 z0 062 - oracle certification
adam_jhon
UKOUG
UKOUG
Kellyn Pot'Vin-Gorman
Oracle performance management_implementation_and_user_guide
Oracle performance management_implementation_and_user_guide
gisdev1
1Z0-050 - Oracle Database
1Z0-050 - Oracle Database
adam_jhon
Oracle Succession Planning Setup
Oracle Succession Planning Setup
Feras Ahmad
Optimizing the Enterprise Manager 12c
Optimizing the Enterprise Manager 12c
Kellyn Pot'Vin-Gorman
121perfmiug
121perfmiug
rpkapps
SAP HANA in an EMC Private Cloud
SAP HANA in an EMC Private Cloud
EMC
Oracle Database features every developer should know about
Oracle Database features every developer should know about
gvenzl
Performance Tuning: Como escribir y correr correctamente una sentencia SQL en...
Performance Tuning: Como escribir y correr correctamente una sentencia SQL en...
Ronald Francisco Vargas Quesada
Oracle Database 12c Application Development
Oracle Database 12c Application Development
Saurabh K. Gupta
More than 12 More things about Oracle Database 12c
More than 12 More things about Oracle Database 12c
Guatemala User Group
Latin America Tour 2019 - pattern matching
Latin America Tour 2019 - pattern matching
Connor McDonald
Oracle Advanced SQL
Oracle Advanced SQL
Marcin Blaszczyk
Five more things about Oracle SQL and PLSQL
Five more things about Oracle SQL and PLSQL
Connor McDonald
MERGE SQL Statement: Lesser Known Facets
MERGE SQL Statement: Lesser Known Facets
Andrej Pashchenko
New PLSQL in Oracle Database 12c
New PLSQL in Oracle Database 12c
Connor McDonald
Pattern Matching with SQL - APEX World Rotterdam 2019
Pattern Matching with SQL - APEX World Rotterdam 2019
Connor McDonald
Analytic functions in Oracle SQL - BIWA 2017
Analytic functions in Oracle SQL - BIWA 2017
Connor McDonald
Database Management System
Database Management System
Hitesh Mohapatra
حل اسئلة الكتاب السعودى فى شرح قواعد البيانات اوراكل
حل اسئلة الكتاب السعودى فى شرح قواعد البيانات اوراكل
Mohamed Moustafa
Performance tuning a quick intoduction
Performance tuning a quick intoduction
Riyaj Shamsudeen
Más contenido relacionado
La actualidad más candente
1 z0 062 - oracle certification
1 z0 062 - oracle certification
adam_jhon
UKOUG
UKOUG
Kellyn Pot'Vin-Gorman
Oracle performance management_implementation_and_user_guide
Oracle performance management_implementation_and_user_guide
gisdev1
1Z0-050 - Oracle Database
1Z0-050 - Oracle Database
adam_jhon
Oracle Succession Planning Setup
Oracle Succession Planning Setup
Feras Ahmad
Optimizing the Enterprise Manager 12c
Optimizing the Enterprise Manager 12c
Kellyn Pot'Vin-Gorman
121perfmiug
121perfmiug
rpkapps
SAP HANA in an EMC Private Cloud
SAP HANA in an EMC Private Cloud
EMC
Oracle Database features every developer should know about
Oracle Database features every developer should know about
gvenzl
La actualidad más candente
(9)
1 z0 062 - oracle certification
1 z0 062 - oracle certification
UKOUG
UKOUG
Oracle performance management_implementation_and_user_guide
Oracle performance management_implementation_and_user_guide
1Z0-050 - Oracle Database
1Z0-050 - Oracle Database
Oracle Succession Planning Setup
Oracle Succession Planning Setup
Optimizing the Enterprise Manager 12c
Optimizing the Enterprise Manager 12c
121perfmiug
121perfmiug
SAP HANA in an EMC Private Cloud
SAP HANA in an EMC Private Cloud
Oracle Database features every developer should know about
Oracle Database features every developer should know about
Similar a Performance tuning how to write correctly sql statement
Performance Tuning: Como escribir y correr correctamente una sentencia SQL en...
Performance Tuning: Como escribir y correr correctamente una sentencia SQL en...
Ronald Francisco Vargas Quesada
Oracle Database 12c Application Development
Oracle Database 12c Application Development
Saurabh K. Gupta
More than 12 More things about Oracle Database 12c
More than 12 More things about Oracle Database 12c
Guatemala User Group
Latin America Tour 2019 - pattern matching
Latin America Tour 2019 - pattern matching
Connor McDonald
Oracle Advanced SQL
Oracle Advanced SQL
Marcin Blaszczyk
Five more things about Oracle SQL and PLSQL
Five more things about Oracle SQL and PLSQL
Connor McDonald
MERGE SQL Statement: Lesser Known Facets
MERGE SQL Statement: Lesser Known Facets
Andrej Pashchenko
New PLSQL in Oracle Database 12c
New PLSQL in Oracle Database 12c
Connor McDonald
Pattern Matching with SQL - APEX World Rotterdam 2019
Pattern Matching with SQL - APEX World Rotterdam 2019
Connor McDonald
Analytic functions in Oracle SQL - BIWA 2017
Analytic functions in Oracle SQL - BIWA 2017
Connor McDonald
Database Management System
Database Management System
Hitesh Mohapatra
حل اسئلة الكتاب السعودى فى شرح قواعد البيانات اوراكل
حل اسئلة الكتاب السعودى فى شرح قواعد البيانات اوراكل
Mohamed Moustafa
Performance tuning a quick intoduction
Performance tuning a quick intoduction
Riyaj Shamsudeen
DB 3 Sybase ASE 15 & MS SQL Server
DB 3 Sybase ASE 15 & MS SQL Server
Sunny U Okoro
Oracle SQL Tuning
Oracle SQL Tuning
Alex Zaballa
Lesson05 从多表中查询数据
Lesson05 从多表中查询数据
renguzi
Sqlplus
Sqlplus
dillip kar
SQL Macros - Game Changing Feature for SQL Developers?
SQL Macros - Game Changing Feature for SQL Developers?
Andrej Pashchenko
Restricting and sorting data
Restricting and sorting data
HuzaifaMushtaq3
chap2 (3).ppt
chap2 (3).ppt
eemantariq2
Similar a Performance tuning how to write correctly sql statement
(20)
Performance Tuning: Como escribir y correr correctamente una sentencia SQL en...
Performance Tuning: Como escribir y correr correctamente una sentencia SQL en...
Oracle Database 12c Application Development
Oracle Database 12c Application Development
More than 12 More things about Oracle Database 12c
More than 12 More things about Oracle Database 12c
Latin America Tour 2019 - pattern matching
Latin America Tour 2019 - pattern matching
Oracle Advanced SQL
Oracle Advanced SQL
Five more things about Oracle SQL and PLSQL
Five more things about Oracle SQL and PLSQL
MERGE SQL Statement: Lesser Known Facets
MERGE SQL Statement: Lesser Known Facets
New PLSQL in Oracle Database 12c
New PLSQL in Oracle Database 12c
Pattern Matching with SQL - APEX World Rotterdam 2019
Pattern Matching with SQL - APEX World Rotterdam 2019
Analytic functions in Oracle SQL - BIWA 2017
Analytic functions in Oracle SQL - BIWA 2017
Database Management System
Database Management System
حل اسئلة الكتاب السعودى فى شرح قواعد البيانات اوراكل
حل اسئلة الكتاب السعودى فى شرح قواعد البيانات اوراكل
Performance tuning a quick intoduction
Performance tuning a quick intoduction
DB 3 Sybase ASE 15 & MS SQL Server
DB 3 Sybase ASE 15 & MS SQL Server
Oracle SQL Tuning
Oracle SQL Tuning
Lesson05 从多表中查询数据
Lesson05 从多表中查询数据
Sqlplus
Sqlplus
SQL Macros - Game Changing Feature for SQL Developers?
SQL Macros - Game Changing Feature for SQL Developers?
Restricting and sorting data
Restricting and sorting data
chap2 (3).ppt
chap2 (3).ppt
Más de Ronald Francisco Vargas Quesada
01 Ronald Vargas 18c cloud service el siguiente paso en la nueva generacion
01 Ronald Vargas 18c cloud service el siguiente paso en la nueva generacion
Ronald Francisco Vargas Quesada
01 Ronald Vargas Verdades ciertas, mitos y falacias sobre oracle database 19c
01 Ronald Vargas Verdades ciertas, mitos y falacias sobre oracle database 19c
Ronald Francisco Vargas Quesada
Análisis de Datos: La guerra, la humanidad y el futuro
Análisis de Datos: La guerra, la humanidad y el futuro
Ronald Francisco Vargas Quesada
Oracle Database XE 18c
Oracle Database XE 18c
Ronald Francisco Vargas Quesada
Ronald vargas big data universidad hispanoamericana v2.1
Ronald vargas big data universidad hispanoamericana v2.1
Ronald Francisco Vargas Quesada
Ronald vargas presente y futuro la adolescencia de los super sistemas computa...
Ronald vargas presente y futuro la adolescencia de los super sistemas computa...
Ronald Francisco Vargas Quesada
Ronald Vargas 18c cloud service el siguiente paso en la nueva generacion
Ronald Vargas 18c cloud service el siguiente paso en la nueva generacion
Ronald Francisco Vargas Quesada
Computación Cognitiva: Mejorando la experiencia del Cliente
Computación Cognitiva: Mejorando la experiencia del Cliente
Ronald Francisco Vargas Quesada
Oracle Database 12cR2 Hacking Etico. Viaje a la zona desconocida.
Oracle Database 12cR2 Hacking Etico. Viaje a la zona desconocida.
Ronald Francisco Vargas Quesada
Oracle Database 12c Arquitectura Single & Multitenant Español
Oracle Database 12c Arquitectura Single & Multitenant Español
Ronald Francisco Vargas Quesada
Ronald vargas computación cognitiva computación del conocimiento introduccion
Ronald vargas computación cognitiva computación del conocimiento introduccion
Ronald Francisco Vargas Quesada
Oracle Database SE2 Single Tenant 12c
Oracle Database SE2 Single Tenant 12c
Ronald Francisco Vargas Quesada
Oracle Database Hacking Etico
Oracle Database Hacking Etico
Ronald Francisco Vargas Quesada
Ventajas y beneficios de oracle database 12c el manejo de datos en la 3era pl...
Ventajas y beneficios de oracle database 12c el manejo de datos en la 3era pl...
Ronald Francisco Vargas Quesada
A todo vapor con oracle forms & services laouc
A todo vapor con oracle forms & services laouc
Ronald Francisco Vargas Quesada
Charla técnica comercial v3.0 junio 2014 db visit productos
Charla técnica comercial v3.0 junio 2014 db visit productos
Ronald Francisco Vargas Quesada
Sociedades de conocimiento
Sociedades de conocimiento
Ronald Francisco Vargas Quesada
Presentación Oracle Database Migración consideraciones 10g/11g/12c
Presentación Oracle Database Migración consideraciones 10g/11g/12c
Ronald Francisco Vargas Quesada
Cedes cloud 2013 ronald vargas quesada
Cedes cloud 2013 ronald vargas quesada
Ronald Francisco Vargas Quesada
Oracle database 12c new features v1 2013 mayo
Oracle database 12c new features v1 2013 mayo
Ronald Francisco Vargas Quesada
Más de Ronald Francisco Vargas Quesada
(20)
01 Ronald Vargas 18c cloud service el siguiente paso en la nueva generacion
01 Ronald Vargas 18c cloud service el siguiente paso en la nueva generacion
01 Ronald Vargas Verdades ciertas, mitos y falacias sobre oracle database 19c
01 Ronald Vargas Verdades ciertas, mitos y falacias sobre oracle database 19c
Análisis de Datos: La guerra, la humanidad y el futuro
Análisis de Datos: La guerra, la humanidad y el futuro
Oracle Database XE 18c
Oracle Database XE 18c
Ronald vargas big data universidad hispanoamericana v2.1
Ronald vargas big data universidad hispanoamericana v2.1
Ronald vargas presente y futuro la adolescencia de los super sistemas computa...
Ronald vargas presente y futuro la adolescencia de los super sistemas computa...
Ronald Vargas 18c cloud service el siguiente paso en la nueva generacion
Ronald Vargas 18c cloud service el siguiente paso en la nueva generacion
Computación Cognitiva: Mejorando la experiencia del Cliente
Computación Cognitiva: Mejorando la experiencia del Cliente
Oracle Database 12cR2 Hacking Etico. Viaje a la zona desconocida.
Oracle Database 12cR2 Hacking Etico. Viaje a la zona desconocida.
Oracle Database 12c Arquitectura Single & Multitenant Español
Oracle Database 12c Arquitectura Single & Multitenant Español
Ronald vargas computación cognitiva computación del conocimiento introduccion
Ronald vargas computación cognitiva computación del conocimiento introduccion
Oracle Database SE2 Single Tenant 12c
Oracle Database SE2 Single Tenant 12c
Oracle Database Hacking Etico
Oracle Database Hacking Etico
Ventajas y beneficios de oracle database 12c el manejo de datos en la 3era pl...
Ventajas y beneficios de oracle database 12c el manejo de datos en la 3era pl...
A todo vapor con oracle forms & services laouc
A todo vapor con oracle forms & services laouc
Charla técnica comercial v3.0 junio 2014 db visit productos
Charla técnica comercial v3.0 junio 2014 db visit productos
Sociedades de conocimiento
Sociedades de conocimiento
Presentación Oracle Database Migración consideraciones 10g/11g/12c
Presentación Oracle Database Migración consideraciones 10g/11g/12c
Cedes cloud 2013 ronald vargas quesada
Cedes cloud 2013 ronald vargas quesada
Oracle database 12c new features v1 2013 mayo
Oracle database 12c new features v1 2013 mayo
Último
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
wesley chun
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Anna Loughnan Colquhoun
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
apidays
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
apidays
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
Remote DBA Services
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Drew Madelung
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Igalia
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
The Digital Insurer
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Principled Technologies
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
The Digital Insurer
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
Boston Institute of Analytics
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
apidays
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
The Digital Insurer
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
debabhi2
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
The Digital Insurer
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Safe Software
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
UK Journal
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
apidays
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
RTylerCroy
Último
(20)
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
Performance tuning how to write correctly sql statement
1.
Performance Tuning: How
to write correctly Ronald Vargas Quesada, Oracle ACE Expertise Database Management & Performance Technical PreSales Consultant, Netsoft de Centroamérica For Oracle employees and authorized partners only. Do not distribute to third parties. © 2012 Oracle Corporation – Proprietary and Confidential 1
2.
Performance Tuning: How
to write correctly <function> ( <arg>,<arg>,..) OVER ( <partition clause> <sorting clause> <windowing clause> ) For Oracle employees and authorized partners only. Do not distribute to third parties. © 2012 Oracle Corporation – Proprietary and Confidential 2
3.
Performance Tuning: How
to write correctly <function> ( <arg>,<arg>,..) OVER | KEEP | WITHING GROUP ( <partition clause> <sorting clause> <windowing clause> ) For Oracle employees and authorized partners only. Do not distribute to third parties. © 2012 Oracle Corporation – Proprietary and Confidential 3
4.
Performance Tuning: How
to write correctly That´s it ! That´s it friends! For Oracle employees and authorized partners only. Do not distribute to third parties. © 2012 Oracle Corporation – Proprietary and Confidential 4
5.
Performance Tuning: How
to write correctly quick example #1 For Oracle employees and authorized partners only. Do not distribute to third parties. © 2012 Oracle Corporation – Proprietary and Confidential 5
6.
employees by salary For
Oracle employees and authorized partners only. Do not distribute to third parties. © 2012 Oracle Corporation – Proprietary and Confidential 6
7.
Performance Tuning: How
to write correctly SQL> select employee_id, job_id, hire_date, salary 2 from employees 3 order by salary; EMPLOYEE_ID ----------132 136 128 127 135 191 119 140 144 182 131 JOB_ID ---------ST_CLERK ST_CLERK ST_CLERK ST_CLERK ST_CLERK SH_CLERK PU_CLERK ST_CLERK ST_CLERK SH_CLERK ST_CLERK HIRE_DATE SALARY --------- ---------10-APR-07 2100 06-FEB-08 2200 08-MAR-08 2200 14-JAN-07 2400 12-DEC-07 2400 19-DEC-07 2500 10-AUG-07 2500 06-APR-06 2500 09-JUL-06 2500 21-JUN-07 2500 16-FEB-05 2500 For Oracle employees and authorized partners only. Do not distribute to third parties. © 2012 Oracle Corporation – Proprietary and Confidential 7
8.
Performance Tuning: How
to write correctly Who hired first ? hiring sequence For Oracle employees and authorized partners only. Do not distribute to third parties. © 2012 Oracle Corporation – Proprietary and Confidential 8
9.
Performance Tuning: How
to write correctly 1 2 3 4 5 6 7 8* SQL> select e.employee_id, e.first_name, e.job_id, e.hire_date, e.salary, x.sequence from employees e, (select e2.employee_id, count(*) sequence from employees e1, employees e2 where e1.hire_date <= e2.hire_date group by e2.employee_id ) x where e.employee_id = x.employee_id order by salary / EMPLOYEE_ID ----------132 128 136 135 127 144 very complicated !! FIRST_NAME -------------------TJ Steven Hazel Ki James Peter JOB_ID ---------ST_CLERK ST_CLERK ST_CLERK ST_CLERK ST_CLERK ST_CLERK HIRE_DATE SALARY SEQUENCE --------- ---------- ---------10-APR-07 2100 85 08-MAR-08 2200 104 06-FEB-08 2200 102 12-DEC-07 2400 95 14-JAN-07 2400 78 09-JUL-06 2500 71 For Oracle employees and authorized partners only. Do not distribute to third parties. © 2012 Oracle Corporation – Proprietary and Confidential 9
10.
Performance Tuning: How
to write correctly Is very simple ? For Oracle employees and authorized partners only. Do not distribute to third parties. © 2012 Oracle Corporation – Proprietary and Confidential 10
11.
Performance Tuning: How
to write correctly Much or little work ? For Oracle employees and authorized partners only. Do not distribute to third parties. © 2012 Oracle Corporation – Proprietary and Confidential 11
12.
Performance Tuning: How
to write correctly PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------Plan hash value: 2074273239 ------------------------------------------------------------------------------------| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | ------------------------------------------------------------------------------------| 0 | SELECT STATEMENT | | 107 | 5243 | 14 (36)| 00:00:01 | | 1 | SORT ORDER BY | | 107 | 5243 | 14 (36)| 00:00:01 | |* 2 | HASH JOIN | | 107 | 5243 | 13 (31)| 00:00:01 | | 3 | TABLE ACCESS FULL | EMPLOYEES | 107 | 3424 | 3 (0)| 00:00:01 | | 4 | VIEW | | 107 | 1819 | 9 (34)| 00:00:01 | | 5 | HASH GROUP BY | | 107 | 2140 | 9 (34)| 00:00:01 | | 6 | MERGE JOIN | | 5783 | 112K| 8 (25)| 00:00:01 | | 7 | SORT JOIN | | 107 | 856 | 4 (25)| 00:00:01 | | 8 | TABLE ACCESS FULL| EMPLOYEES | 107 | 856 | 3 (0)| 00:00:01 | |* 9 | SORT JOIN | | 107 | 1284 | 4 (25)| 00:00:01 | | 10 | TABLE ACCESS FULL| EMPLOYEES | 107 | 1284 | 3 (0)| 00:00:01 | ------------------------------------------------------------------------------------Predicate Information (identified by operation id): --------------------------------------------------2 - access("E"."EMPLOYEE_ID"="X"."EMPLOYEE_ID") 9 - access("E1"."HIRE_DATE"<="E2"."HIRE_DATE") filter("E1"."HIRE_DATE"<="E2"."HIRE_DATE") 24 rows selected. For Oracle employees and authorized partners only. Do not distribute to third parties. © 2012 Oracle Corporation – Proprietary and Confidential 12
13.
Performance Tuning: How
to write correctly Make it Simple !! For Oracle employees and authorized partners only. Do not distribute to third parties. © 2012 Oracle Corporation – Proprietary and Confidential 13
14.
Performance Tuning: How
to write correctly SQL> select employee_id, first_name, job_id, hire_date, salary, rank() over (order by hire_date) as hire_seq 2 from employees 3 order by salary; EMPLOYEE_ID ----------132 136 128 127 135 131 140 144 FIRST_NAME -------------------TJ Hazel Steven James Ki James Joshua Peter JOB_ID ---------ST_CLERK ST_CLERK ST_CLERK ST_CLERK ST_CLERK ST_CLERK ST_CLERK ST_CLERK HIRE_DATE SALARY HIRE_SEQ --------- ---------- ---------10-APR-07 2100 85 06-FEB-08 2200 102 08-MAR-08 2200 104 14-JAN-07 2400 78 12-DEC-07 2400 95 16-FEB-05 2500 28 06-APR-06 2500 65 09-JUL-06 2500 71 For Oracle employees and authorized partners only. Do not distribute to third parties. © 2012 Oracle Corporation – Proprietary and Confidential 14
15.
Performance Tuning: How
to write correctly SQL> select * from table(dbms_xplan.display); PLAN_TABLE_OUTPUT ---------------------------------------------------------------------------------Plan hash value: 1701542182 --------------------------------------------------------------------------------| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | --------------------------------------------------------------------------------| 0 | SELECT STATEMENT | | 107 | 3424 | 5 (40)| 00:00:01 | | 1 | SORT ORDER BY | | 107 | 3424 | 5 (40)| 00:00:01 | | 2 | WINDOW SORT | | 107 | 3424 | 5 (40)| 00:00:01 | | 3 | TABLE ACCESS FULL| EMPLOYEES | 107 | 3424 | 3 (0)| 00:00:01 | --------------------------------------------------------------------------------10 rows selected. For Oracle employees and authorized partners only. Do not distribute to third parties. © 2012 Oracle Corporation – Proprietary and Confidential 15
16.
Performance Tuning: How
to write correctly Not using bind variable SQL> host [oracle@LAB1 ~]$ vi script1.sql [oracle@LAB1 ~]$ more script1.sql set timing on begin for i in 1 .. 100000 loop execute immediate 'insert into t (x,y) values ( ' || i || ', ''x'') '; end loop; end; / [oracle@LAB1 ~]$ For Oracle employees and authorized partners only. Do not distribute to third parties. © 2012 Oracle Corporation – Proprietary and Confidential 16
17.
Performance Tuning: How
to write correctly Using Bind variable [oracle@LAB1 ~]$ more script2.sql set timing on begin for i in 1 .. 100000 loop execute immediate 'insert into t (x,y) values ( :i, ''x'')' using i; end loop; end; / [oracle@LAB1 ~]$ For Oracle employees and authorized partners only. Do not distribute to third parties. © 2012 Oracle Corporation – Proprietary and Confidential 17
18.
@rovaque oracledbacr.blogspot.com ronald.vargas.quesada@gmail.com For Oracle employees
and authorized partners only. Do not distribute to third parties. © 2012 Oracle Corporation – Proprietary and Confidential 18
Descargar ahora