doc-exports/docs/dws/dev/dws_04_0866.html
Lu, Huayi a24ca60074 DWS DEVELOPER 811 version
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>
2023-01-19 13:37:49 +00:00

146 lines
14 KiB
HTML

<a name="EN-US_TOPIC_0000001145694533"></a><a name="EN-US_TOPIC_0000001145694533"></a>
<h1 class="topictitle1">USER_JOBS</h1>
<div id="body1497258810207"><p id="EN-US_TOPIC_0000001145694533__a06b755960e3942969a649fd0ef0d522d"><strong id="EN-US_TOPIC_0000001145694533__b761291012192">USER_JOBS</strong> displays all jobs owned by the user.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001145694533__t2dc216069c21479ea4abdcdc67e91bf1" frame="border" border="1" rules="all"><caption><b>Table 1 </b>USER_JOBS columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001145694533__r39ba4fc2e9034c5994bb4ab21446dccf"><th align="left" class="cellrowborder" valign="top" width="19.96%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001145694533__en-us_topic_0062529104_p179601085518">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.49%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001145694533__en-us_topic_0062529104_p15960185511">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="62.55%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001145694533__en-us_topic_0062529104_p3960085517">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001145694533__r86eb661ccc8b44c5b475e265b8d64d0a"><td class="cellrowborder" valign="top" width="19.96%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694533__a52020eda0bb44d6d977dca6b0b36a26a">job</p>
</td>
<td class="cellrowborder" valign="top" width="17.49%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694533__a366f98f6a8dc4ae194918f8b951d4ba3">int4</p>
</td>
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694533__en-us_topic_0062529104_p165310431514">Job ID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694533__r25fc69f7a5944eeaa82fa3f3019af18d"><td class="cellrowborder" valign="top" width="19.96%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694533__en-us_topic_0062529104_p196532437518">log_user</p>
</td>
<td class="cellrowborder" valign="top" width="17.49%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694533__en-us_topic_0062529104_p86538435512">name not null</p>
</td>
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694533__a25301cfd8d724ec29a05dce4aaf4d1c7">User name of the job creator</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694533__r8b5d77ed861542f2be81065b65cfcdc9"><td class="cellrowborder" valign="top" width="19.96%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694533__en-us_topic_0062529104_p146539431511">priv_user</p>
</td>
<td class="cellrowborder" valign="top" width="17.49%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694533__aeecd21359b884afa812ae378dc1adab9">name not null</p>
</td>
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694533__en-us_topic_0062529104_p465434345113">User name of the job executor</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694533__re834e79d5e0b4d9195abf906af435aba"><td class="cellrowborder" valign="top" width="19.96%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694533__a420be009caad417d958187c4cd27c02d">dbname</p>
</td>
<td class="cellrowborder" valign="top" width="17.49%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694533__a37f85d9461c24fdaa35b8b6d57f40b69">name not null</p>
</td>
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694533__a7093ca03edf646e6a57503453b494488">Database in which the job is created</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694533__r737e991121e2496196498d1f141e9996"><td class="cellrowborder" valign="top" width="19.96%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694533__en-us_topic_0062529104_p16546436511">start_date</p>
</td>
<td class="cellrowborder" valign="top" width="17.49%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694533__ae6179a53338b4b0ca55c2fe02d297259">timestamp without time zone</p>
</td>
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694533__a64136a17be344269a7b3a4a5a5615422">Job start time</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694533__r7fdc536ffcd3448f8fa99d0dfbdad3bf"><td class="cellrowborder" valign="top" width="19.96%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694533__adde19c4c8c6647c2ad2cd739b951ecd6">start_suc</p>
</td>
<td class="cellrowborder" valign="top" width="17.49%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694533__a51261a5fa85741bdb4ff9237a1540528">text</p>
</td>
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694533__a5635e3c39f3a42a682ff66f3fd26ec38">Start time of the successful job execution</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694533__ra30914bcb1fa46b8908092977022569e"><td class="cellrowborder" valign="top" width="19.96%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694533__en-us_topic_0062529104_p166562434518">last_date</p>
</td>
<td class="cellrowborder" valign="top" width="17.49%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694533__a6d1f52b3f0f944cfaed650d8647f56ac">timestamp without time zone</p>
</td>
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694533__a5534eeb893984f1e893e8a604a5c1ace">Start time of the last job execution</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694533__r11ca7a2d7bca4d5cb20247cb504b579e"><td class="cellrowborder" valign="top" width="19.96%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694533__en-us_topic_0062529104_p26561438510">last_suc</p>
</td>
<td class="cellrowborder" valign="top" width="17.49%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694533__ab30ad75ec618454da21a682ce3b2877a">text</p>
</td>
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694533__a37a38af9f7644a25806f272c473e927a">Start time of the last successful job execution</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694533__r2a2f3a304ca04c72aedc5fa6db608baa"><td class="cellrowborder" valign="top" width="19.96%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694533__a15ce3f3e4c384409a9341e5e597d0a75">this_date</p>
</td>
<td class="cellrowborder" valign="top" width="17.49%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694533__a43231f3c207e4f5fb91d6f923f5a55f3">timestamp without time zone</p>
</td>
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694533__a65edfab486b54f98abac54ac015d7242">Start time of the ongoing job execution</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694533__r6301b722b30f46c2a5af7d0e211c3a11"><td class="cellrowborder" valign="top" width="19.96%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694533__en-us_topic_0062529104_p166583432511">this suc</p>
</td>
<td class="cellrowborder" valign="top" width="17.49%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694533__a39012e7f782348cea444a320dd29a149">text</p>
</td>
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694533__en-us_topic_0062529104_p36582439517">Same as <strong id="EN-US_TOPIC_0000001145694533__b842352706153825">THIS_DATE</strong></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694533__r9bf6d7db20494cdd8ea1fa3bb9af4787"><td class="cellrowborder" valign="top" width="19.96%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694533__a97d49465c5784b6b81a2d1f3d8c7d79b">next_date</p>
</td>
<td class="cellrowborder" valign="top" width="17.49%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694533__ae3f5f06bf53b4197a099e9734a22993c">timestamp without time zone</p>
</td>
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694533__a78dc0271c2f04300ba22d12aeb6673e6">Schedule time of the next job execution</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694533__rceb69506381b4eba8487559b7e6a707f"><td class="cellrowborder" valign="top" width="19.96%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694533__ad5fd50134f444bf79cd53701399cf35e">next suc</p>
</td>
<td class="cellrowborder" valign="top" width="17.49%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694533__a9031191dd73e45f0b4e1e2304862324d">text</p>
</td>
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694533__afcc37d85676f43d48e54e0d99bcf67c7">Same as <strong id="EN-US_TOPIC_0000001145694533__b842352706153154">next_date</strong></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694533__rc3c26977e13945b8b99053abf171f0ef"><td class="cellrowborder" valign="top" width="19.96%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694533__a44a0f78b39c64e97aad7a6287d56cb2e">broken</p>
</td>
<td class="cellrowborder" valign="top" width="17.49%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694533__af84c888ba9594c7b90453dd0630b3124">text</p>
</td>
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694533__a3b0ab58212f44cca95941386433819f5">Task status</p>
<p id="EN-US_TOPIC_0000001145694533__p13808121611211"><strong id="EN-US_TOPIC_0000001145694533__b148591639175816">Y</strong>: the system does not try to execute the task.</p>
<p id="EN-US_TOPIC_0000001145694533__p4948256127"><strong id="EN-US_TOPIC_0000001145694533__b151520613598">N</strong>: the system attempts to execute the task.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694533__r29634e0f738f40d69e8266eab6501edc"><td class="cellrowborder" valign="top" width="19.96%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694533__aa7ba0879970f4ee7af412521326204ea">status</p>
</td>
<td class="cellrowborder" valign="top" width="17.49%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694533__a5c974f5eebb841f7a809adefdba4cc52">char</p>
</td>
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694533__a53dfe714b94b49d7823ceb246000fc59">Status of the current job. The value range is <strong id="EN-US_TOPIC_0000001145694533__b84235270614429">'r', 's', 'f', 'd'</strong>. The default value is <strong id="EN-US_TOPIC_0000001145694533__b842352706173734">'s'</strong>. The indications are as follows:</p>
<ul id="EN-US_TOPIC_0000001145694533__uee8972f3adab4e5ba35c02b16202e84a"><li id="EN-US_TOPIC_0000001145694533__lf933562aaae54f02bddc1786fef6bfab"><strong id="EN-US_TOPIC_0000001145694533__b5267121193714">r</strong>: running</li><li id="EN-US_TOPIC_0000001145694533__l062b074dff1c4ed282d31f937f9bbb39"><strong id="EN-US_TOPIC_0000001145694533__b583172416378">s</strong>: finished</li><li id="EN-US_TOPIC_0000001145694533__l9dd0e70d302246589369e6f63a3fa3fc"><strong id="EN-US_TOPIC_0000001145694533__b16594182616376">f</strong>: failed</li><li id="EN-US_TOPIC_0000001145694533__l34e1240ac6df4da8967c121c41af894e"><strong id="EN-US_TOPIC_0000001145694533__b79023053717">d</strong>: aborted</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694533__r8c4a7b0b4f8547048b130dbdc9264356"><td class="cellrowborder" valign="top" width="19.96%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694533__aa9dbaf82a7254051b4c5ddcf4670764c">interval</p>
</td>
<td class="cellrowborder" valign="top" width="17.49%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694533__a8697ffd8824e459495a9022401d708dd">text</p>
</td>
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694533__a5a2645c42a75437aa0d1719654618df7">Time expression used to calculate the next execution time. If this parameter is set to <strong id="EN-US_TOPIC_0000001145694533__b842352706153444">null</strong>, the job will be executed once only.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694533__r0a94dd2b4bb7476d96a5506abd1a5b53"><td class="cellrowborder" valign="top" width="19.96%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694533__af0f029513cba44d9b9c447cbf4753e44">failures</p>
</td>
<td class="cellrowborder" valign="top" width="17.49%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694533__aa6c936f81c914ecba00ad6fabd9c7504">smallint</p>
</td>
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694533__a9f1036f065da46bda5621b58ee972662">Number of times the job has started and failed. If a job fails to be executed for 16 consecutive times, no more attempt will be made on it.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694533__rf50377a720a14ca5a64c048b03276755"><td class="cellrowborder" valign="top" width="19.96%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694533__a8ddd740d6bce44649403bc02eea73530">what</p>
</td>
<td class="cellrowborder" valign="top" width="17.49%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694533__a8f2480e8a2ac471e9c6cb44004a27c67">text</p>
</td>
<td class="cellrowborder" valign="top" width="62.55%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694533__a0ecb64c812104bea9836df506d3a8d7c">Body of the PL/SQL blocks or anonymous clock that the job executes</p>
</td>
</tr>
</tbody>
</table>
</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>