You are on page 1of 10

Oracle Data Integrator 11g Bootcamp

Lesson 13 : ODI Procedures

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Agenda
Understand the role of ODI Procedures
See the commands and tools that can be included in a procedure
Step through the process of creating a procedure

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

What are ODI Procedures?


ODI Procedures are macros that comprise a set of commands created to
perform administration tasks
Can make use of database commands, OS commands or ODI Tools
Can have options to modify their behavior
Reusable components that are typically included in packages
Differentiated from KMs in that they are
generally concerned with admin +
maintenance tasks, rather than ELT/ETL

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Example Procedures
ZIP and archive source files
Get the current date
Zip up the source file directory and append the current date to the file name
Move the file to an archive directory
Perform pre-flight ETL checks and tasks
Copy standing (reference) data into a set of tables
Copy reference files into a standard location
Truncate temporary tables
Check that all databases are up and available
Send email to administrator if any tasks fail

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Creating a Procedure Step 1 : Create and Name Procedure


Right-click on the Procedures entry under the required project
Name the procedure and specify source and target technologies
Not mandatory, but useful if all steps use the same techs

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Creating a Procedure Step 2 : Add Command


Switch to the Details tab, press the Add button to add the first command
Enter the name, check the Ignore Errors checkbox if required
For command on Target, set the technology, the context, the logical schema (if
relevant), then repeat for Command on Source if required
Procedures can execute on both source and target for each command

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Creating a Procedure Step 3 : Add Command Code


Press the Expression Editor button next to the command window on either the
Command on Source or Command on Target tabs
Use the Expression Editor if possible
ODI Tools can be dragged onto expression panel to add syntax etc
Use language appropriate for the technology
Use substitution API and variables as required

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Creating a Procedure Step 4 : Save and Execute


Save ODI Procedure once all commands are created
Test execution to confirm functionality

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Hands-On Labs
Lab 13 - ODI Procedures

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Oracle Data Integrator 11g Bootcamp


Lesson 13 : ODI Procedures

T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

You might also like