To change your Oracle database password, follow these steps: Connect to the database and log in using your current password. Use the ALTER USER statement to change the password, and then commit the changes. Close the database connection.
How to change the Oracle database password
Step one: Connect to the database
<code class="SQL">sqlplus username/current_password</code>
Step 2: Change the password
<code class="SQL">ALTER USER username IDENTIFIED BY new_password;</code>
Where:
username
is the database usernamenew_password
is the new password<code class="SQL">COMMIT;</code>
Step 3: Close the connection
<code class="SQL">EXIT;</code>
Advanced options:
RESET
command resets the password. This requires SYSDBA permissions. PASSWORD_EXPIRE
parameter. The above is the detailed content of How to change oracle database password. For more information, please follow other related articles on the PHP Chinese website!