THỜI LƯỢNG: 3 ngày (~ 24 giờ)
GIỚI THIỆU KHÓA HỌC
Chương trình đào tạo Oracle: SQL Tuning Workshop hỗ trợ các nhà phát triển cơ sở dữ liệu, các nhà phát triển DBA và SQL trong việc xác định và điều chỉnh các câu lệnh SQL không hiệu quả, khám phá các phương pháp điều tra nhằm phát hiện các mức độ thực hiện câu lệnh SQL từ đó xác định nguyên nhân gốc rễ của các câu lệnh SQL không hiệu quả.
MỤC TIÊU KHÓA HỌC
Sau khi hoàn tất khóa học, học viên có khả năng:
- Theo dõi ứng dụng thông qua các cấp độ khác nhau của kiến trúc ứng dụng
- Nắm bắt cách thức Tối ưu hóa Truy vấn dữ liệu đưa ra quyết định về việc truy cập dữ liệu
- Xác định mức độ ảnh hưởng của Tối ưu hóa Thống kê đến hiệu suất của SQL
- Tìm hiểu các phương thức truy cập dữ liệu bao gồm các phương thức nối khác nhau
- Xác định SQL hoạt động kém
- Sửa đổi câu lệnh SQL cho hiệu suất tốt nhất
ĐỐI TƯỢNG THAM GIA
- Application Developers
- Database Administrators
- Developer
- Support Engineer
- Data Warehouse Developer
- Data Warehouse Administrator
- Data Warehouse Administrator
- PL/SQL Developer
ĐIỀU KIỆN TIÊN QUYẾT
KHÓA HỌC LIÊN QUAN
Oracle Database: SQL Tuning for Developers
CHỨNG NHẬN
Sau khi hoàn tất khóa học, học viên sẽ được cấp chứng nhận hoàn tất khóa học của Oracle.
NỘI DUNG KHÓA HỌC
Module 1: Exploring the Oracle Database Architecture
- Oracle Database Server Architecture: Overview
- Automated SQL Execution Memory Management
- Database Storage Architecture, Logical and Physical Database Structures
- Physical Structure
- Segments, Extents, and Blocks & SYSTEM and SYSAUX Tablespaces
- Automatic Shared Memory Management
- Connecting to the Database Instance
- Oracle Database Memory Structures: Overview
Module 2: Introduction to SQL Tuning
- Monitoring and Tuning Tools: Overview
- Scalability with Application Design, Implementation, and Configuration
- Simplicity in Application Design
- Reason for Inefficient SQL Performance
- Performance Monitoring Solutions
- Common Mistakes on Customer systems & Proactive Tuning Methodology
- CPU and Wait Time Tuning Dimensions
- Data Modeling, Table Design, Index Design, Using Views, SQL Execution Efficiency, Overview of SQL*Plus & SQL Developer
Module 3: Introduction to the Optimizer
- Transformer & Estimator
- Optimization During Hard Parse Operation
- SQL Statement Parsing: Overview
- Structured Query Language
- Plan Generator
- Cost-Based Optimizer
- Controlling the Behavior of the Optimizer, Optimizer Features and Oracle Database Releases
- Why Do You Need an Optimizer?
Module 4: Interpreting Execution Plans
- Looking Beyond Execution Plans
- Automatic Workload Repository (AWR)
- Interpreting an Execution Plan
- Using the V$SQL_PLAN View
- What Is an Execution Plan? Where To Find Execution Plans and Viewing Execution Plans
- Reading More Complex Execution Plans and Reviewing the Execution Plan
- SQL Monitoring: Overview
- Plan Table & AUTOTRACE
Module 5: Application Tracing
- End-to-End Application Tracing Challenge
- Use Enterprise Manager to Trace Services
- tkprof Output with and without Index: Example
- Location for Diagnostic Traces
- What is a Service? Use Services with Client Applications & Tracing Services
- Session Level Tracing: Example
- The trcsess Utility and SQL Trace File Contents
- Invoking the tkprof Utility and Output of the tkprof Command
Module 6: Optimizer: Table and Index Operations
- Row Source Operations, Main Structures and Access Paths
- Index-Organized Tables
- Bitmap Indexes, Bitmap Operations and Bitmap Join Index
- Guidelines for Managing Indexes and Investigating Index Usage
- Using Indexes: Considering Nullable Columns
- Full Table Scan
- Indexes: Overview and B*-tree Indexes and Nulls
- Composite Indexes and Invisible Index
Module 7: Optimizer Join Methods
- Hash Join and Cartesian Join
- Equijoins and Nonequijoins
- Outer Joins
- Antijoins
- Nested Loops Join
- Nested Loops Join: 11g Implementation
- Semijoins
- Sort Merge join
Module 8: Optimizer: Other Operators
- Result Cache Operator
- When Are Clusters Useful?
- Filter operations and Concatenation Operations
- Count Stop Key Operator
- Min/Max and First Row Operators and Other N-Array Operations
- Sorting Operators and Buffer Sort Operator
- Inlist Iterator and View Operator
- UNION [ALL], INTERSECT, MINUS
Module 9: Case Study: Star Transformation
- Star Transformation Hints
- Using Bitmap Join Indexes
- The Star Schema Model and The Snowflake Schema Model
- Bitmap Join Indexes: Join Model 1 to 4
- Star Transformation Plan Examples
- Star Transformation
- Retrieving Fact Rows from One Dimension and from All Dimensions
- Joining the Intermediate Result Set with Dimensions
Module 10: Optimizer Statistics
- Locking Statistics, Export/Import Statistics and Set Statistics
- Gathering System Statistics and Statistic Preferences
- Manual Statistics Gathering
- Table, Index and Column Statistics
- Histograms, Frequency Histograms and Histogram Considerations
- Types of Optimizer Statistics
- Multicolumn Statistics and Expression Statistics Overview
- Index Clustering Factor
Module 11: Using Bind Variables
- Bind Variable Peeking
- Cursor Sharing Enhancements
- The CURSOR_SHARING Parameter
- Interacting with Adaptive Cursor Sharing
- Cursor Sharing and Different Literal Values
- Forcing Cursor Sharing
- Adaptive Cursor Sharing
- Cursor Sharing and Bind Variables
Module 12: Using SQL Tuning Advisor
- Tuning SQL Statements Automatically
- Database Control and SQL Tuning Advisor
- Stale or Missing Object Statistics and SQL Statement Profiling
- SQL Tuning Loop, Access Path Analysis and SQL Structure Analysis
- Application Tuning Challenges
- SQL Tuning Advisor: Overview
- Implementing Recommendations
- Plan Tuning Flow and SQL Profile Creation
Module 13: Using SQL Access Advisor
- SQL Access Advisor: Overview
- SQL Access Advisor: Schedule and Review
- SQL Access Advisor: Workload Source
- SQL Access Advisor: Results
- Possible Recommendations
- SQL Access Advisor Session: Initial Options
- SQL Access Advisor: Recommendation Options
- SQL Access Advisor: Results and Implementation
Module 14: Using Automatic SQL Tuning
- Automatic SQL Tuning
- Automatic SQL Tuning: Result Summary
- Configuring Automatic SQL Tuning
- SQL Tuning Loop
- Automatic SQL Tuning: Result Details
- Automatic SQL Tuning Result Details: Drilldown
- Automatic SQL Tuning Considerations
- Automatic Tuning Process
Module 15: SQL Performance Management
- SQL Plan Baseline: Architecture
- Maintaining SQL Performance and SQL Plan Management: Overview
- SQL Plan Selection
- Enterprise Manager and SQL Plan Baselines
- Possible SQL Plan Manageability Scenarios
- SQL Performance Analyzer and SQL Plan Baseline Scenario
- Loading a SQL Plan Baseline Automatically and Purging SQL Management Base Policy
- Important Baseline SQL Plan Attributes