Change Your Own Password in an Oracle Database
This article describes how to change the password for your own user in an Oracle database.
ALTER USER Command
Log on to the database as yourself, using any tool that can send SQL statements to the database.
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.
If you want to use special characters, remember to enclose the password in double quotes.
ALTER USER my_user IDENTIFIED BY "MyNewPassword123#";
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>
From SQL Developer, do the following.
- Right-click on the connection.
- Select the "Reset Password..." option from the popup menu.
- In the subsequent dialog, enter the current password and the new password with confirmation.
- Click the OK button.
From TOAD, do the following.
- From the top menu, select "Session > Change Password".
- In the subsequent dialog, enter the current password and the new password with verification.
- Click the OK button.
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
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...