
Oracle PL/SQL Performance Tuning Tips & Techniques
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Cover
- Title Page
- Copyright Page
- Dedication
- Contents
- Foreword
- Acknowledgments
- Introduction
- Part I: Core Ideas and Elements of PL/SQL Performance Tuning
- 1 The Role of PL/SQL in Contemporary Development
- Typical Web Application Process Flow
- Web Application Performance Problem Areas
- Step 1: Client Machine Performance Problems
- Step 2: Client Machine to Application Server Transmission Problems
- Step 3: Application Server Performance Problems
- Step 4: Application Server to Database Transmission Problems
- Step 5: Database Performance Problems
- Step 6: Database to Application Server Transmission Problems
- Step 7: Application Server Processing Performance Problems
- Step 8: Application Server to Client Machine Transmission Problems
- Step 9: Client Machine Performance Problems
- Finding the Cause of Slowly Performing Web Applications
- Using Timers to Gather Data About Performance
- Measuring Performance
- Solving Web Application Performance Problems
- Solving Client Machine Performance Problems (Steps 1 and 9)
- Resolving Performance Issues Between the Client Machine and Application Server (Step 2)
- Solving Performance Problems in the Application Server (Steps 3 and 7)
- Solving Performance Problems in the Client Machine (Step 9)
- Lessons Learned
- Summary
- 2 DBA/Developer Borderline: Tools and Features
- Data Dictionary Views
- Oracle Logging and Tracing
- Logging Basics
- Tracing Basics
- Logging/Tracing Example
- PL/SQL Hierarchical Profiler
- RUNSTATS
- PL/SQL Environment Settings
- PLSQL_OPTIMIZE_LEVEL
- PLSQL_CODE_TYPE
- PLSQL_WARNINGS
- PLSQL_CCFLAGS
- PL/Scope
- Summary
- 3 Code Instrumentation in PL/SQL
- Is the Problem Really in the Database?
- Application Logging
- Built-in Code Navigation APIs
- User-Driven Logging
- Code Instrumentation Best Practices
- Placing Process Markers
- Placing Error Markers
- Summary
- Part II: Linking SQL and PL/SQL
- 4 Expanding the SQL Horizons
- Stepping Outside the SQL Box
- Making Life Simpler by Switching to PL/SQL
- Using PL/SQL to Fill Functionality Gaps
- Calling Functions Within SQL
- Single-Table Problems
- Multi-Table Problems
- PL/SQL-Related Statistics and Their Impact on Execution Plans
- Hardware Costs of PL/SQL Functions
- Cardinality of PL/SQL Functions
- Selectivity of PL/SQL Functions
- Oracle Database 12c-Only Features
- PRAGMA UDF Clause
- Adding Functions Inside the WITH Clause
- Summary
- 5 Thinking in Sets
- Cursors
- Loading Sets from SQL to PL/SQL
- Oracle Database 12c: Implicit Pagination vs. Continuous Fetch
- Merging Sets Using PL/SQL
- ".And Justice FORALL!"
- Staying Up to Date with Syntax: Sparse Collections
- Direct Inserts
- FORALL and Table Triggers
- Summary
- 6 Pulling the Trigger
- DML Triggers
- Data Protection: Constraints vs. Triggers
- Default Values
- Cost of Denormalization
- INSTEAD OF Triggers
- Basic DML Operations
- Dangers of Logical Primary Keys
- Handling UPDATE Statements
- Summary
- Part III: Tuner's Toolkit
- 7 Going Beyond Scalar Datatypes
- Managing LOBs
- Access to LOBs
- Storage Mechanisms
- I/O Tuning Considerations
- SecureFile-Only Features
- Managing XML
- Storing XML
- Manipulating XML
- Summary
- 8 Keeping the Cache
- Built-in Caching Techniques
- Deterministic Functions
- Scalar Subquery Caching
- PL/SQL Function Result Cache
- Manual Caching Techniques
- PL/SQL Collections
- Oracle Context
- Summary
- 9 Shooting at a Moving Target
- Expanding the Knowledge Base
- CLOB Input
- Cursor Transformation
- PL/SQL Function Result Cache Integration
- Support for Complex Datatypes
- Digging Deeper
- More About Search
- IN-LIST Trap
- Challenging Dynamic SQL Myths
- Myth #1: Dynamic SQL Is Always a Security Risk
- Myth #2: Dynamic SQL Is Always Slower Than Regular SQL
- Myth #3: Dynamic SQL Always Causes Parsing
- Myth #4: DDL Statements Are Only for DBAs
- Summary
- Part IV: PL/SQL in Daily Life
- 10 Tales from the Trenches
- Third-Party Wrapped Code
- Stateless Issues
- Unknown UNDO
- The Curse of Recursion
- Recursion and Cursors
- Recursion and Variables
- Summary
- 11 Code Management in Real-World Systems
- The Problem of Code Management
- Versioning "Lite" for DBAs
- Homegrown Versioning
- Edition-Based Redefinition and Performance Tuning
- Understanding Edition-Based Redefinition
- Important Changes to EBR Introduced in Oracle Database 12c
- System Environment Differences and Performance-Related Code Management
- Summary
- 12 Extra Tips, Tricks, and Ideas
- Back to Basics
- VARCHAR2 Memory Allocation
- The Cost of Current Date
- BINARY Datatypes
- Text Manipulation
- Checking Text Strings for Valid Characters
- Similarity of Words
- VARCHAR2 and Views
- Increasing Processing Complexity
- NOCACHE Optimization
- ACCESSIBLE BY Clause
- More About Pipelined Functions
- Summary
- Index
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.