AllExperts > Experts 
Search      

Oracle

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Oracle Answers
Question Library

Ask a question about Oracle
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Elliot Mak
Expertise
I can answer questions with regarding to Oracle DB (8i, 9i, 10g) installation, configuration, administration, Data Guard, and SQL.

Experience
I am an Oracle DBA, Senior PA, Project Manager, and Data Architect with 10 years of experience.

Education/Credentials
BS in MIS

 
   

You are here:  Experts > Computing/Technology > Oracle > Oracle > Oracle 10g login

Topic: Oracle



Expert: Elliot Mak
Date: 7/12/2008
Subject: Oracle 10g login

Question
hello this is anil,
I have the problem while logging to the SQL*PLUS.
after i entered the username and password as "scott/tiger".it giving the following error
"The account is locked."
plz send me the solution

Answer
Good day Anil,

Here is what you need to do:
1. Logon to the database using SYSTEM or SYS account
2. Unlock the account
alter user <username> account unlock;

here is an example:
SQL> conn scott/tiger@oradb13
ERROR:
ORA-28000: the account is locked


Warning: You are no longer connected to ORACLE.
SQL> conn system@oradb13
Enter password: ******
Connected.
SQL>  select username, account_status from dba_users
 2   where username = 'SCOTT';

USERNAME                       ACCOUNT_STATUS
------------------------------ --------------------------------
SCOTT                          EXPIRED & LOCKED

SQL> alter user scott account unlock;

User altered.

SQL> select username, account_status from dba_users
 2  where username = 'SCOTT';

USERNAME                       ACCOUNT_STATUS
------------------------------ --------------------------------
SCOTT                          EXPIRED

SQL> conn scott/tiger@oradb13
ERROR:
ORA-28001: the password has expired


Changing password for scott
New password: *****
Retype new password: *****
Password changed
Connected.
SQL>

Hope it helps.  If you shall have any questions, please don't hesitate to contact me.

Cheers
Elliot

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.