Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Notification of password expiration trigger

user206197Sep 4 2008 — edited Sep 15 2008
I am trying to create a logon trigger that notifys users their password is about to expire. Here is a piece of the code. How would I give this notification message after logon?


SELECT trunc(expiry_date) - trunc(lv_date)
INTO v_expiry_time
FROM dba_users
WHERE username IN (SELECT USER FROM dual);
if v_expiry_time > 0 and v_expiry_time <= 10 then

/*give this message --> 'Your password will expire in ' || v_expiry_time || ' day(s).' */

end if;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 13 2008
Added on Sep 4 2008
5 comments
2,432 views