Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Example Session in SQL*Plus:

sh
Copy code
$ sqlplus sys as sysdba
sql
Copy code
SQL*Plus: Release 19.0.0.0.0 - Production on Thu May 27 2024

SQL> ALTER USER hr IDENTIFIED BY new_password;

You should see a message indicating that the user was altered:

sql
Copy code
User altered.

Notes:

 Ensure that the new password complies with your database’s password policies (such
as length, complexity, etc.).
 If you are using Oracle Database 12c or later, and you have password versioning
enabled, you might need to reset the password for different versions (10g, 11g, etc.)
using specific options.

Using SQL Developer:

1. Open SQL Developer and connect to your database with an admin account.
2. Navigate to the "Users" node under the appropriate connection.
3. Right-click on the user (e.g., hr) and select "Edit User."
4. Enter the new password and apply the changes.

By following these steps, you can change the password for an existing user in Oracle
Database.

You might also like