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

  How to Change Instance Type & Security Group of EC2 in AWS By David Taylor Updated April 29, 2023 EC2 stands for Elastic Compute Cloud...