Data Warehouse and Business Intelligence - Recipe 7 - A messaging system for Oracle Data Warehouse (part 2)
Massimo Cenci Data Warehouse Blog
system for Oracle
Micro ETL Foundation
What should the system do?
It must allow me to record log messages that are stored in a table and,
if possible, sent via e-mail
I need a messaging system for my Oracle Data Warehouse
How much and how soon can I get it?
It 'free and it will take about 5 minutes
Impossible, I don’t believe you. Prove it.
OK, open a shell (for example DOS) and start immediately.
I have the solution for you. Simple and reusable for any project
Create a folder MEF and move under it.
Download all the files from this shared folder:
And move them under folder MEF.
Open an Oracle SQL*Plus as administrator.
Now answer these questions :
Q1: What is the name of the Oracle user ? A1: ETL (*)
Q2: What is the password ? A2: etl
Q3: What code we give to the DWH project ? A3: EDW
Q4: What is the path of MEF folder ? A4: e:mef
Q5: What is the name of mail server ? A5: acme.ita.com (*)
Q6: What is the Oracle Home path? A6: d:osproduct11.2.0dbhome_1 (*)
Install the message system and use the answers as input with the following command:
> @mef_install A1 A2 A3 "A4" "A5" "A6"
(*) User name must be uppercase and not existent. If it exists, comment the drop statement in the script.
Insert the name of your mail server.
Insert the Oracle Home of your database server.
Just what I wanted! Can we also send email with attachment?
OK, We have finished. Your message system is ready. Open SQL*Pluswith the
ETL user and send a log message. Stay a moment on hold and send another
Now we can see the result with, for example, Oracle SQL Developer
Thank’s MEF !
Certainly. Just reconfigure my personal addresses in the MEF_EMAIL_CFT table
with your references.
Now we can execute the send mail procedure.
Check your mailbox: