Link to home
Create AccountLog in
Oracle Database

Oracle Database

--

Questions

--

Followers

Top Experts

Avatar of pegahelpdesk1
pegahelpdesk1

I want to get mail alerts whenever an oracle user account gets expired or is in grace period.
I have heard this is possible through OEM console. Can you please tell me a step by step procedure on how to configure mail alerts and alert system admin with password expired accounts. A report with list of users who have their passwords about to expire would be great

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of pinkuraypinkuray๐Ÿ‡ฎ๐Ÿ‡ณ


Avatar of pegahelpdesk1pegahelpdesk1

ASKER

I tried this setup but I dont get any notificAtion, my mail server settings work

Avatar of pinkuraypinkuray๐Ÿ‡ฎ๐Ÿ‡ณ

Have you written the rules for when user account expires then alert ?

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of slightwv (ไ„† Netminder)slightwv (ไ„† Netminder)

Personally I would just write my own procedure to have the database email me.

You can get the expiration date from dba_users and use UTL_MAIL. ย Then just schedule it using DBMS_SCHEDULER or DBMS_JOB.

All this is talked about in the docs.


Avatar of pinkuraypinkuray๐Ÿ‡ฎ๐Ÿ‡ณ

As slightwv said you can also do that, please refer the below link which may help you:

http://download.oracle.com/docs/cd/B28359_01/server.111/b31222/cfrulset.htm


can you pls let me know how to schedule it with DBMS_SCHEDULER or DBMS_JOB

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Are you wanting more of real-time alerting that is discussed in the links provided by pinkuray
or
are you wanting something like a daily report?

I would like to get a report daily indicating which oracle accounts which ย are going to expire

ASKER CERTIFIED SOLUTION
Avatar of slightwv (ไ„† Netminder)slightwv (ไ„† Netminder)

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

I should add:
you can write whatever select statement gets you the results you need then apply the answers to all your other questions related to this topic to actually get the email and get it scheduled.

We cannot answer that here until you decide on an architecture for the process.

Like I mentioned in your other questions:
I would create a stored procedure that generates the 'list' you want. ย Store that list in a varchar2 variable (remember the 32K limit), use UTL_MAIL to send it. ย Then use DBMS_JOB or DBMS_SCHEDULER to run it every day.

If the 'list' can be greater than 32K then, as mentioned in your other questions, use UTL_SMTP and then you can use a CLOB to store the 'list'.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

Oracle Database

Oracle Database

--

Questions

--

Followers

Top Experts

Oracle is an object-relational database management system. It supports a large number of languages and application development frameworks. Its primary languages are SQL, PL/SQL and Java, but it also includes support for C and C++. Oracle also has its own enterprise modules and application server software.