Friday, October 24, 2014

How to check last password change date in Oracle?

How to check last password change date in Oracle?

set linesize 200
set pagesize 200
col Last_Password_Change_Time format a30
select
user#,
name,
ctime as Creation_Time,
--to_char(ctime,'DD-MON-YY HH:MI') as Creation_Time,
to_char(ptime,'DD-MON-YY HH:MI') as Last_Password_Change_Time
from
SYS.USER$
where
ctime is not null
and
name not in (select role from dba_roles)
order by ptime;

No comments:

Post a Comment

  DAILY CHECKLIST Oracle Database instance is running or not select name,open_mode from V$database; Note: Check the Oracle databases are ru...