kscope15 - automatic promotion and versioning with oracle data integrator

43

Upload: jerome-francoisse

Post on 14-Apr-2017

239 views

Category:

Data & Analytics


0 download

TRANSCRIPT

Page 1: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator
Page 2: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Rittman Mead ConsultingManage your ODI Development Lifecycle Oracle Data Integrator 12c

Jérôme FrançoisseKscope15 – June 2015 – Hollywood FL

Page 3: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Jérôme Françoisse•Consultant for Rittman Mead

‣Oracle BI/DW Architect/Analyst/Developer•ODI Trainer•Providing ODI support on OTN Forums•ODI 12c Beta Program Member•Blogger at http://www.rittmanmead.com/blog/•Email : [email protected]•Twitter : @JeromeFr

Page 4: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Rittman Mead•Oracle Gold partner with offices in Europe, US (Atlanta), Australia, India and South

Africa•World leading specialist partner for technical excellence, solutions delivery and

innovation in Oracle BI•Provide consulting, training, global managed services for customers around the world•120+ consultants including 1 Oracle ACE Director and 3 Oracle ACEs•All expert in Oracle BI, DW, EPM and Analytics tech•Skills in broad range of supporting Oracle tools: OBIEE, OBIA, ODIEE, Essbase,

Oracle OLAP, GoldenGate, Exadata, Endeca, Big Data, …•Blog : http://www.rittmanmead.com/blog/•Twitter : @rittmanmead

Page 5: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

Visual Redesign Business User TrainingOngoing SupportEngagement Toolkit

Average user adoption for BIplatforms is below 25%Rittman Mead’s User Engagement Service can help

Page 6: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

ODI 12c Key Components•ODI Studio (the main development IDE)‣Designer Navigator‣Operator Navigator‣Topology Navigator‣Security Navigator

•ODI Agents (executing mappings and packages)•ODI Console (web-based interface)•ODI Repositories (contain definitions of models, interfaces and other objects)

DesignerModel data sources

Define projectsCreate interfaces

Release scenarios

OperatorView running interfaces and

packagesOperate production

RepositoryStandaloneAgent

Orchestrateinterfaces and scenarios

Information Systems(Databases, files, applications)

Page 7: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

ODI Architecture

Page 8: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

ODI 12c Key Components

SecurityTopology

Versioning

Master Repository

ModelsProjects

Execution

Work Repository(Development)

Execution

Execution Repository(Production)

•ODI Studio (the main development IDE)‣Designer Navigator‣Operator Navigator‣Topology Navigator‣Security Navigator

•ODI Agents (executing mappings and packages)•ODI Console (web-based interface)•ODI Repositories (contain definitions of models, interfaces and other objects)

Page 9: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Physical and Logical Topology

DEV_SCOTT

SH

HR

SCOTT

HR

SCOTT

SH

HUM_RES

DEV_OP

TEST_OP

PROD_OP

Physical

SCOTT

HR

Contexts Logical

DEV

TEST

PROD

SH

Page 10: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

How many repositories do I need?

SecurityTopology

Versioning

Master Repository

ModelsProjects

Execution

Work Repository(Development)

Execution

Execution Repository(Production)

Page 11: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

How many repositories do I need?

SecurityTopology

Versioning

Master Repository

ModelsProjects

Execution

Work Repository(Development)

Execution

Execution Repository(Production)

Execution

Execution Repository(Test)

Page 12: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

How many repositories do I need?

SecurityTopology

Versioning

Master Repository

ModelsProjects

Execution

Work Repository(Development)

Execution

Execution Repository(Production)

Execution

Execution Repository(Test)

SecurityTopology

Versioning

Master Repository

Page 13: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

How many repositories do I need?

SecurityTopology

Versioning

Master Repository

ModelsProjects

Execution

Work Repository(Development)

Execution

Execution Repository(Production)

Execution

Execution Repository(Test)

SecurityTopology

Versioning

Master Repository

Execution

Execution Repository(Pre-Production)

SecurityTopology

Versioning

Master Repository

Page 14: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

How many repositories do I need?

ModelsProjects

Execution

Work Repository(Development)

Execution

Execution Repository(Production)

Execution

Execution Repository(Test)

SecurityTopology

Versioning

Master Repository

ModelsProjects

Execution

Work Repository(Hotfix)

Execution

Execution Repository(Pre-Production)

SecurityTopology

Versioning

Master Repository

SecurityTopology

Versioning

Master Repository

Page 15: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

How many repositories do I need?

ModelsProjects

Execution

Work Repository(Development)

Execution

Execution Repository(Production)

Execution

Execution Repository(Test)

SecurityTopology

Versioning

Master Repository

ModelsProjects

Execution

Work Repository(Hotfix)

Execution

Execution Repository(Pre-Production)

SecurityTopology

Versioning

Master Repository

SecurityTopology

Versioning

Master Repository

Execution

Execution Repository(Smoke Test)

Page 16: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Export

SecurityTopology

Versioning

Master Repository

ModelsProjects

Execution

Work Repository(Development)

Execution

Execution Repository(Production)

- Manually

Page 17: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Export

SecurityTopology

Versioning

Master Repository

ModelsProjects

Execution

Work Repository(Development)

Execution

Execution Repository(Production)

- Manually

Page 18: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Export

SecurityTopology

Versioning

Master Repository

ModelsProjects

Execution

Work Repository(Development)

Execution

Execution Repository(Production)

- Manually

Page 19: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Export

SecurityTopology

Versioning

Master Repository

ModelsProjects

Execution

Work Repository(Development)

Execution

Execution Repository(Production)

- Manually

Page 20: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Export

SecurityTopology

Versioning

Master Repository

ModelsProjects

Execution

Work Repository(Development)

Execution

Execution Repository(Production)

- Manually

Page 21: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Export

SecurityTopology

Versioning

Master Repository

ModelsProjects

Execution

Work Repository(Development)

Execution

Execution Repository(Production)

- Manually

Page 22: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Versioning - Create a version

Page 23: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Versioning - Comparison

Page 24: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Versioning - Comparison

Page 25: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Versioning - Restore a version

Page 26: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Versioning – Version Browser

Page 27: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Automation

XKCD.com

Page 28: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Automation

XKCD.com

Page 29: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Export - Automated within a package

Page 30: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Export

ModelsProjects

Execution

Work Repository(Development)

Execution

Execution Repository(Production)

Execution

Execution Repository(Test)

SecurityTopology

Versioning

Master Repository

ModelsProjects

Execution

Work Repository(Hotfix)

Execution

Execution Repository(Pre-Production)

SecurityTopology

Versioning

Master Repository

SecurityTopology

Versioning

Master Repository

Execution

Execution Repository(Smoke Test)

Page 31: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Automation

XKCD.com

Page 32: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

ODI SDK - Scripting/*(...) Connection to the source repository(...) Creation of a collection of mappings(...) Instanciation of an OdiScenarioGeneratorImpl object and Mapping finder Object*/

// Generating Scenarios mappings = mappingFinder.findByProject(projectCode, folderName);For(Object mapping : mappings) { Mapping odiMap = (Mapping) mapping; String scenName = odiMap.getName(); OdiScenario newScen = gene.generateScenario(odiMap, scenName, newVersion); odiMap.exportToXml(odiscen, ExportPath, OverWrite, RecursiveExport, Encoding); }

Page 33: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

ODI SDK - Scripting/*(...) Creation of a collection of the generated scenarios*/

// Exporting Scenariosfor (Object scen : scenarioCollection) { OdiScenario odiscen =(OdiScenario)scen ; export.exportToXml(odiscen, ExportPath, OverWrite, RecursiveExport, Encoding);}

Page 34: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

ODI SDK - Scripting/*(...) Connection to the target repository(...) Creation of a list of XML files.*/

// Importing Scenariosfor (String filename : XMLFiles) { import.importObjectFromXml( import.IMPORT_MODE_SYNONYM_INSERT_UPDATE, filename, true);}

Page 35: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

SubVersion •Revision control tool

•Checkout a project from the remote repository•Make some changes•(Add files)•Commit your changes with a message to the remote repository• In case of conflict : Manual resolution•Restore earlier versions

Page 36: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

SubVersion – Folders structure•Trunk – Master copy of the code•Branches – Ongoing development or different versions•Merge branch in the trunk when development is done

Page 37: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Git•Created by Linus Torvalds•Local repository - Remote repository•Built-in branching mechanism•Built-in merging for the branches and the master copy•Pull request

Page 38: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

GIT - Commit and Push

git add . -Agit commit -m "My commit Message"git push

•From OdiOSCommand•From Java as an OS Command•From Java using a library‣Jgit‣JavaGit‣GitHub API for Java (kohsuke)

Page 39: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

...

Page 40: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Oracle can do it !•Lifecycle Management features•Announced at OOW 2014•Third-party tool (SubVersion? Git?)

•Oracle Data Integrator 12c – Wait for it•Oracle Data Integrator 10g or 11g – DIY or upgrade

Page 41: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Page 42: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator

T : +44 (0) 1273 911 268 (UK) or (888) 631-1410 (USA) or +61 3 9596 7186 (Australia & New Zealand) or +91 997 256 7970 (India)

E : [email protected] : www.rittmanmead.com

Further reading•Blog post by Uli Bethke (@ubethke) :“ODI: AUTOMATING DEPLOYMENT OF SCENARIOS TO PRODUCTION IN ORACLE DATA INTEGRATOR”http://sonra.io/odi-automating-deployment-of-scenarios-in-oracle-data-integrator/

•Blog post by kdevendr (ODI Experts) :“Export and Importing Scenarios based on Project (or)Folder”http://odiexperts.com/export-and-importing-scenarios-based-on-project-orfolder/

•ODI SDK Public API : https://docs.oracle.com/middleware/1213/odi/reference-java-api/index.html

•David Allan (@i_m_dave) :“ODI - Accelerator Launchpad, getting Groovy” and much morehttps://blogs.oracle.com/dataintegration/entry/odi_accelerator_launchpad_getting_groovy

Page 43: Kscope15 - Automatic Promotion and Versioning with Oracle Data Integrator