2026-03-12 20:23:15

This commit is contained in:
root
2026-03-12 21:23:47 +01:00
parent eab4b36eca
commit 93039b8489
3332 changed files with 699614 additions and 0 deletions

23
vdh/expiring_accounts.sql Normal file
View File

@@ -0,0 +1,23 @@
column username format a30
column profile format a20
column account_status format a15
column creation_date format a20
column expiry_date format a11
select
username, profile, account_status,
to_char(created, 'DD/MM/YYYY HH24:MI:SS') creation_date,
to_char(expiry_date, 'DD/MM/YYYY') expiry_date
from
dba_users
where
( account_status = 'EXPIRED'
or account_status = 'EXPIRED(GRACE)'
)
or ( account_status = 'OPEN'
and expiry_date is not null
)
order by
username
;