Oracle Data Integrator 11g Bootcamp
Lesson 14 : Scenarios
T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : [email protected] W: www.rittmanmead.com
Agenda
Understand the role of scenarios
Understand generation options
Understand different execution options
Generate and execute a scenario
Regenerate a scenario
Summary
T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : [email protected] W: www.rittmanmead.com
What is an Scenario?
Compiled Code - A scenario is a frozen copy of the generated code
They are un-editable
Generation - Created from ODI objects (package, interface, procedure, variable)
Every scenario has an unique name
Scenarios are versioned
Multiple versions can be created for the same scenario
Execution Ready - can be executed in any context or on any agent
Same scenario can be used in development , test , production environments
Code Release - All ODI code should be released in the form of scenarios
T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : [email protected] W: www.rittmanmead.com
ODI Scenario - Generation Options
Generation - Process to create a new scenario
Creates a new version for new and existing scenarios
Schedules for the new version needs to be redefined, if existed previously
Regeneration - Process to regenerate compiled code for current scenario version
Compiled code is overwritten
Schedules are reattached, if existed previously
T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : [email protected] W: www.rittmanmead.com
ODI Scenario - Execution Options
Different ways to execute scenarios
Graphical user interface - ODI Studio
Command line scripts - startscen or startcmd or startscenremote
- Script location <odi_agent_home>\oracledi\agent\bin
ODI tool -OdiStartScen
- This tool can be used to start scenarios from ODI procedure or package
Scheduling - ODI Agents
Web based application - ODI Console
- Deployed on weblogic server
Webservices - ODI Runtime Webservices
- Webservice exposed by an ODI agent
T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : [email protected] W: www.rittmanmead.com
ODI Scenario - Command Line Execution Scripts
startscen (.sh & .bat)
Starts a local agent to execute a single scenario
Stops the local agent after executing the scenario
Supports synchronous execution only
startscenremote (.sh)
Executes scenario on an remote agent
Supports both synchronous and asynchronous execution
startcmd (.sh & .bat)
Executes ODI tool command on an agent
OdiStartScen tool can be used to execute scenarios
Supports both synchronous and asynchronous execution
T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : [email protected] W: www.rittmanmead.com
Generate a Scenario Step 1 : Name and Version
Right-click an ODI object under the required project, select Generate Scenario
On the New Scenario dialog, Name the scenario and provide a Version no.
Click the OK button to generate the Scenario
T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : [email protected] W: www.rittmanmead.com
Generate a Scenario Step 2 : Verify the Scenario
Expand the ODI object, under Scenarios verify the scenario is created
T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : [email protected] W: www.rittmanmead.com
Generate a Scenario Step 3 : Execute the Scenario
Select the scenario and execute it
T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : [email protected] W: www.rittmanmead.com
Regenerating a Scenario
Right-click on a existing scenario, select Regenerate
On the Regenerate Scenario dialog, click OK.
Scenario will get replaced with new changes
T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : [email protected] W: www.rittmanmead.com
Hands-On Labs
Lab 14 - Scenarios
T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : [email protected] W: www.rittmanmead.com
Summary
ODI Scenarios are easily deployed compiled code
Provides flexibility in executing code across environments
Provides various options for execution
T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : [email protected] W: www.rittmanmead.com
Oracle Data Integrator 11g Bootcamp
Lesson 14 : Scenarios
T : +44 (0) 8446 697 995 or (888) 631 1410 (USA) E : [email protected] W: www.rittmanmead.com