doc-exports/docs/dws/dev/dws_04_0846.html
Lu, Huayi e6fa411af0 DWS DEV 830.201 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-05-16 07:24:04 +00:00

89 lines
9.8 KiB
HTML

<a name="EN-US_TOPIC_0000001188163778"></a><a name="EN-US_TOPIC_0000001188163778"></a>
<h1 class="topictitle1">PLAN_TABLE</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001188163778__en-us_topic_0165900117_p8060118"><strong id="EN-US_TOPIC_0000001188163778__b158072048146">PLAN_TABLE</strong> displays the plan information collected by <strong id="EN-US_TOPIC_0000001188163778__b148071410148">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_0000001188163778__t589476c7db6745a9af797b14c2b77ac1" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PLAN_TABLE columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188163778__re6de704edc304aa1a46bf3107e12ef27"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001188163778__adac79827fc8b409c9ebdf192fc83c036">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_0000001188163778__a3cf907845c3d4bc687d6751797cb63ed">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_0000001188163778__a39c3692586c645c58ce0cb75e87e452c">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001188163778__r266de6aa6d9943dbabdc02716b5506c7"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163778__aadb4578c99d3479e8d7c91f930556c9e">statement_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163778__aef86849cc27743999566695bc2586af4">varchar2(30)</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163778__a994ea3fb1988451ba3b60969c1a338f2">Query tag specified by a user</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163778__r91c787aaa31e4704b4ee7d3043ea9936"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163778__aa4e8ed3d8aa440a2ba694d66c76bc519">plan_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163778__a326d2f43272141ab8d6cf3334785ca48">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163778__a23170f94515b4c7d98004b3e88cb7de8">ID of a plan to be queried</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163778__r807bf3d22c2d40979a1c91e5793f376e"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163778__af55bfb37df0d4623aa8cde5406ad5423">id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163778__a561e4d809e1c4e95a0237dc795edb36f">int</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163778__a0bf9f00ad0454cc684b8da0b47080af8">ID of each operator in a generated plan</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163778__r646f1eff39c049d6b9335013d2c85957"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163778__a967ac394ca1d43aa861ffda72370fa5e">operation</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163778__a4f0d25f4c7324aada57c8cfd707fc88a">varchar2(30)</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163778__afb7e879ca80a4627b5e302c315981d8e">Operation description of an operator in a plan</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163778__r93b21bdc255847adba8f796a0d9012b2"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163778__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_0000001188163778__a893508c58f384b7cae492978de2ee089">varchar2(255)</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163778__a88c12737da2a48a0938a418dadadb6a8">Operation parameters</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163778__r497db0f6b6ae419d9e375775ccce7b6e"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163778__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_0000001188163778__a3bab8e4f473445fa9efce8edc3c000cf">name</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163778__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_0000001188163778__r7b6b63e8595a4699a17975e3e01fc08f"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163778__a0f9d1233221643bba38d8dcd4172838f">object_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163778__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_0000001188163778__en-us_topic_0165900117_p56197578112">Object type</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163778__r141cb13d89ad428d8645ba371fc21887"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163778__a14e0370fc1ea4807bb1200e789f59edf">object_owner</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163778__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_0000001188163778__aed62feb63c0245f0b5edd2f1c3f17e47">User-defined schema to which an object belongs</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163778__r9f673d9b416c4c0da636cad2cac65e84"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163778__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_0000001188163778__a5a166bf6f8224cbd98038eb8dde57d40">varchar2(4000)</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163778__en-us_topic_0165900117_p121639223213">Returned column information</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="note" id="EN-US_TOPIC_0000001188163778__n399ef637f18b4b6c8748c55654dcfccf"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001188163778__en-us_topic_0165900117_ul818751562"><li id="EN-US_TOPIC_0000001188163778__l5f7facd113c949b0b336e582c3393ce4">A valid <strong id="EN-US_TOPIC_0000001188163778__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_0000001188163778__b1819799151014">TABLE</strong>, <strong id="EN-US_TOPIC_0000001188163778__b71976961013">INDEX</strong>, <strong id="EN-US_TOPIC_0000001188163778__b111981291109">SEQUENCE</strong>, <strong id="EN-US_TOPIC_0000001188163778__b2019910971017">VIEW</strong>, <strong id="EN-US_TOPIC_0000001188163778__b31997941015">FOREIGN TABLE</strong>, <strong id="EN-US_TOPIC_0000001188163778__b02011296104">COMPOSITE TYPE</strong>, or <strong id="EN-US_TOPIC_0000001188163778__b11201398103">TOASTVALUE TOAST</strong> table) and the rtekind type used in the plan (<strong id="EN-US_TOPIC_0000001188163778__b1420220931019">SUBQUERY</strong>, <strong id="EN-US_TOPIC_0000001188163778__b22031921010">JOIN</strong>, <strong id="EN-US_TOPIC_0000001188163778__b1720412911105">FUNCTION</strong>, <strong id="EN-US_TOPIC_0000001188163778__b22065910102">VALUES</strong>, <strong id="EN-US_TOPIC_0000001188163778__b52061297108">CTE</strong>, or <strong id="EN-US_TOPIC_0000001188163778__b1220712913106">REMOTE_QUERY</strong>).</li><li id="EN-US_TOPIC_0000001188163778__l92b66d0ac568499c8b17ed389b8859c4">For RangeTableEntry (RTE), <strong id="EN-US_TOPIC_0000001188163778__b1913915483117">object_owner</strong> is the object description used in the plan. Non-user-defined objects do not have <strong id="EN-US_TOPIC_0000001188163778__b1214015485115">object_owner</strong>.</li><li id="EN-US_TOPIC_0000001188163778__en-us_topic_0165900117_li12182513620">Information in the <strong id="EN-US_TOPIC_0000001188163778__b84371729123">statement_id</strong>, <strong id="EN-US_TOPIC_0000001188163778__b24381825128">object_name</strong>, <strong id="EN-US_TOPIC_0000001188163778__b143910241218">object_owner</strong>, and <strong id="EN-US_TOPIC_0000001188163778__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_0000001188163778__l97f84251c9d9449d90183739f61ba8ba"><strong id="EN-US_TOPIC_0000001188163778__b1383611711217">PLAN_TABLE</strong> supports only <strong id="EN-US_TOPIC_0000001188163778__b883821731214">SELECT</strong> and <strong id="EN-US_TOPIC_0000001188163778__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>