Link to home
Avatar of mossmis
mossmis

asked on

How to Reset oracle schema password

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
Avatar of Pra4444
Pra4444
Flag of United States of America image

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
ASKER CERTIFIED SOLUTION
Avatar of awking00
awking00
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
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.
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

>>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.
Avatar of mossmis

ASKER

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!