How to Reset oracle schema password

mossmis
mossmis used Ask the Experts™
on
I have one particular Oracle Schema I'd like to reset the password to lock out users, callled, "XSHA". I have the current password, how can I reset that password? Thank you
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
if you want to unlock the user, then first

alter user xsha account unlock;

and then to reset the password


alter user xsha identified by password_value;  



All the necessary information is in the docs..

http://docs.oracle.com/cd/E11882_01/network.112/e16543/users.htm#DBSEG002
Information Technology Specialist
Commented:
From sqlplus, logon as XSHA and enter passw. You will be prompted for old password, new password, and retype new password.

Commented:
If you want to lock out users you dont have to change the password; just lock using ;

alter user XSHA account lock;

then when finished your job you can unlock again by issuing command

alter user XSHA account unlock;

user may go on working with their existing password.
Most Valuable Expert 2012
Distinguished Expert 2018

Commented:
>>lock out users

If this means you do not want other users to be able to access tables in that schema, the lock commands above will not do this.

Other schemas might have been granted privileges on the objects.  Even if you lock the account and change the password, they can still access whatever they have been granted access on.

You will ned to revoke all access to completely keep people out.

Author

Commented:
I didn't realize it was that easy to change that password. I did't have SQL plus installed, I did it from SQL developer. Thanks!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial