Change Oracle Database User Password

To ensure security of the Oracle database system and prevent unauthorized access to the Oracle database, it’s important for Oracle users to not only using strong and long Oracle passwords to avoid brute force or dictionary attacks, but also to change the Oracle user password regularly. Oracle users also have to change the password when the password has or going to expire, if database system administrator implements and enforces strict password control with PASSWORD_LIFE_TIME option for user profiles which limits the number of days the password can be used for authentication to login to the system.

To change the Oracle password, users can use SQL*Plus or Oracle SQL and PL/SQL language interface administration tool such as Toad for Oracle. No matter what SQL apps you use, the commands and SQL query languages used to change the password are similar.

There are two SQL command syntaxes that can be used to change Oracle database user password:

ALTER USER user_name IDENTIFIED BY new_password;

or (from Oracle8 and above):

PASSWORD

For above SQL query, if you need to change another user’s password, use the following command:

PASSWORD user_name

For PASSWORD command, after you press Enter, you will be prompted to input the old password and new password interactively. For example:

SQL> password
Changing password for DAVID
Old password:
New password:
Retype new password:

Note: You need to have enough privileges to change other Oracle user’s password.

As the variable in italic implied by name, user_name is the user whose password wishes to be changed, and new_password is the new password to assign.

As ALTER USER SQL syntax will send the new password to the Oracle database server unencrypted if use without Advanced Security Option, and thus expose to security risk, Oracle users should always use the PASSWORD command to change the Oracle user password.


One Response to “Change Oracle Database User Password”

  1. My Blog » Blog Archive » java.sql.SQLException: Protocol violation
    October 3rd, 2009 17:15
    1

    [...] OR Change Oracle Database User Password [...]

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

oracle change password - change password in oracle - change toad password - oracle 8 change password - oracle password change - oracle "set password" - oracle password reset - toad change password - change sql sa password sqlcmd - change admin password oacle - change database password in oracle - change password of user in database - command to reset password of a user in oracle - query oracle user - query to change sql password - toad oracle crack rapdishare.com - access database change password - change user password oracle sql plus - command to change password in sqlplus - How do I change my system password? database - how to set a new password for a DB on cplene - oracle command to change password user - oracle password user - sqlplus set password another user - alter user passwordcommand - APEX recovery password PL_SQL - cambio password oracle - changing user pass in the database - change password oracle - change database user password - command to change password in oracle - command to change oracle user password - customer user is able to alter the password for tbaadm in oracle - db password change in wmb - forgot sql plus password - how to set password on database - how to change password for Oracle user - i forgot my username and password in sqlplus - oracle update dba user password - oracle change my password - oracle 10 sqlplus database users - oracle database reset password using sqlplus - oracle database password - oracle pasword hack - oracle change user password toad - oracle password control - oracle set user password sql - oracle changing password of database user - oracle db password change - oracle change password complete sintax -