forked from docs/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>
26 lines
3.8 KiB
HTML
26 lines
3.8 KiB
HTML
<a name="EN-US_TOPIC_0000001145913109"></a><a name="EN-US_TOPIC_0000001145913109"></a>
|
|
|
|
<h1 class="topictitle1">Editing a Function/Procedure</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_p8438801">Perform the following steps to edit a function/procedure or SQL function:</p>
|
|
<ol id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_ol8840353"><li id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_li12454319"><span>In the <strong id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_b9662956181656">Object Browser</strong> pane, double-click or right-click the required function/procedure or SQL function and select <strong id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_b19857740181656">View Source</strong>. You must refresh <strong id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_b49940868201250">Object Browser</strong> to view the latest DDL.</span><p><p id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_p57488204114123">The selected function/procedure or SQL function is displayed in the <strong id="EN-US_TOPIC_0000001145913109__b145491319192216">PL/SQL Viewer</strong> tab page.</p>
|
|
<p id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_p3659812114134"><span><img id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_image51440871175957" src="figure/en-us_image_0000001098993232.jpg" width="384.0375" height="160.5975" title="Click to enlarge" class="imgResize"></span></p>
|
|
<p id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_p18364119105519"></p>
|
|
<p id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_p54543948155428">If multiple functions/procedures or SQL functions have the same schema, name, and input parameters, only one of them can be opened at a time.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_ole_link54"><span>After editing or updating, compile and execute the PL/SQL program or SQL function. For details, see <a href="DWS_DS_67.html">Executing a Function/Procedure</a>.</span><p><p id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_p28404845155628">If you execute the function/procedure or SQL function before compilation, the <strong id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_b1344185618193">Source Code Change</strong> dialog box is displayed.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_li33374275155648"><span>Click <strong id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_b58640233181931">Yes</strong> to compile and execute the PL/SQL function/procedure.</span><p><p id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_p10680141815452">The status of the completed operation is displayed in the <strong id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_b16381652153717">Message</strong> tab page.</p>
|
|
<p id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_p8227311123613">Refer to <a href="DWS_DS_128.html#EN-US_TOPIC_0000001145833051__en-us_topic_0185264856_section16147111413113">Executing SQL Queries</a> for information on reconnect option in case connection is lost during execution.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_li6053677"><span>After compiling the function/procedure or SQL function, press <strong id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_b61133051172655">F5</strong> to refresh <strong id="EN-US_TOPIC_0000001145913109__en-us_topic_0185264881_b58988344172655">Object Browser</strong> to view the updated code.</span></li></ol>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_ds_index.html">Data Studio - Integrated Database Development Tool</a></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script language="JavaScript">
|
|
<!--
|
|
image_size('.imgResize');
|
|
var msg_imageMax = "view original image";
|
|
var msg_imageClose = "close";
|
|
//--></script> |