Sie sind auf Seite 1von 13

Oracle Data Integrator 11g Bootcamp

Lesson 15-2 : Load Plans

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

Agenda
What are Load Plans
Restarting Failed Load Plans
Running Load Plans

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

What are Load Plans


New in ODI 11.1.1.5
Helps organize an optimal execution schedule for a batch
Advanced sequencing capabilities
Parallel or Serial
Conditional branching
Exception handling
Complements Scenarios and Packages, does not replace them
Can be created and edited in both Development and Execution work repositories

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

Load Plans
Built up of a hierarchy of steps
Serial and Parallel run the steps within them
either sequentially, or in parallel
- Parallelize work to reduce net runtime
- for example, dimensions can often be
loaded independently, and thus
parallelized.
- Serialise work where dependencies exist
- eg. all dimensions must be loaded
before the facts can be
- eg. load base fact tables before
aggregates
Run Scenario executes a named Scenario
- Doesn t have to exist yet, can just be a
placeholder
T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : enquiries@rittmanmead.com W: www.rittmanmead.com

Conditional Branching
Variables can be included in a Load Plan, and used for
conditional execution of packages or steps
Also where required by
Case steps define a conditional branch in the Load Plan,
based on the evaluation of a variable
When and Else steps define the condition on the variable
Flexible list of operators
Only the first matching condition is executed

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

Exception Handling
If a load plan step fails, it can call an Execution Step
It can either continue running, or raise the exception
If the exception is raised, then the exception handler for the parent step is invoked
Granular control of error handling, allowing groups of steps to fail whilst
protecting the overall batch
Serial/Parallel tasks can be configured to raise an exception after x failures of
child steps, or a fixed timeout

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

Exception Steps
Exception steps can be defined and attached to one or many Load Plan Steps
Exception steps can invoke serial/parallel steps, scenarios
Conditional branching can be used within exception steps

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

Restarting Failed Load Plans


The behavior of each step and scenario in a load plan on restart can be
configured
Serial steps:
- Restart all children steps (failed or not)
- Restart from the failing child step
Parallel steps:
- Restart all children steps (failed or not)
- Restart just the children step(s) that failed
For Run Scenario steps:
Restart session, session step, or session task

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

Running Load Plans


Load Plans can be executed in several ways:
On schedule, via the ODI scheduler
Command Line
Web Service
ODI Studio (i.e. manually)
A Load Plan must run on a JEE agent or standalone agent
it cannot run on a Local Agent
When a Load Plan runs, a Load Plan Instance is created
This Load Plan Instance will have one or many Load Plan Runs associated with it
Unlike restarting a session, which overwrites the previous one, a restarted Load
Plan will create a new Load Plan Run within the Load Plan Instance

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

Running Load Plans


When a Load Plan is running, it can be monitored through Operator
The view is the same as when editing, i.e. the steps and flow are shown in context
Session IDs are hyperlinked to the session detail

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

Hands-On Labs
Lab 15-2 - Load Plans

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

Limitations
Within a parallel step, you cannot restrict the number of scenarios to execute at
once
For example, may have 15 steps but want to run maximum of 5 concurrently in
order to not overwhelm server resources
You cannot define granular dependencies
Packages may provide more flexible workflow management in some situations
Choose the right tool for the right job!

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 15-2 : Load Plans

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

Das könnte Ihnen auch gefallen