Oh, I forgot to mention (although it should be obvious) that the table
employee contains ids linked to dba_users.username as well as a column for
email.
-----Original Message-----
Sent: Tuesday, July 23, 2002 5:43 PM
To: Multiple recipients of list ORACLE-L
email?
This is what I use to send an email 3 days before and 1 day before
(obviously this is on a Unix box):
passwd_exp.sh:
cd /oracle/oper
sqlplus <<!JCM
xxx/$XXX_ID
set pagesize 0
set echo off
set feed off
set term off
spool pw_exp_mail.sh
@passwd_exp.sql
exit;
!JCM
sed 1d pw_exp_mail.sh > pw_send_mail.sh
chmod ug+x pw_send_mail.sh
pw_send_mail.sh
passwd_exp.sql:
select 'mail '||email||' <pw_exp_message_3.txt'
from employee e, dba_users du
where e.id=du.username
and trunc(expiry_date)-trunc(sysdate)=3
and du.profile in ('XXXX_PROFILE',etc.);
select 'mail '||email||' <pw_exp_message_1.txt'
from employee e, dba_users du
where e.id=du.username
and trunc(expiry_date)-trunc(sysdate)=1
and du.profile in ('XXXX_PROFILE',etc.')
and du.account_status<>'LOCKED';
spool off;
pw_exp_message_1.txt:
Your Oracle password will expire in 1 day.
-----Original Message-----
Sent: Tuesday, July 23, 2002 12:53 PM
To: Multiple recipients of list ORACLE-L
Hi All,
Does anybody have a standard code or process for sending email from oracle
to address the following issue.
Thanks,
Ashoke
-----Original Message-----
Sent: Monday, July 22, 2002 3:37 PM
To: Multiple recipients of list ORACLE-L
Not sure it would be the best but... logically I would:
1. get sysdate
2. get expiration date
3. if expiration date - sysdate <= 7 (let's say you wanted to warn them 7
days in advance) send them e-mail.
I have not done e-mail from Oracle but there are plenty examples everywhere.
Or, I think you could create a screen in your app. and display that screen
for them any time they get close to expiration date. You can even let them
change their password through that screen, too.
-----Original Message-----
Sent: Monday, July 22, 2002 3:10 PM
To: Multiple recipients of list ORACLE-L
Greetings,
As I understand that from Oracle 8 onward we have the feature of password
management like account locking, password aging and expiration, password
history and password complexity requirements.
My understanding is that if the password is expired for an user then that
user will be notified during his first attempt to login to the oracle
database. Instead of waiting for the user to login and then know about his
password expiration, we
are trying to find out a way by which the oracle can automatically send an
email to the respective user as it is close to the password expiration or as
the password has just expired.
Any ideas?
Thanks in advance,
Ashoke
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Mandal, Ashoke
INET: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Lyuda Hoska
INET: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Mandal, Ashoke
INET: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Miller, Jay
INET: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Miller, Jay
INET: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).