Changing a user's password
Changing a user's password is easy. You will practice it by changing passwords for several users in this recipe.
Getting ready
To complete this recipe, you'll need an existing user who has alter user
privilege (you may use OS-authenticated user who has the DBA role) and other existing users (for example, jessica
and tom
).
How to do it...
- Connect to the database as a user who has
alter user
privilege:$ sqlplus /
- Change the password for user
jessica
:SQL> password jessica;
- Enter a new password (for example,
oracle_2
) on a command line (note that typing will not be visible in the command line):New password:
- Retype the new password (for example,
oracle_2
) on the command line (note that typing will not be visible ...
Get Oracle Database 12c Security Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.