{"id":1304,"date":"2016-11-27T15:16:36","date_gmt":"2016-11-27T15:16:36","guid":{"rendered":"http:\/\/www.theSQLReport.com\/?p=1304"},"modified":"2016-11-27T15:16:36","modified_gmt":"2016-11-27T15:16:36","slug":"changing-a-password-in-teradata","status":"publish","type":"post","link":"http:\/\/www.theSQLReport.com\/?p=1304","title":{"rendered":"Changing a Password in Teradata"},"content":{"rendered":"<p>There are a couple ways to change a user&#8217;s password in Teradata.\u00a0 Two methods covered here are using a SQL statement in Teradata&#8217;s SQL Assistant, and the other is using the Teradata Administrator.\u00a0 The examples shown are being performed on Teradata Express VM.<\/p>\n<h3>SQL statement in Teradata&#8217;s SQL Assistant<\/h3>\n<p>In the example below, a user is changing its own user account&#8217;s password.\u00a0 This can be done with out administrative privileges.\u00a0 To change another account&#8217;s password would require to be logged on as an administrator.\u00a0 This SQL can be run from other tools like BTEQ &amp; Teradata Studio.<\/p>\n<p>Regarding the password and special characters, the following was taken from Teradata&#8217;s Administrative Guide: <em>&#8220;Special characters are only underscore (_), dollar sign ($), or pound sign (#), unless the password is enclosed in double quotes, in which case other special characters can be used.&#8221;<\/em><\/p>\n<p>First is a query that the user can see its own information:<\/p>\n<pre>select UserName, CommentString from dbc.users;<\/pre>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change01.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1308 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change01.jpg\" alt=\"teradata_password_change01\" width=\"564\" height=\"268\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change01.jpg 564w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change01-300x143.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change01-210x100.jpg 210w\" sizes=\"(max-width: 564px) 100vw, 564px\" \/><\/a><\/p>\n<p>The SQL Statement for changing the password:<\/p>\n<pre>modify user &lt; user &gt; as password = \" &lt;new password&gt; \";<\/pre>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change02.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1309 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change02.jpg\" alt=\"teradata_password_change02\" width=\"693\" height=\"254\" \/><\/a><\/p>\n<p>After the statement is executed, the password will change to a string of &#8220;*&#8221; in the query window.\u00a0 In the status bar at the bottom of the SQL Assistant will show if the statement was successful or if there was an error.<\/p>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change03.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1310 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change03.jpg\" alt=\"teradata_password_change03\" width=\"698\" height=\"313\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change03.jpg 698w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change03-300x135.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change03-210x94.jpg 210w\" sizes=\"(max-width: 698px) 100vw, 698px\" \/><\/a><\/p>\n<h3>Teradata Administrator<\/h3>\n<p>In the Teradata Administrator (need to be an logged on as an administrator), click on the user needing the password change.\u00a0 Then click the Tools drop down menu.\u00a0 Click on the Modify User option.<\/p>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change04.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1311 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change04.jpg\" alt=\"teradata_password_change04\" width=\"867\" height=\"582\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change04.jpg 867w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change04-300x201.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change04-768x516.jpg 768w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change04-210x141.jpg 210w\" sizes=\"(max-width: 867px) 100vw, 867px\" \/><\/a><\/p>\n<p>A pop-up app will appear.\u00a0 Enter the new password in the Password text box.\u00a0 Then click on the Modify button, then click on the Close button.<\/p>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change05.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1307 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change05.jpg\" alt=\"teradata_password_change05\" width=\"727\" height=\"427\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change05.jpg 727w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change05-300x176.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/11\/Teradata_Password_Change05-210x123.jpg 210w\" sizes=\"(max-width: 727px) 100vw, 727px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are a couple ways to change a user&#8217;s password in Teradata.\u00a0 Two methods covered here are using a SQL statement in Teradata&#8217;s SQL Assistant, and the other is using &hellip; <a class=\"readmore\" href=\"http:\/\/www.theSQLReport.com\/?p=1304\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":1309,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[90,89,66],"class_list":["post-1304","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-teradata","tag-change","tag-password","tag-teradata"],"_links":{"self":[{"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/1304"}],"collection":[{"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1304"}],"version-history":[{"count":7,"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/1304\/revisions"}],"predecessor-version":[{"id":1316,"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/1304\/revisions\/1316"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/media\/1309"}],"wp:attachment":[{"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1304"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}