Catt Solutions

Search
Skip to content

Daily Archives: April 24, 2010

11g, audit, Oracle, Oracle 10g, oracle 9i

Determining the process which is locking an Oracle account with incorrect password:

April 24, 2010 Larry Catt Leave a comment

The Oracle RDBMS attempts to control unauthorized access to the system by guessing of a password with profile setting (FAILED_LOGIN_ATTEMPTS and PASSWORD_LOCK_TIME). FAILED_LOGIN_ATTTEMPTS is the parameter that controls the number of times the incorrect password can be presented before the account goes into a LOCKED(TIMED) status, preventing the user from logging on for a specific period of time.
PASSWORD_LOCK_TIME is the time in days an account will stay in a LOCKED(TIMED) status. In this article we will demonstrate how to determine what is locking a user account by presenting the incorrect password. This procedure will work on any OS.

NOTE: For this example to work correctly, the user profile must have the following limits set: FAILED_LOGIN_ATTEMPTS equal to 3. PASSWORD_LOCK_TIME equal to anything greater then zero.

1. Logon to your oracle database server as the oracle software owner.

2. Ensure your init parameter AUDIT_TRAIL is set to DB and then execute the following command to enable login auditing: audit session;

SQL> audit session;

Audit succeeded.

SQL>

3. Attempt to logon to SQLPLUS as a normal user four times with the incorrect password. In this example we are using the user account LJCATT.

SQL> connect ljcatt/asdfasdfa
ERROR:
ORA-01017: invalid username/password; logon denied

Warning: You are no longer connected to ORACLE.
SQL> connect ljcatt/kdlafjasdkljfa
ERROR:
ORA-01017: invalid username/password; logon denied

SQL> connect ljcatt/kldafjalsdj
ERROR:
ORA-01017: invalid username/password; logon denied

SQL> connect ljcatt/asdfjafja
ERROR:
ORA-28000: the account is locked

4. Search the dba_audit_session view for records with a returncode equal to 1017 which indicate a failed logon with the following SQL: select userid, userhost, terminal, timestamp, action_name from sys.dba_audit_trail where RETURNCODE=’1017′

column username format a9
column userhost format a9
column terminal format a10
column timestamp format a11
column action_name format a11

select username, userhost, terminal, timestamp, action_name from
sys.dba_audit_trail where RETURNCODE=’1017′;

OUTPUT

SQL> column username format a9
SQL> column userhost format a9
SQL> column terminal format a10
SQL> column timestamp format a11
SQL> column action_name format a11
SQL>
SQL> select username, userhost, terminal, timestamp, action_name from
sys.dba_audit_trail where RETU
RNCODE=’1017′;

USERNAME USERHOST TERMINAL TIMESTAMP ACTION_NAME
——— ——— ———- ———– ———–
LJCATT frankie pts/1 12-MAY-10 LOGON
LJCATT frankie pts/1 12-MAY-10 LOGON
LJCATT frankie pts/1 12-MAY-10 LOGON

SQL>

5 Analysis: From the audit information above we can see that the user LJCATT unsuccessfully attempted to connect to the Oracle database with the wrong password three times from the server FRANKIE. This is normally enough information find out whom or what is causing the locking of an account.

Larry J. Catt, OCP 9i, 10g
oracle@allcompute.com
www.allcompute.com

1017account lockingauditlocked(timed)Oracleuser account

Recent Posts

  • OpenJDK JVM not supported while installing Oracle Fusion Middleware on Linux 7
  • Changing command prompt in LINUX
  • Determining SID(s) from Database Server
  • Determining ORACLE_HOME(s) from Database Server
  • Determine the release of linux you are using

Categories

  • 11g (98)
  • 12c (159)
  • ADDM (6)
  • Administration (40)
  • ADR (2)
  • alert / logs (5)
  • archiving (1)
  • ASH (3)
  • ASM (7)
  • audit (19)
  • backup/recovery (18)
  • CDB (30)
  • Cloud Control (5)
  • data pump (8)
  • dbca (8)
  • EM (7)
  • EM Express (5)
  • error (16)
  • flashback (8)
  • FMW (1)
  • hp-ux (47)
  • ILM (2)
  • installer (35)
  • itanium (33)
  • linux (71)
  • listener (6)
  • Multitenant (25)
  • network (20)
  • OPatch (12)
  • ORA- (1)
  • Oracle (169)
  • Oracle 10g (122)
  • oracle 9i (97)
  • PDB (25)
  • Performance (24)
  • perl (2)
  • privileges (7)
  • RAC (37)
  • redaction (2)
  • replay (1)
  • RMAN (12)
  • RMAN (19)
  • script (13)
  • security (5)
  • SQL (32)
  • SQLLoader (2)
  • sqlplus (13)
  • storage (7)
  • tablespaces (6)
  • testing (3)
  • tnsnames (3)
  • troubleshooting (1)
  • uncategorized (376)
  • unix (49)
  • Users (10)
  • utility (14)
  • VM (3)
  • watches (9)
  • windows (18)
  • windows 7 (13)

Oracle tips and tricks.

April 2010
S M T W T F S
 123
45678910
11121314151617
18192021222324
252627282930  
« Mar   May »

Archive

  • July 2017 (7)
  • June 2017 (5)
  • May 2017 (5)
  • April 2017 (8)
  • March 2017 (7)
  • February 2017 (6)
  • January 2017 (6)
  • December 2016 (6)
  • November 2016 (7)
  • October 2016 (5)
  • September 2016 (7)
  • August 2016 (7)
  • July 2016 (7)
  • June 2016 (8)
  • May 2016 (4)
  • April 2016 (7)
  • March 2016 (7)
  • February 2016 (7)
  • January 2016 (7)
  • December 2015 (7)
  • November 2015 (7)
  • October 2015 (5)
  • September 2015 (7)
  • August 2015 (7)
  • July 2015 (3)
  • June 2015 (2)
  • May 2015 (1)
  • April 2015 (2)
  • March 2015 (2)
  • February 2015 (2)
  • January 2015 (1)
  • December 2014 (4)
  • November 2014 (2)
  • October 2014 (1)
  • August 2014 (1)
  • June 2014 (1)
  • May 2014 (1)
  • April 2014 (1)
  • January 2014 (1)
  • October 2013 (3)
  • September 2013 (2)
  • August 2013 (2)
  • July 2013 (1)
  • June 2013 (1)
  • April 2013 (1)
  • February 2013 (1)
  • December 2012 (1)
  • September 2012 (1)
  • June 2012 (1)
  • May 2012 (1)
  • February 2012 (1)
  • November 2011 (1)
  • September 2011 (1)
  • July 2011 (1)
  • May 2011 (1)
  • April 2011 (8)
  • March 2011 (2)
  • February 2011 (4)
  • January 2011 (4)
  • December 2010 (4)
  • November 2010 (4)
  • October 2010 (2)
  • September 2010 (2)
  • August 2010 (3)
  • July 2010 (2)
  • June 2010 (5)
  • May 2010 (10)
  • April 2010 (13)
  • March 2010 (10)
  • February 2010 (8)
  • January 2010 (6)
  • December 2009 (7)
  • November 2009 (4)
  • October 2009 (6)
  • September 2009 (5)
  • August 2009 (20)
  • July 2009 (4)
  • May 2009 (4)
  • April 2009 (1)
  • March 2009 (1)
  • February 2009 (1)
  • January 2009 (6)
  • September 2008 (6)
  • July 2008 (1)
  • June 2008 (1)
  • May 2008 (1)
  • April 2008 (1)
Proudly powered by WordPress