Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Oracle’ın parallel execution yetenekleri ve performans

1,868 views

Published on

Oracle’ın parallel execution yetenekleri ve performans

Published in: Engineering
  • Be the first to comment

  • Be the first to like this

Oracle’ın parallel execution yetenekleri ve performans

  1. 1. Oracle’ın Parallel Execution Yetenekleri ve Performans İncelemesi Emrah METE TURKCELL TEKNOLOJİ
  2. 2. Emrah METE Marmara Üniversitesi Bilgisayar Teknolojisi ve Programlama Yıldız Teknik Üniversitesi Bilgisayar Mühendisliği Turkcell Teknoloji Yazılım Geliştirme Uzmanı emrahmete.wordpress.com Facebook, twitter, Google+, Linkedin TROUG www.troug.org
  3. 3. İçerik • Parallel Execution Nedir? • Neden Parallel Execution Kullanırız? • Parallel Execution Ne Zaman Kullanmalıyız? • Oracle’ın Parallel Execution Yetenekleri – Parallel Query – Parallel DML – Parallel DDL – Procedural Parallelism – Oracle 11g New Features • dbms_parallel_execute • Auto DoP ve PSQ
  4. 4. Parallel Execution ?
  5. 5. Neden Parallel Execution Kullanırız? • Seri çalışan çok büyük görevleri paraleleştirerek daha hızlı ve performanslı sonuçlar almak için kullanırız. HIZ + PERFORMANS !
  6. 6. Parallel Execution Ne Zaman Kullanmalıyız? 1 – Paralel çalıştıracağımız görev büyük bir işlem olmalı(Ör: 50 GB’lık bir datayı load etmek.) (OLAP/OLTP) 2- Sistemimizin donanım karakteristiğinin parallel execution yapmaya yeterli olması gerekir. 3- Parallel Execution yapmak için sistemimizde yeterli available kaynakların olması gerekir.
  7. 7. Oracle’ın Parallel Execution Yetenekleri • Parallel Query • Parallel DML (PDML) • Parallel DDL • Procedural Parallelism • Oracle 11g New Features – Auto DoP ve PSQ (Parallel Statement Queue) – DBMS_PARALLEL_EXECUTION
  8. 8. Parallel Query • select count(status) from big_table <<Expert, Oracle Database Architecture 11g,10g,9i>> Tom KYTE (2010)
  9. 9. <<Expert, Oracle Database Architecture 11g,10g,9i>> Tom KYTE (2010)
  10. 10. Parallel DML (PDML) • Insert – Update – Delete – Merge ORA-12838: cannot read/modify an object after modifying it in parallel. <<Expert, Oracle Database Architecture 11g,10g,9i>> Tom KYTE (2010)
  11. 11. Parallel DDL • CREATE INDEX • CREATE TABLE AS SELECT • ALTER INDEX REBULD • ALTER TABLE MOVE • ALTER TABLE SPLIT|COALESCE PARTITION • ALTER INDEX SPLIT PARTITION
  12. 12. • Create Table big_table as Select .... Parallel DDL <<Expert, Oracle Database Architecture 11g,10g,9i>> Tom KYTE (2010)
  13. 13. Procedural Parallelism • Selecting Rows • Processing them • Insert/ Update another table <<Expert, Oracle Database Architecture 11g,10g,9i>> Tom KYTE (2010)
  14. 14. Procedural Parallelism Parallel Pipelined Function Unparallelized, Unpipelined Table Functions Pipelining and Parallel Execution
  15. 15. Procedural Parallelism • Select * from table(dbms_xplan.display); <<Expert, Oracle Database Architecture 11g,10g,9i>> Tom KYTE (2010)
  16. 16. DBMS_PARALLEL_EXECUTE (Do it yourself parallesim) <<Expert, Oracle Database Architecture 11g,10g,9i>> Tom KYTE (2010)
  17. 17. DBMS_PARALLEL_EXECUTE (Do it yourself parallesim)
  18. 18. Automatic Degree of Parallelism (Auto DoP) PARALLEL_DEGREE_POLICY PARALLEL_DEGREE_LIMIT PARALLEL_MIN_TIME_THRESHOLD DOP = PARALLEL_THREADS_PER_CPU x CPU_COUNT x INSTANCE_COUNT (DEFAULT) https://blogs.oracle.com/datawarehousing/entry/auto_dop_and_parallel_statemen
  19. 19. Automatic Degree of Parallelism (Auto DoP)
  20. 20. Parallel Statement Queue (PSQ)
  21. 21. Kaynaklar • «Expert, Oracle Database Architecture 11g,10g,9i» Tom KYTE (2010) • tahiti.oracle.com • Oracle 11g Release 2 New Features Guide • Oracle 11g Release 2 Concept Guide • Oracle Datawarehouse Guide • blogs.oracle.com – The Datawarehouse Insider, Auto DOP and Parallel Statement Queuing • Oracle Technology Network - On Working in Parallel By Steven Feuerstein - Automating Parallelism By Arup Nanda
  22. 22. Sorular?/Yorumlar
  23. 23. Teşekkürler

×