Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

Is there a way you can change Oracle user password without showing the actual password on the screen? I understand that you can execute ALTER USER user_name IDENTIFIED BY new_password; but this will show the password on screen.

My organization practices split-password for administrator password and two person would need to key in the password. How do I allow them to key in the password without any of them viewing any portion of the password?

Thank you.

share|improve this question

1 Answer 1

up vote 6 down vote accepted

You can do this with the SQL*Plus password command.

To change the current user's password, just type password and you'll get the usual prompt.

$ sqlplus foo/foo123
...
SQL> password
Changing password for FOO
Old password:
New password:
Retype new password:
Password changed

You can also use password username to change another user's password (if you're logged on with sufficient privileges - you need to be dba I believe).

SQL Developer also allows you to do that. Just type password and execute, and you'll get a password change popup. Or expand the "Other users" branch, right-click on the account that needs a change and select the "Edit user" menu.

share|improve this answer
    
Well, you learn something new every day! +1 –  Phil Feb 21 '13 at 13:14
    
Hi, I have a quick question. If we forgot the previous password, we can execute ALTER USER user_name IDENTIFIED BY new_password; and then execute the password command again. Am I correct? Thanks. –  dba-dominic Feb 22 '13 at 1:26
1  
Yes unless you've got minimum password age policies in place (not sure how those work). If you log in as dba, the password other_user mode doesn't ask for the old password, so that's an option too. –  Mat Feb 22 '13 at 5:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.