SQL> select username,account_status,to_char (lock_date,'dd-mon-yyy hh24:mi:ss') from dba_users where lock_date is not null
USERNAME ACCOUNT_STATUS TO_CHAR(LOCK_DATE,'
------------- ---------------- -------------------------------------------------------
RNSIJO LOCKED(TIMED) 25-feb-020 07:10:11
ARCHIVEDB LOCKED(TIMED) 10-dec-018 13:17:42
ALAA LOCKED(TIMED) 19-feb-020 10:44:41
OUTLN EXPIRED & LOCKED 03-nov-011 06:38:16
XS$NULL EXPIRED & LOCKED 03-nov-011 06:01:56
SQL> select username,account_status from dba_users where username like 'GH%';
USERNAME ACCOUNT_STATUS
------------ --------------------------------
GHADA LOCKED(TIMED)
SQL> SELECT username, account_status, created, lock_date, expiry_date FROM dba_users WHERE account_status != 'OPEN';
USERNAME ACCOUNT_STATUS CREATED LOCK_DATE EXPIRY_DA
------------------------------------------------------------------------------------------------------------------------
OUTLN EXPIRED & LOCKED 03-NOV-11 03-NOV-11 03-NOV-11
DIP EXPIRED 03-NOV-11 03-NOV-11
ORACLE_OCM EXPIRED 03-NOV-11 03-NOV-11
APPQOSSYS EXPIRED 03-NOV-11 03-NOV-11
WMSYS EXPIRED 03-NOV-11 03-NOV-11
XS$NULL EXPIRED & LOCKED 03-NOV-11 03-NOV-11 03-NOV-11
EXFSYS EXPIRED 03-NOV-11 03-NOV-11
CTXSYS EXPIRED 03-NOV-11 03-NOV-11
XDB EXPIRED 03-NOV-11 03-NOV-11
ANONYMOUS EXPIRED 03-NOV-11 03-NOV-11
ORDSYS EXPIRED 03-NOV-11 03-NOV-11
ORDDATA EXPIRED 03-NOV-11 03-NOV-11
ORDPLUGINS EXPIRED 03-NOV-11 03-NOV-11
MDSYS EXPIRED 03-NOV-11 03-NOV-11
OLAPSYS EXPIRED 03-NOV-11 03-NOV-11
OWBSYS_AUDIT EXPIRED 03-NOV-11 03-NOV-11
MDDATA EXPIRED 03-NOV-11 03-NOV-11
FLOWS_FILES EXPIRED 03-NOV-11 03-NOV-11
APEX_030200 EXPIRED 03-NOV-11 03-NOV-11
OWBSYS EXPIRED 03-NOV- 03-NOV-11
LAB LOCKED(TIMED) 11-OCT-14 07-AUG-16
DIET LOCKED(TIMED) 11-OCT-14 02-OCT-16
GHADA LOCKED(TIMED) 11-OCT-14 23-AUG-16
FINSAMI LOCKED(TIMED) 22-NOV-15 02-JAN-17
Happy Learning .....
No comments:
Post a Comment