8i | 9i | 10g | 11g | 12c | 13c | 18c | 19c | 21c | Misc | PL/SQL | SQL | RAC | WebLogic | Linux

Home » Articles » Misc » Here

Change Your Own Password in an Oracle Database

This article describes how to change the password for your own user in an Oracle database.

Related articles.

ALTER USER Command

Log on to the database as yourself, using any tool that can send SQL statements to the database.

CONN my_user/MyPassword123@orcl

Once connected, issue to the following ALTER USER command, specifying the new password.

ALTER USER my_user IDENTIFIED BY MyNewPassword123;

You don't need any additional privileges to change your own password. The same command can be used to change the password for another user, provided you have a privileged account.

SQL*Plus and SQLcl

As well as using the ALTER USER command, you can use the PASSWORD command from the SQL*Plus and SQLcl utilities. You will be prompted for your current password and the new password.

SQL> password
Changing password for MY_USER
Old password: ********
New password: ********
Retype new password: ********
Password changed
SQL>

SQL Developer

From SQL Developer, do the following.

TOAD

From TOAD, do the following.

Proxy Users

Proxy users allow you to connect to another user with your own credentials. This way you never need to know the credentials of the schema you are connecting to.

You should not attempt to change your password when connected as a proxy. Instead you should connect as yourself, change your password, then reconnect as a proxy user with your new password.

As an example, let's imagine there is a schema owner called SCHEMA_OWNER and my user called MY_USER in a database called ORCL. My proxy connection would look like this. When prompted I would connect using the password for MY_USER.

CONN my_user[schema_owner]@orcl

To change my password I might to do something like this.

-- Connect to my user.
CONN my_user@orcl

-- Change password.
ALTER USER my_user IDENTIFIED BY MyNewPassword123;

-- Make a proxy connection again.
CONN my_user[schema_owner]@orcl

For more information see:

Hope this helps. Regards Tim...

Back to the Top.