| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Mailing Lists -> Oracle-L -> Re:How to tell when password expiring
Tom,
I suppose one could create a function under sys or system (preferably) that gets called from glogin or login or anywhere else that looks like the following:
create or replace function pwd_exp(name in varchar2) return varchar2 is
time_to_go number;
begin
select expire_date-sysdate
into time_to_go
from dba_users
where username = name;
if(time_to_go > 0) then
return 'Your password expires in '||time_to_go||' days';
end if;
end;
You'd call it as:
select pwd_exp(user) from dual;
Dick Goulet
____________________Reply Separator____________________Subject: How to tell when password expiring Author: blair_at_pjm.com
Has anyone on this list come up with a way to warn Oracle8 users when their passwords will soon be expiring - but before the grace period begins? One of my more persnickety users wants this.
..tom
-- Author: INET: blair_at_pjm.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Fri Jul 07 2000 - 12:22:22 CDT
![]() |
![]() |