ORA-28000: the account is locked solution

ORA-28000: the account is locked solution

Symptom)
After installing Oracle 11g, I tried connecting SCOTT account, but I could not connect to "SCOTT" account. I got "ORA-28000: the account is locked" error dialog in the Oracle Toad.

Root Cause)
SCOTT account is locked literally. when installing Oracle database, default setting is lock the account. So I had to unlock the account.

Solution)

Step1. To unlock SCOOT account, run "sqlplus".
Open Window command shell > run "sqlplus". Enter "SYSTEM" and password.
Password will not be shown as security policy.

Step2. Run "connect sys/pwd as sysdba".

Step3. Run "SELECT username, account_status FROM dba_users WHERE username="SCOTT";".







Step4. Unlock SCOTT account.
Run "ALTER user SCOTT account unlock".







Step5. Change SCOTT account password.
Run "ALTER user SCOTT IDENTIFIED BY tiger".








Step6. Now, check SCOTT account is unlocked successfully.
Run "SELECT username, account_status FROM dba_users WHERE username="SCOTT";".

Step7. Try connecting SCOTT account.









Step8. check SCOTT emp table
run "DESC emp;". and "SELECT * FROM emp;".





Comments

Popular posts from this blog

$$ Regular Expression이 안먹는 경우

exception in thread main java.lang.unsupportedclassversionerror unsupported major.minor version 52.0

java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver