scott account locked in SQL Plus

McLosys Creative picture McLosys Creative · Jul 25, 2012 · Viewed 76k times · Source

When I am trying to logging to Oracle Sql plus by entering 'scott' as username and 'tiger' as password, it shows 'the account is locked'. How to unlock 'scott' account. The screen shot of SQL Plus CLI is given below.

The screen shot is given below

Answer

GWu picture GWu · Jul 25, 2012

Login in to your DB with user SYS

SQL*Plus: Release 11.2.0.1.0 Production on Wed Jul 25 15:13:25 2012

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

Enter user-name: sys as sysdba
Enter password:

then issue

alter user scott account unlock;

Then you will be able to login as scott.

conn scott/tiger