doc-exports/docs/dws/umn/dws_03_0092.html
Lu, Huayi 95132e24fc DWS UMN 830.201_new version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Reviewed-by: Rechenburg, Matthias <matthias.rechenburg@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-05-27 11:54:34 +00:00

27 lines
3.5 KiB
HTML

<a name="EN-US_TOPIC_0000001381728581"></a><a name="EN-US_TOPIC_0000001381728581"></a>
<h1 class="topictitle1">How Do I Change the Password of a Database Account When the Password Expires?</h1>
<div id="body0000001381728581"><ul id="EN-US_TOPIC_0000001381728581__ul57688128819"><li id="EN-US_TOPIC_0000001381728581__li177684121889">To change the password of the database administrator <strong id="EN-US_TOPIC_0000001381728581__b141221669945124">dbadmin</strong>, log in to the console and choose <strong id="EN-US_TOPIC_0000001381728581__b188748807145124">More</strong> &gt; <strong id="EN-US_TOPIC_0000001381728581__b81595919845124">Reset Password</strong> in cluster row.<div class="fignone" id="EN-US_TOPIC_0000001381728581__fig1190379775"><span class="figcap"><b>Figure 1 </b>Resetting the password of user dbadmin</span><br><span><img id="EN-US_TOPIC_0000001381728581__image14722438112211" src="figure/en-us_image_0000001687122453.png" title="Click to enlarge" class="imgResize"></span></div>
<p id="EN-US_TOPIC_0000001381728581__p9994173412592"></p>
<p id="EN-US_TOPIC_0000001381728581__en-us_topic_0000001145696581_p18222202715182">For security, the following two parameters manage account passwords. Log in to the console, click the cluster name and switch to the parameter modification page to modify the parameters.</p>
<ul id="EN-US_TOPIC_0000001381728581__en-us_topic_0000001145696581_ul1622554613616"><li id="EN-US_TOPIC_0000001381728581__en-us_topic_0000001145696581_li22252461560"><strong id="EN-US_TOPIC_0000001381728581__b190224410845124">failed_login_attempts</strong>: maximum number of consecutive incorrect password attempts before the account is locked. Run the following statement as user <strong id="EN-US_TOPIC_0000001381728581__b110608233445124">dbadmin</strong> to unlock the account:<pre class="screen" id="EN-US_TOPIC_0000001381728581__en-us_topic_0000001145696581_screen1178553317610">ALTER USER user_name ACCOUNT UNLOCK;</pre>
</li><li id="EN-US_TOPIC_0000001381728581__en-us_topic_0000001145696581_li797794911620"><strong id="EN-US_TOPIC_0000001381728581__b70561898845124">password_effect_time</strong>: validity period of the account password, in days. The default value is <strong id="EN-US_TOPIC_0000001381728581__b111903454945124">90</strong>.</li></ul>
</li><li id="EN-US_TOPIC_0000001381728581__li119479497107">You can also connect to the database and run the <strong id="EN-US_TOPIC_0000001381728581__b96787548599">ALTER USER</strong> command to change the password validity period of a database account (common user and administrator dbadmin).<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001381728581__screen155919195127"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">ALTER</span><span class="w"> </span><span class="k">USER</span><span class="w"> </span><span class="n">username</span><span class="w"> </span><span class="n">PASSWORD</span><span class="w"> </span><span class="n">EXPIRATION</span><span class="w"> </span><span class="mi">90</span><span class="p">;</span>
</pre></div></td></tr></table></div>
</div>
</li></ul>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_03_0110.html">Account, Password, and Permission</a></div>
</div>
</div>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>