Oracle command to lock,unlock and change password of a user

Oracle commands

  • to lock and unlock a user
alter user user_name account lock;

alter user user_name account unlock;

  • To change a user's password in Oracle,
alter user user_name identified by new_password;
user_name is the user whose password you wish to change.
new_password is the new password to assign.



user_name must be substituted with the real username.
new_password with the password.

Comments

Popular posts from this blog

CDbConnection failed to open the DB connection mysql 8

How to replace find -maxdepth option in Solaris Operating System using -prone

IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified [ISQL]ERROR: Could not SQLConnect