forked from laiweijian4/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
89 lines
9.9 KiB
HTML
89 lines
9.9 KiB
HTML
<a name="EN-US_TOPIC_0000001098974574"></a><a name="EN-US_TOPIC_0000001098974574"></a>
|
|
|
|
<h1 class="topictitle1">PLAN_TABLE</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001098974574__en-us_topic_0165900117_p8060118"><strong id="EN-US_TOPIC_0000001098974574__b15777243389">PLAN_TABLE</strong> displays the plan information collected by <strong id="EN-US_TOPIC_0000001098974574__b13778174313814">EXPLAIN PLAN</strong>. Plan information is in a session-level life cycle. After the session exits, the data will be deleted. Data is isolated between sessions and between users.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001098974574__t08b5f3e6ab20415b8c8ca9109f85cdc7" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PLAN_TABLE columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001098974574__r302b32582f0148cc93d0da3e7128ca4f"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001098974574__ac38d91b1c6604d93bb1b24a88db123d4">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001098974574__a083736062564494f9cf0c4111c0ddb99">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001098974574__a55295f3bea5941e187e4bc95ab765c87">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001098974574__ra6cfda86c02141bcb51f94551ef528b8"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974574__aca005315804e40bba18110eda2ebfe79">statement_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974574__aa7977ca591744841a9a6d649dc10b9e6">varchar2(30)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974574__a54b8879239fc4178bda9b4127045bb64">Query tag specified by a user</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098974574__r4523d7e407094075867399ff7af49e94"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974574__ae037c0bc63c544fa95ef84b8b2a3845a">plan_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974574__ab87889c05af34539a74677b0a777f5e3">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974574__a054e1e87ae424d08acd86cf601386293">ID of a plan to be queried</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098974574__rc97df2a7095c40199e054feb6ec142fe"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974574__a2cfdc508663242338e0503d80ea23dcb">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974574__afbf8dbda2c264daa8d9e51360657f20f">int</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974574__adf46339603ee485896433b0b172d30b8">ID of each operator in a generated plan</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098974574__rffb2e3f350a54a0fb28c6d630bb58504"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974574__a9c796cab469247e98b24436b6f0f549d">operation</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974574__a7c481c9f58814d8495c098994bfaadcc">varchar2(30)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974574__af74ebb08bd914f53b4e20327d4977184">Operation description of an operator in a plan</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098974574__ref4e2b5d127c45e6866169ae825284ff"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974574__en-us_topic_0165900117_p46189573117">options</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974574__a8cc226474b154fbf9445e0de314b00a2">varchar2(255)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974574__a0251b0f6d45249d793350be5b5842d80">Operation parameters</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098974574__r50c67eda77d8457f9c0ae736f1ed5094"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974574__en-us_topic_0165900117_p561875761112">object_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974574__ae39814256e164ba38f276616e3dcc59b">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974574__en-us_topic_0165900117_p361913573118">Name of an operated object. It is defined by users, not the object alias used in the query.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098974574__r13aaeab8eb964ef59df1f8b8eabd512a"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974574__aa4b3a4f8008a4f61bb00bff3cad8a19a">object_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974574__en-us_topic_0165900117_p648441711132">varchar2(30)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974574__en-us_topic_0165900117_p56197578112">Object type</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098974574__rd1dfa70dbee4466d8712b466b68056f8"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974574__a4eed572e53924deda290281396812ca5">object_owner</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974574__en-us_topic_0165900117_p261955741117">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974574__a36cdec356b43478488c57a22dd80bccf">User-defined schema to which an object belongs</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098974574__rc5c5b21bbc884cd3aa4fee5ae4a52cee"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974574__en-us_topic_0165900117_p111633243217">projection</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974574__a0213203964464b8b9ce93c5124b0e21b">varchar2(4000)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974574__en-us_topic_0165900117_p121639223213">Returned column information</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="note" id="EN-US_TOPIC_0000001098974574__nf3f50ff0bd7f4f17982c72c605254984"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001098974574__en-us_topic_0165900117_ul818751562"><li id="EN-US_TOPIC_0000001098974574__l87ceacf097a745188b0066961d869df4">A valid <strong id="EN-US_TOPIC_0000001098974574__b1319618914104">object_type</strong> value consists of a relkind type defined in <a href="dws_04_0578.html">PG_CLASS</a> (<strong id="EN-US_TOPIC_0000001098974574__b1819799151014">TABLE</strong> ordinary table, <strong id="EN-US_TOPIC_0000001098974574__b71976961013">INDEX</strong>, <strong id="EN-US_TOPIC_0000001098974574__b111981291109">SEQUENCE</strong>, <strong id="EN-US_TOPIC_0000001098974574__b2019910971017">VIEW</strong>, <strong id="EN-US_TOPIC_0000001098974574__b31997941015">FOREIGN TABLE</strong>, <strong id="EN-US_TOPIC_0000001098974574__b02011296104">COMPOSITE TYPE</strong>, or <strong id="EN-US_TOPIC_0000001098974574__b11201398103">TOASTVALUE TOAST</strong> table) and the rtekind type used in the plan (<strong id="EN-US_TOPIC_0000001098974574__b1420220931019">SUBQUERY</strong>, <strong id="EN-US_TOPIC_0000001098974574__b22031921010">JOIN</strong>, <strong id="EN-US_TOPIC_0000001098974574__b1720412911105">FUNCTION</strong>, <strong id="EN-US_TOPIC_0000001098974574__b22065910102">VALUES</strong>, <strong id="EN-US_TOPIC_0000001098974574__b52061297108">CTE</strong>, or <strong id="EN-US_TOPIC_0000001098974574__b1220712913106">REMOTE_QUERY</strong>).</li><li id="EN-US_TOPIC_0000001098974574__l2a86f3728d684468b173374709f499df">For RangeTableEntry (RTE), <strong id="EN-US_TOPIC_0000001098974574__b1913915483117">object_owner</strong> is the object description used in the plan. Non-user-defined objects do not have <strong id="EN-US_TOPIC_0000001098974574__b1214015485115">object_owner</strong>.</li><li id="EN-US_TOPIC_0000001098974574__en-us_topic_0165900117_li12182513620">Information in the <strong id="EN-US_TOPIC_0000001098974574__b84371729123">statement_id</strong>, <strong id="EN-US_TOPIC_0000001098974574__b24381825128">object_name</strong>, <strong id="EN-US_TOPIC_0000001098974574__b143910241218">object_owner</strong>, and <strong id="EN-US_TOPIC_0000001098974574__b19440324124">projection</strong> columns is stored in letter cases specified by users and information in other columns is stored in uppercase.</li><li id="EN-US_TOPIC_0000001098974574__l93fd27283b2d45e78526c3bcee3ba52f"><strong id="EN-US_TOPIC_0000001098974574__b1383611711217">PLAN_TABLE</strong> supports only <strong id="EN-US_TOPIC_0000001098974574__b883821731214">SELECT</strong> and <strong id="EN-US_TOPIC_0000001098974574__b1083911178126">DELETE</strong> and does not support other DML operations.</li></ul>
|
|
</div></div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0639.html">System Views</a></div>
|
|
</div>
|
|
</div>
|
|
|