PLAN_TABLE

来源:http://www.cnblogs.com/jy627625/archive/2016/07/12/5662630.html
-Advertisement-
Play Games

PLAN_TABLE PLAN_TABLE is automatically created as a global temporary table to hold(保存) the output of an EXPLAIN PLAN statement for all users.PLAN_TABL ...


PLAN_TABLE

PLAN_TABLE is automatically created as a global temporary table to hold(保存) the output of an EXPLAIN PLAN statement for all users.PLAN_TABLE is the default sample(樣本) output table into which the EXPLAIN PLAN statement inserts rows describing(描述) execution plans.

While a PLAN_TABLE table is automatically set up for each user, you can use the SQL script utlxplan.sql to manually create a local PLAN_TABLE in your schema.

ColumnDatatypeNULLDescription

STATEMENT_ID

VARCHAR2(30)

 

Value of the optional STATEMENT_ID parameter specified in the EXPLAIN PLAN statement

PLAN_ID

NUMBER

 

Unique identifier of a plan in the database

TIMESTAMP

DATE

 

Date and time when the EXPLAIN PLAN statement was generated(產生)

REMARKS(註釋)

VARCHAR2(4000)

 

Any comment(註釋) (of up to 4000 bytes) you want to associate(關聯) with each step of the explained plan. This column is used to indicate whether an outline or SQL Profile was used for the query.

If you need to add or change a remark on any row of the PLAN_TABLE, then use the UPDATE statement to modify the rows of the PLAN_TABLE.

OPERATION

VARCHAR2(30)

 

Name of the internal(內部) operation performed(執行) in this step. In the first row generated for a statement, the column contains one of the following values:

  • DELETE STATEMENT

  • INSERT STATEMENT

  • SELECT STATEMENT

  • UPDATE STATEMENT

OPTIONS(選項)

VARCHAR2(255)

 

A variation(變動) on the operation described in the OPERATION column

OBJECT_NODE

VARCHAR2(128)

 

Name of the database link used to reference the object (a table name or view name). For local queries using parallel execution, this column describes the order in which output from operations is consumed(消費).

OBJECT_OWNER

VARCHAR2(128)

 

Owner of the table or index

OBJECT_NAME

VARCHAR2(128)

 

Name of the table or index

OBJECT_ALIAS

VARCHAR2(261)

 

Unique alias(別名) of a table or view in a SQL statement. For indexes, it is the object alias of the underlying(底層) table.

OBJECT_INSTANCE

NUMBER(38)

 

Number corresponding(對應的) to the ordinal position(順序數位置) of the object as it appears in the original statement. The numbering proceeds(往前) from left to right, outer to inner with respect(遵守) to the original statement text. View expansion results in unpredictable(不可預知的) numbers.

OBJECT_TYPE

VARCHAR2(30)

 

Modifier that provides(提供) descriptive information about the object; for example, NON-UNIQUE for indexes

OPTIMIZER(優化器)

VARCHAR2(255)

 

Current mode of the optimizer

SEARCH_COLUMNS

NUMBER

 

Not currently used

ID

NUMBER(38)

 

A number assigned(分配) to each step in the execution plan

PARENT_ID

NUMBER(38)

 

ID of the next execution step that operates on the output of the ID step

DEPTH

NUMBER(38)

 

Depth(深度) of the operation in the row source tree that the plan represents. The value can be used for indenting the rows in a plan table report(表示).

POSITION

NUMBER(38)

 

For the first row of output, this indicates the optimizer's estimated cost(優化器估計的消耗) of executing the statement. For the other rows, it indicates the position relative(相對的) to the other children of the same parent.

COST

NUMBER(38)

 

Cost of the operation as estimated by the optimizer's query approach(途徑). Cost is not determined for table access operations. The value of this column does not have any particular unit of measurement(測量特定的單位); it is merely(僅僅) a weighted value used to compare costs of execution plans. The value of this column is a function of the CPU_COST and IO_COST columns.

CARDINALITY

NUMBER(38)

 

Estimate by the query optimization approach of the number of rows accessed by the operation

BYTES

NUMBER(38)

 

Estimate by the query optimization approach of the number of bytes accessed by the operation

OTHER_TAG

VARCHAR2(255)

 

Describes the contents of the OTHER column:

  • SERIAL(順序的) - Serial execution. Currently, SQL is not loaded in the OTHER column for this case.

  • SERIAL_FROM_REMOTE - Serial execution at a remote site(位置).

  • PARALLEL_FROM_SERIAL - Serial execution. Output of step is partitioned or broadcast(廣播) to parallel execution servers.

  • PARALLEL_TO_SERIAL - Parallel execution. Output of step is returned to serial query coordinator (QC)(查詢協調) process.

  • PARALLEL_TO_PARALLEL - Parallel execution. Output of step is repartitioned to second set of parallel execution servers.

  • PARALLEL_COMBINED(聯合)_WITH_PARENT - Parallel execution; Output of step goes to next step in same parallel process. No interprocess communication(進程間通信) to parent.

  • PARALLEL_COMBINED_WITH_CHILD - Parallel execution. Input of step comes from prior(先) step in same parallel process. No interprocess communication from child.

PARTITION_START

VARCHAR2(255)

 

Start partition of a range of accessed partitions:

  • number - Start partition has been identified by the SQL compiler(編譯), and its partition number is given by number

  • KEY - Start partition will be identified at run time from partitioning key values

  • ROW REMOVE_LOCATION - Start partition (same as the stop partition) will be computed at run time from the location of each record being retrieved(檢索). The record location(位置) is obtained(獲得) by a user or from a global index.

  • INVALID - Range of accessed partitions is empty

PARTITION_STOP

VARCHAR2(255)

 

Stop partition of a range of accessed partitions:

  • number - Stop partition has been identified by the SQL compiler, and its partition number is given by number

  • KEY - Stop partition will be identified at run time from partitioning key values

  • ROW REMOVE_LOCATION - Stop partition (same as the start partition) will be computed at run time from the location of each record being retrieved. The record location is obtained by a user or from a global index.

  • INVALID - Range of accessed partitions is empty

PARTITION_ID

NUMBER(38)

 

Step that has computed the pair of values of thePARTITION_START and PARTITION_STOP columns

OTHER

LONG

 

Other information that is specific to the execution step that a user might find useful (see the OTHER_TAG column)

OTHER_XML

CLOB

 

Provides extra information specific to an execution step of the execution plan. The content of this column is structured using XML since multiple pieces of information can be stored there. This includes:

  • Name of the schema against which the query was parsed

  • Release number of the Oracle Database that produced the explain plan

  • Hash value associated with the execution plan

  • Name (if any) of the outline or the SQL profile used to build the execution plan

  • Indication of whether or not dynamic statistics were used to produce the plan

  • The outline data, a set of optimizer hints that can be used to regenerate the same plan

DISTRIBUTION

VARCHAR2(30)

 

Method used to distribute rows from producer query servers to consumer query servers

See Also: Oracle Database Data Warehousing Guide for more information about consumer and producer query servers

CPU_COST

NUMBER(38)

 

CPU cost of the operation as estimated by the query optimizer's approach. The value of this column is proportional to the number of machine cycles required for the operation. For statements that use the rule-based approach, this column is NULL.

IO_COST

NUMBER(38)

 

I/O cost of the operation as estimated by the query optimizer's approach. The value of this column is proportional to the number of data blocks read by the operation. For statements that use the rule-based approach, this column is NULL.

TEMP_SPACE

NUMBER(38)

 

Temporary space (in bytes) used by the operation as estimated by the query optimizer's approach. For statements that use the rule-based approach, or for operations that do not use any temporary space, this column is NULL.

ACCESS_PREDICATES

VARCHAR2(4000)

 

Predicates used to locate rows in an access structure. For example, start or stop predicates for an index range scan.

FILTER_PREDICATES

VARCHAR2(4000)

 

Predicates used to filter rows before producing them

PROJECTION

VARCHAR2(4000)

 

Expressions produced by the operation

TIME

NUMBER(38)

 

Elapsed time (in seconds) of the operation as estimated by query optimization. For statements that use the rule-based approach, this column is NULL.

QBLOCK_NAME

VARCHAR2(30)

 

Name of the query block (either system-generated or defined by the user with the QB_NAME hint)


您的分享是我們最大的動力!

-Advertisement-
Play Games
更多相關文章
  • 1、跳轉到一個新的Actitity 新建項目, 新建一個java類OtherScreenActivity 繼承自 Activity類 顯然需要新建一個名為activity_two的android.xml,隨便寫一些控制項佈局一下 MainActivity.java中的代碼如下 當然,click中的代碼 ...
  • 自定義TabBarController Push下一級Controller時 會報這樣的錯誤:Unbalanced calls to begin/end appearance transitions for <XXXViewController: 0x7fcea3730650>. 網上的一些回答,都 ...
  • iOS 直播 實現後臺錄音並推流 從一個月前開始開始接收公司的直播類app.到今天為止測試都已接近尾聲,但是產品哥哥加了一個要求,就是在app進入後臺後也實時保證錄音並且推流. 剛聽到這個的時候我也是懵逼的,可是冷靜下來找資料,還是有所收穫的,在此分享一下. 對於我們的app要求後臺也實時錄音並推流 ...
  • iOS 怎麼設置 UITabBarController 的第n個item為第一響應者? UITabBarController 裡面有個屬性:selectedIndex @property(nonatomic) NSUInteger selectedIndex; UITabBarController ...
  • select count(1) as nums, sd.name from [Master].[dbo].[SYSPROCESSES] spinner join [Master].[dbo].[SYSDATABASES] sd on sp.dbid=sd.dbid--where --sd.name ...
  • 問題 我們經常遇到一種情況,在SSMS中運行很慢的一個查詢,當把查詢轉化成從源到目的資料庫的SSIS數據流以後,需要花費幾倍的時間!源和數據源都沒有任何軟硬體瓶頸,並且沒有大量的格式轉換。之前看了很多關於這種情況的優化方案,例如擴大緩存大小等。雖然也能快一點,但是仍然遠遠比直接在SSMS中查詢的速度 ...
  • 在Sql server 2012裡面,開窗函數豐富了許多,其中帶出了2個新的函數 First_Value 和 Last Value .現在來介紹一下這2個函數的應用場景. 首先分析一下First_Value(),用法是根據Partition By對數據進行分區,如果忽略Partition By ,那 ...
  • 生成1到300個數字的方法 方法一 cross join 方法二 while迴圈 方法三 CTE遞歸 ...
一周排行
    -Advertisement-
    Play Games
  • 移動開發(一):使用.NET MAUI開發第一個安卓APP 對於工作多年的C#程式員來說,近來想嘗試開發一款安卓APP,考慮了很久最終選擇使用.NET MAUI這個微軟官方的框架來嘗試體驗開發安卓APP,畢竟是使用Visual Studio開發工具,使用起來也比較的順手,結合微軟官方的教程進行了安卓 ...
  • 前言 QuestPDF 是一個開源 .NET 庫,用於生成 PDF 文檔。使用了C# Fluent API方式可簡化開發、減少錯誤並提高工作效率。利用它可以輕鬆生成 PDF 報告、發票、導出文件等。 項目介紹 QuestPDF 是一個革命性的開源 .NET 庫,它徹底改變了我們生成 PDF 文檔的方 ...
  • 項目地址 項目後端地址: https://github.com/ZyPLJ/ZYTteeHole 項目前端頁面地址: ZyPLJ/TreeHoleVue (github.com) https://github.com/ZyPLJ/TreeHoleVue 目前項目測試訪問地址: http://tree ...
  • 話不多說,直接開乾 一.下載 1.官方鏈接下載: https://www.microsoft.com/zh-cn/sql-server/sql-server-downloads 2.在下載目錄中找到下麵這個小的安裝包 SQL2022-SSEI-Dev.exe,運行開始下載SQL server; 二. ...
  • 前言 隨著物聯網(IoT)技術的迅猛發展,MQTT(消息隊列遙測傳輸)協議憑藉其輕量級和高效性,已成為眾多物聯網應用的首選通信標準。 MQTTnet 作為一個高性能的 .NET 開源庫,為 .NET 平臺上的 MQTT 客戶端與伺服器開發提供了強大的支持。 本文將全面介紹 MQTTnet 的核心功能 ...
  • Serilog支持多種接收器用於日誌存儲,增強器用於添加屬性,LogContext管理動態屬性,支持多種輸出格式包括純文本、JSON及ExpressionTemplate。還提供了自定義格式化選項,適用於不同需求。 ...
  • 目錄簡介獲取 HTML 文檔解析 HTML 文檔測試參考文章 簡介 動態內容網站使用 JavaScript 腳本動態檢索和渲染數據,爬取信息時需要模擬瀏覽器行為,否則獲取到的源碼基本是空的。 本文使用的爬取步驟如下: 使用 Selenium 獲取渲染後的 HTML 文檔 使用 HtmlAgility ...
  • 1.前言 什麼是熱更新 游戲或者軟體更新時,無需重新下載客戶端進行安裝,而是在應用程式啟動的情況下,在內部進行資源或者代碼更新 Unity目前常用熱更新解決方案 HybridCLR,Xlua,ILRuntime等 Unity目前常用資源管理解決方案 AssetBundles,Addressable, ...
  • 本文章主要是在C# ASP.NET Core Web API框架實現向手機發送驗證碼簡訊功能。這裡我選擇是一個互億無線簡訊驗證碼平臺,其實像阿裡雲,騰訊雲上面也可以。 首先我們先去 互億無線 https://www.ihuyi.com/api/sms.html 去註冊一個賬號 註冊完成賬號後,它會送 ...
  • 通過以下方式可以高效,並保證數據同步的可靠性 1.API設計 使用RESTful設計,確保API端點明確,並使用適當的HTTP方法(如POST用於創建,PUT用於更新)。 設計清晰的請求和響應模型,以確保客戶端能夠理解預期格式。 2.數據驗證 在伺服器端進行嚴格的數據驗證,確保接收到的數據符合預期格 ...