zoukankan      html  css  js  c++  java
  • [bbk2228] 第41集 Chapter 11SQL Statement Tuning(00)

    Objectives

    After completing this lesson,you should be able to do the following:

    • Control optimizer options
    • Use optimizer hints
    • Employe plan stability
    • Use store outlines(在10g,11g已经过时)
    • Use SQL Trace and TKPROF

    Overview

    The purpose of this lesson is:

    • To provide mthods to determine the resources used by SQL statements:
      • -Oracle Enterprise Manager
      • -Statuspack
      • -Explain plan
      • -SQL Trace and TKPROF
      • -Autotrace
    • To determine which SQL statements possibly require tuning
    • Not to tune the actual SQL statements

    Optimizer Modes

    There are two types of optimizer modes:

    • Rule-based:(Rule based Optimizer 俗称RBO)
      • Uses a ranking system
      • Syntax-and data dictionary-driven(基于语法逻辑和一些数据字典信息进行驱动的优化)
    • Cost-based:(Cost based Optimizer 俗称CBO)
      • Chooses the path with lowest cost
      • Statistics-driven(基于分析统计报表数据,进行优化驱动)

    备注:目前RBO已经退出历史舞台,不在实际应用中使用;

  • 相关阅读:
    浅谈Cauchy不等式
    终于结束的起点——CSP-S 2019 第二轮游记
    LOJ 10172 涂抹果酱
    数字表格
    CSP-S 2019 第一轮 游记
    20191011模拟赛
    Luogu 2327 扫雷
    NOIAC 30 candy
    FormData文件上传
    sde表空间无法导入数据和编辑
  • 原文地址:https://www.cnblogs.com/arcer/p/3059267.html
Copyright © 2011-2022 走看看