6
Recipes of Data Warehouse and Business Intelligence Massimo Cenci Data Warehouse Blog http://massimocenci.blogspot.it A messaging system for Oracle Data Warehouse (part 2) Micro ETL Foundation

Data Warehouse and Business Intelligence - Recipe 7 - A messaging system for Oracle Data Warehouse (part 2)

Embed Size (px)

DESCRIPTION

Recipes of Data Warehouse and Business Intelligence. A messaging system for Oracle Data Warehouse (part 2)

Citation preview

Page 1: Data Warehouse and Business Intelligence - Recipe 7 - A messaging system for Oracle Data Warehouse (part 2)

Recipes of Data Warehouse

and Business Intelligence

Massimo Cenci Data Warehouse Bloghttp://massimocenci.blogspot.it

A messaging system for Oracle Data Warehouse

(part 2)

Micro ETL Foundation

Page 2: Data Warehouse and Business Intelligence - Recipe 7 - A messaging system for Oracle Data Warehouse (part 2)

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

Page 3: Data Warehouse and Business Intelligence - Recipe 7 - A messaging system for Oracle Data Warehouse (part 2)

Create a folder MEF and move under it.

Download all the files from this shared folder:https://drive.google.com/folderview?id=0B2dQ0EtjqAOTaU5WNmc5MkVnVFE&usp=sharingAnd move them under folder MEF.

Open an Oracle SQL*Plus as administrator.

Page 4: Data Warehouse and Business Intelligence - Recipe 7 - A messaging system for Oracle Data Warehouse (part 2)

Now answer these questions :

Q1: What is the name of the Oracle user ? A1: ETL (*)Q2: What is the password ? A2: etlQ3: What code we give to the DWH project ? A3: EDWQ4: What is the path of MEF folder ? A4: e:\mefQ5: What is the name of mail server ? A5: acme.ita.com (*)Q6: What is the Oracle Home path? A6: d:\o\s\product\11.2.0\dbhome_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.

Page 5: Data Warehouse and Business Intelligence - Recipe 7 - A messaging system for Oracle Data Warehouse (part 2)

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 log message.

Now we can see the result with, for example, Oracle SQL Developer

Page 6: Data Warehouse and Business Intelligence - Recipe 7 - A messaging system for Oracle Data Warehouse (part 2)

Thank’s MEF !

Certainly. Just reconfigure my personal addresses in the MEF_EMAIL_CFT tablewith your references.

Now we can execute the send mail procedure.

Check your mailbox: