DEVFYI - Developer Resource - FYI

How does one manage Oracle database users? (for DBA

ORACLE Interview Questions and Answers (Part 5)


(Continued from previous question...)

830. How does one manage Oracle database users? (for DBA

Oracle user accounts can be locked, unlocked, forced to choose new passwords, etc. For example, all accounts except SYS and SYSTEM will be locked after creating an Oracle9iDB database using the DB Configuration Assistant (dbca). DBA's must unlock these accounts to make them available to users.
Look at these examples:
ALTER USER scott ACCOUNT LOCK -- lock a user account
ALTER USER scott ACCOUNT UNLOCK; -- unlocks a locked users account
ALTER USER scott PASSWORD EXPIRE; -- Force user to choose a new password

(Continued on next question...)

Other Interview Questions