zoukankan      html  css  js  c++  java
  • 关于v$librarycache的几个字段含义

    对v$librarycache中的get,pin和reload的含义:
    Gets: (Parse) The number of lookups for objects of the namespace
    Pins: (Execution) The number of reads or executions of the objects of the namespace
    Reloads: (Reparse) The number of library cache misses on the execution step,causing implicit reparsing of the statement and block
    
    lijing回复:
    当一个sql语句传给oracle之后,oracle首先要到share pool中找有没有相同的语句存在,如果没有就进行硬解析;
    如果有的话就算作是算作是一次get,并查找这条sql语句的执行计划,如果在执行计划已经不存在了或者是存在但不可用,那么就必须对这条sql语句重新进行一个硬解析,这就叫reload,
    如果执行计划存在并且可用的话,oracle就执行这句话,这就叫做execution
    
    rwq_ 质疑:
    “如果在执行计划已经不存在了或者是存在但不可用,那么就必须对这条sql语句重新进行一个硬解析”这一句值得怀疑:执行计划是在硬解析中生成的吗?
    
    
    lijing回复:
    看看hard parse要做些什么:
    the parse step must complete the following tasks:
     1.Check the statement for syntactic correctness.
     2.Perform object resolution where the names and structures of the referenced objects are checked against the data dictionary.
     3.Gather statistics regarding the objects referenced in the query by examining the data dictionary.
     4.Prepare and select an execution plan from among the available plans,including the determination of whether Stored Outlines or Materialized Views are relevant.
     5.Determine the security for the objects referenced in the query by examining the data dictionary.
     6.Generate a compiled version of the statement (calledP-Code).
    
    --摘自Sybex 的《Oracle9i Performance Tuning Study Guide》 
  • 相关阅读:
    网页工具KOBAS进行KEGG富集分析
    Novel LncRNA的实时定量PCR引物设计教程
    Annotated LncRNA的实时定量PCR引物设计教程
    GO分析-GOseq的使用教程
    转录因子预测-oPOSSUM 3.0的使用教程
    miRNA结合位点预测软件RNAhybrid的使用教程
    关于win10用户名设置为中文导致Rstudio画图报错的解决方法
    edgeR之配对检验分析差异基因的使用教程
    51nod 1051最大子矩阵和
    51nod最大字段和(1049 1254)
  • 原文地址:https://www.cnblogs.com/polestar/p/9799170.html
Copyright © 2011-2022 走看看