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 - sqlplus change password - oracle change user password - change password oracle - change password in oracle - oracle password change - change oracle password - oracle password reset - change database password - oracle change password sqlplus - sqlplus password change - oracle user password change - change db user password - change user password oracle - sql change password - change oracle password command - oracle user change password - SQL command to change password - how to change oracle password - change password sqlplus - changing oracle password - change password toad - change user password in oracle - change password in toad - oracle reset password - update oracle user password - change oracle password sqlplus - oracle change user password sql - sql password change - change password oracle user - changing password in oracle sql - changing password in oracle - Change Oracle Database Password - command to change oracle password - command to change password in oracle - oracle set user password - alterar password oracle - how to change the password in oracle - how to change password sqlplus - sqlplus set password - sqlplus default password - change password pl/sql - change password in sqlplus - how to change oracle user password - how to change the db user password - oracle db password change - oracle database password change - resetting password in access database - how reset oracle password sqlplus - change user password oracle sql -