SlideShare a Scribd company logo
Single meal
Designing, building, loading and
managing a Staging Area for an Oracle
Data Warehouse.
Meal ready in 20 minutes.
Price: completely free
(without loading products and without writing a line of code)
Recipes of Data Warehouse and Business Intelligence
Chef: Massimo Cenci (part 1)
• The data file to be loaded. As an example, we use the data file that describes the
world's financial markets downloaded from the site iso15022.org.
• A document describing the file structure. The information on its structure are
described in the FAQ on the site.
• The Micro ETL Foundation (MEF), that is, the ecosystem of facilities and processing
modules that will connect all the ingredients to obtain the final plate.
• A text editor
• Command Prompt to access in SQL*Plus to the Oracle Database
Ingredients
Chef: Massimo Cenci
Preparation
1. Decide a code of three characters for the project (for example dwh), open a DOS
prompt and create a folder with the same name as the project (for example d: 
projectsdwh).
2. Download MEF (from https://drive.google.com/open?
id=0B2dQ0EtjqAOTQzZSaUlyUmxpT1k) and unpack it in the folder dwh.
3. Go under the folder dwhmef and open the mef_def.sql. In this configuration file you
must set some environment variables needed to the Data Warehouse environment
that will be created: the ones you see below, are just an example for Windows. For
the moment only change the red variables according to your environment. (Part 2 of
this article will provide more details)
Chef: Massimo Cenci
Preparation
define prj = 'dwh' -- Project code
define usr = 'etl' -- ETL user name
define pwd = 'etl' -- ETL user password
define frm = 20120101 -- Start day for day dimension table
define ndy = 3660 -- Num days
define dla = 'ITA' -- Default language for descriptions
define dev = '?' -- Default value for varchar2
define den = 0 -- Default value for number
define ded = '99991231' -- Default value for day
define srv = '10.84.253.61' -- Email server (name or ip)
define fss = '' -- File system separator (Windows)
--define fss = '/' -- File system separator (Linux)
define prt = 'd:projects' -- Physical path of the project root (Windows)
--define prt = '/u01/projects' -- Physical path of the project root (Linux)
Chef: Massimo Cenci
Preparation
4. Open a dos prompt under dwhmef, connect to Oracle as sysdba and run the
script mef_install.sql. This installs the MEF ecosystem and will create the etl
user
E:projectsdwhmef> sqlplus / as sysdba
SQL*Plus: Release 12.1.0.1.0 Production on Mon Feb 8 09:29:16 2016
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Advanced Analytics and Real Application
Testing options
SQL> @mef_install
Chef: Massimo Cenci
Preparation
5. Open with an editor the mef config.sql script and change the email addresses of
Massimo Cenci with yours.
6. Connect to the database with the etl user and install the core environment by
running the script mef_core_install.sql
E:projectsdwhmef> sqlplus etl/etl
SQL*Plus: Release 12.1.0.1.0 Production on Mon Feb 8 09:29:16 2016
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Advanced Analytics and Real Application
Testing options
SQL> @mef_core_install
Chef: Massimo Cenci
Preparation
7. Install the staging environment through the script mef_sta_install.sql.
E:projectsdwhmef> sqlplus etl/etl
SQL*Plus: Release 12.1.0.1.0 Production on Mon Feb 8 09:29:16 2016
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Advanced Analytics and Real Application
Testing options
SQL> @mef_sta_install
Chef: Massimo Cenci
Preparation
8. Run the configuration script for the data file that we will code as MIC. The
download of the data file and the information about its structure have already
been setted.
E:projectsdwhmef> sqlplus etl/etl
SQL*Plus: Release 12.1.0.1.0 Production on Mon Feb 8 09:29:16 2016
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Advanced Analytics and Real Application
Testing options
SQL> @sta_conf_io.sql MIC
Chef: Massimo Cenci
Cooking
1. Run the job to load the data file
E:projectsdwhmef> sqlplus etl/etl
SQL*Plus: Release 12.1.0.1.0 Production on Mon Feb 8 09:29:16 2016
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Advanced Analytics and Real Application
Testing options
SQL> exec mef_job.p_run('sta_iso_mic');
Chef: Massimo Cenci
Tasting
• Verify that the Staging Area table is loaded. We can use, for example, SQLDeveloper
Chef: Massimo Cenci
Tasting
• Check that the loading was successful and to have received the result also via email.
Chef: Massimo Cenci
Conclusion
• With the Micro ETL Foundation, you can design, create and manage a Staging Area
using just a text editor and the database internal language.
• The loading of a simple data file does not require more than 20 minutes. We verify the
times:
• Time to configure the features of the data file: 5 minutes
• Time to configure the structure of the data file: 15 minutes
• Running time: 3 seconds (see log)
• Total time: 20 minutes
Chef: Massimo Cenci

More Related Content

PPTX
Data Warehouse and Business Intelligence - Recipe 3
PPTX
Data Warehouse and Business Intelligence - Recipe 7 - A messaging system for ...
PPTX
Data Warehouse and Business Intelligence - Recipe 2
PPTX
Recipe 5 of Data Warehouse and Business Intelligence - The null values manage...
PPTX
Data Warehouse and Business Intelligence - Recipe 1
PPTX
ata Warehouse and Business Intelligence - Recipe 7 - A messaging system for O...
PPTX
Data Warehouse and Business Intelligence - Recipe 4 - Staging area - how to v...
PPTX
Recipes 6 of Data Warehouse and Business Intelligence - Naming convention tec...
Data Warehouse and Business Intelligence - Recipe 3
Data Warehouse and Business Intelligence - Recipe 7 - A messaging system for ...
Data Warehouse and Business Intelligence - Recipe 2
Recipe 5 of Data Warehouse and Business Intelligence - The null values manage...
Data Warehouse and Business Intelligence - Recipe 1
ata Warehouse and Business Intelligence - Recipe 7 - A messaging system for O...
Data Warehouse and Business Intelligence - Recipe 4 - Staging area - how to v...
Recipes 6 of Data Warehouse and Business Intelligence - Naming convention tec...

What's hot (20)

PPT
Recipe 14 - Build a Staging Area for an Oracle Data Warehouse (2)
PPTX
Recipes 8 of Data Warehouse and Business Intelligence - Naming convention tec...
PPTX
Recipe 16 of Data Warehouse and Business Intelligence - The monitoring of the...
PPTX
Recipes 9 of Data Warehouse and Business Intelligence - Techniques to control...
DOCX
Multiple files single target single interface
PPTX
New T-SQL Features in SQL Server 2012
PPTX
MySQL Replication Evolution -- Confoo Montreal 2017
DOCX
Sql loader good example
DOCX
Multiple Flat Files(CSV) to Target Table in ODI12c(12.2.1.0.0)
DOCX
ODI 11g - Multiple Flat Files to Oracle DB Table by taking File Name dynamica...
DOCX
Oracle sql loader utility
DOCX
DataBase Management System Lab File
PDF
Advanced MySQL Query Optimizations
DOC
PDF
Oracle DBA interview_questions
PPT
SQLMAP Tool Usage - A Heads Up
PDF
Advanced SQL injection to operating system full control (slides)
PPTX
Sqlmap
DOC
Oracle notes
PPT
MySql slides (ppt)
Recipe 14 - Build a Staging Area for an Oracle Data Warehouse (2)
Recipes 8 of Data Warehouse and Business Intelligence - Naming convention tec...
Recipe 16 of Data Warehouse and Business Intelligence - The monitoring of the...
Recipes 9 of Data Warehouse and Business Intelligence - Techniques to control...
Multiple files single target single interface
New T-SQL Features in SQL Server 2012
MySQL Replication Evolution -- Confoo Montreal 2017
Sql loader good example
Multiple Flat Files(CSV) to Target Table in ODI12c(12.2.1.0.0)
ODI 11g - Multiple Flat Files to Oracle DB Table by taking File Name dynamica...
Oracle sql loader utility
DataBase Management System Lab File
Advanced MySQL Query Optimizations
Oracle DBA interview_questions
SQLMAP Tool Usage - A Heads Up
Advanced SQL injection to operating system full control (slides)
Sqlmap
Oracle notes
MySql slides (ppt)
Ad

Similar to Recipe 14 of Data Warehouse and Business Intelligence - Build a Staging Area for an Oracle Data Warehouse (1) (20)

PDF
fast_bitcoin_data_mining
PDF
Mohamed Mahgoub_CV
PDF
K2000 Advanced Topics
PPT
Compact, Compress, De-Duplicate (DAOS)
PPT
R12 d49656 gc10-apps dba 01
ODP
Handling Database Deployments
PPTX
patchVantage Cloud Starter Pack
PDF
Create your oracle_apps_r12_lab_with_less_than_us1000
PDF
Provisioning Servers Made Easy
PPTX
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
PPTX
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
DOCX
Mukhtar resume etl_developer
PPTX
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
DOCX
Mukhtar_Resume_ETL_Developer
PPTX
PowerBreakfast #005 - Why DSC, NOW?
PPTX
android sqlite
PDF
Oracle_Retail_Xstore_Suite_Install.pdf
PDF
Administering And Deploying System Center 2012 Configuration Manager
fast_bitcoin_data_mining
Mohamed Mahgoub_CV
K2000 Advanced Topics
Compact, Compress, De-Duplicate (DAOS)
R12 d49656 gc10-apps dba 01
Handling Database Deployments
patchVantage Cloud Starter Pack
Create your oracle_apps_r12_lab_with_less_than_us1000
Provisioning Servers Made Easy
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Mukhtar resume etl_developer
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
Mukhtar_Resume_ETL_Developer
PowerBreakfast #005 - Why DSC, NOW?
android sqlite
Oracle_Retail_Xstore_Suite_Install.pdf
Administering And Deploying System Center 2012 Configuration Manager
Ad

More from Massimo Cenci (16)

PPTX
Il controllo temporale dei data file in staging area
PPTX
Tecniche di progettazione della staging area in un processo etl
PPTX
Note di Data Warehouse e Business Intelligence - Il giorno di riferimento dei...
PPTX
Recipe 12 of Data Warehouse and Business Intelligence - How to identify and c...
PPTX
Note di Data Warehouse e Business Intelligence - Pensare "Agile"
PPTX
Note di Data Warehouse e Business Intelligence - La gestione delle descrizioni
PPTX
Recipes 10 of Data Warehouse and Business Intelligence - The descriptions man...
PPTX
Note di Data Warehouse e Business Intelligence - Tecniche di Naming Conventio...
PPTX
Data Warehouse - What you know about etl process is wrong
PPTX
Letter to a programmer
PPTX
Note di Data Warehouse e Business Intelligence - Tecniche di Naming Conventio...
PPTX
Data Warehouse e Business Intelligence in ambiente Oracle - Il sistema di mes...
PPTX
Data Warehouse e Business Intelligence in ambiente Oracle - Il sistema di mes...
PPT
Oracle All-in-One - how to send mail with attach using oracle pl/sql
PPTX
Note di Data Warehouse e Business Intelligence - Le Dimensioni di analisi (pa...
PPTX
Note di Data Warehouse e Business Intelligence - Le Dimensioni di analisi
Il controllo temporale dei data file in staging area
Tecniche di progettazione della staging area in un processo etl
Note di Data Warehouse e Business Intelligence - Il giorno di riferimento dei...
Recipe 12 of Data Warehouse and Business Intelligence - How to identify and c...
Note di Data Warehouse e Business Intelligence - Pensare "Agile"
Note di Data Warehouse e Business Intelligence - La gestione delle descrizioni
Recipes 10 of Data Warehouse and Business Intelligence - The descriptions man...
Note di Data Warehouse e Business Intelligence - Tecniche di Naming Conventio...
Data Warehouse - What you know about etl process is wrong
Letter to a programmer
Note di Data Warehouse e Business Intelligence - Tecniche di Naming Conventio...
Data Warehouse e Business Intelligence in ambiente Oracle - Il sistema di mes...
Data Warehouse e Business Intelligence in ambiente Oracle - Il sistema di mes...
Oracle All-in-One - how to send mail with attach using oracle pl/sql
Note di Data Warehouse e Business Intelligence - Le Dimensioni di analisi (pa...
Note di Data Warehouse e Business Intelligence - Le Dimensioni di analisi

Recently uploaded (20)

PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
top salesforce developer skills in 2025.pdf
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Understanding Forklifts - TECH EHS Solution
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PPTX
ai tools demonstartion for schools and inter college
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
PPTX
Online Work Permit System for Fast Permit Processing
PPTX
Introduction to Artificial Intelligence
PPT
Introduction Database Management System for Course Database
PDF
PTS Company Brochure 2025 (1).pdf.......
Navsoft: AI-Powered Business Solutions & Custom Software Development
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
top salesforce developer skills in 2025.pdf
Wondershare Filmora 15 Crack With Activation Key [2025
Understanding Forklifts - TECH EHS Solution
How to Choose the Right IT Partner for Your Business in Malaysia
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
VVF-Customer-Presentation2025-Ver1.9.pptx
Odoo Companies in India – Driving Business Transformation.pdf
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
ManageIQ - Sprint 268 Review - Slide Deck
ai tools demonstartion for schools and inter college
2025 Textile ERP Trends: SAP, Odoo & Oracle
CHAPTER 2 - PM Management and IT Context
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
Online Work Permit System for Fast Permit Processing
Introduction to Artificial Intelligence
Introduction Database Management System for Course Database
PTS Company Brochure 2025 (1).pdf.......

Recipe 14 of Data Warehouse and Business Intelligence - Build a Staging Area for an Oracle Data Warehouse (1)

  • 1. Single meal Designing, building, loading and managing a Staging Area for an Oracle Data Warehouse. Meal ready in 20 minutes. Price: completely free (without loading products and without writing a line of code) Recipes of Data Warehouse and Business Intelligence Chef: Massimo Cenci (part 1)
  • 2. • The data file to be loaded. As an example, we use the data file that describes the world's financial markets downloaded from the site iso15022.org. • A document describing the file structure. The information on its structure are described in the FAQ on the site. • The Micro ETL Foundation (MEF), that is, the ecosystem of facilities and processing modules that will connect all the ingredients to obtain the final plate. • A text editor • Command Prompt to access in SQL*Plus to the Oracle Database Ingredients Chef: Massimo Cenci
  • 3. Preparation 1. Decide a code of three characters for the project (for example dwh), open a DOS prompt and create a folder with the same name as the project (for example d: projectsdwh). 2. Download MEF (from https://drive.google.com/open? id=0B2dQ0EtjqAOTQzZSaUlyUmxpT1k) and unpack it in the folder dwh. 3. Go under the folder dwhmef and open the mef_def.sql. In this configuration file you must set some environment variables needed to the Data Warehouse environment that will be created: the ones you see below, are just an example for Windows. For the moment only change the red variables according to your environment. (Part 2 of this article will provide more details) Chef: Massimo Cenci
  • 4. Preparation define prj = 'dwh' -- Project code define usr = 'etl' -- ETL user name define pwd = 'etl' -- ETL user password define frm = 20120101 -- Start day for day dimension table define ndy = 3660 -- Num days define dla = 'ITA' -- Default language for descriptions define dev = '?' -- Default value for varchar2 define den = 0 -- Default value for number define ded = '99991231' -- Default value for day define srv = '10.84.253.61' -- Email server (name or ip) define fss = '' -- File system separator (Windows) --define fss = '/' -- File system separator (Linux) define prt = 'd:projects' -- Physical path of the project root (Windows) --define prt = '/u01/projects' -- Physical path of the project root (Linux) Chef: Massimo Cenci
  • 5. Preparation 4. Open a dos prompt under dwhmef, connect to Oracle as sysdba and run the script mef_install.sql. This installs the MEF ecosystem and will create the etl user E:projectsdwhmef> sqlplus / as sysdba SQL*Plus: Release 12.1.0.1.0 Production on Mon Feb 8 09:29:16 2016 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options SQL> @mef_install Chef: Massimo Cenci
  • 6. Preparation 5. Open with an editor the mef config.sql script and change the email addresses of Massimo Cenci with yours. 6. Connect to the database with the etl user and install the core environment by running the script mef_core_install.sql E:projectsdwhmef> sqlplus etl/etl SQL*Plus: Release 12.1.0.1.0 Production on Mon Feb 8 09:29:16 2016 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options SQL> @mef_core_install Chef: Massimo Cenci
  • 7. Preparation 7. Install the staging environment through the script mef_sta_install.sql. E:projectsdwhmef> sqlplus etl/etl SQL*Plus: Release 12.1.0.1.0 Production on Mon Feb 8 09:29:16 2016 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options SQL> @mef_sta_install Chef: Massimo Cenci
  • 8. Preparation 8. Run the configuration script for the data file that we will code as MIC. The download of the data file and the information about its structure have already been setted. E:projectsdwhmef> sqlplus etl/etl SQL*Plus: Release 12.1.0.1.0 Production on Mon Feb 8 09:29:16 2016 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options SQL> @sta_conf_io.sql MIC Chef: Massimo Cenci
  • 9. Cooking 1. Run the job to load the data file E:projectsdwhmef> sqlplus etl/etl SQL*Plus: Release 12.1.0.1.0 Production on Mon Feb 8 09:29:16 2016 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options SQL> exec mef_job.p_run('sta_iso_mic'); Chef: Massimo Cenci
  • 10. Tasting • Verify that the Staging Area table is loaded. We can use, for example, SQLDeveloper Chef: Massimo Cenci
  • 11. Tasting • Check that the loading was successful and to have received the result also via email. Chef: Massimo Cenci
  • 12. Conclusion • With the Micro ETL Foundation, you can design, create and manage a Staging Area using just a text editor and the database internal language. • The loading of a simple data file does not require more than 20 minutes. We verify the times: • Time to configure the features of the data file: 5 minutes • Time to configure the structure of the data file: 15 minutes • Running time: 3 seconds (see log) • Total time: 20 minutes Chef: Massimo Cenci