15-1 6 Oracle Data Integrator Procedures, Advanced Workflows.

Slides:



Advertisements
Similar presentations
Overview and Demonstration of declarative workflows in SharePoint using Microsoft SharePoint Designer 2007 Kevin Hughes MCT, MCITP, MCSA, MCTS, MCP, Network+,
Advertisements

4 Oracle Data Integrator First Project – Simple Transformations: One source, one target 3-1.
Introduction to ETL Using Microsoft Tools By Dr. Gabriel.
AN INTRODUCTION TO PL/SQL Mehdi Azarmi 1. Introduction PL/SQL is Oracle's procedural language extension to SQL, the non-procedural relational database.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 8 Application Data Auditing.
Week 6: Chapter 6 Agenda Automation of SQL Server tasks using: SQL Server Agent Scheduling Scripting Technologies.
Using Macros and Visual Basic for Applications (VBA) with Excel
UIC Data Conversion and Submission via CDX Node Client UIC Database V2 6/16/
Chapter 18 - Data sources and datasets 1 Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
Chapter 9 Auditing Database Activities
Chapter 4B: More Advanced PL/SQL Programming
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Guide To UNIX Using Linux Third Edition
Microsoft Excel 2003 Illustrated Complete Excel and Advanced Worksheet Management Customizing.
5 Copyright © 2009, Oracle. All rights reserved. Defining ETL Mappings for Staging Data.
Microsoft Office Word 2013 Expert Microsoft Office Word 2013 Expert Courseware # 3251 Lesson 4: Working with Forms.
Lesson 5: Using Tasks, Notes and the Journal
1 Chapter Overview Monitoring Server Performance Monitoring Shared Resources Microsoft Windows 2000 Auditing.
Advance Computer Programming Java Database Connectivity (JDBC) – In order to connect a Java application to a database, you need to use a JDBC driver. –
Introduction to the Enterprise Library. Sounds familiar? Writing a component to encapsulate data access Building a component that allows you to log errors.
Debugging applications, using properties Jim Warren – COMPSCI 280 S Enterprise Software Development.
Workflow Manager and General Tuning Tips. Topics to discuss… Working with Workflows Working with Tasks General Tuning Tips.
What is Sure BDCs? BDC stands for Batch Data Communication and is also known as Batch Input. It is a technique for mass input of data into SAP by simulating.
Copyright  Oracle Corporation, All rights reserved. 5 CMIS Powell Oracle Designer: Design Editor and Building the Database and Table API CMIS.
© 2012 LogiGear Corporation. All Rights Reserved Robot framework.
Creating a Web Site to Gather Data and Conduct Research.
1 ADVANCED MICROSOFT WORD Lesson 16 – Customizing Features Microsoft Office 2003: Advanced.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Oracle Data Integrator Workflow Management: The Packages.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
Oracle Data Integrator Transformations: Adding More Complexity
7 1 Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
Microsoft Office Outlook 2013 Microsoft Office Outlook 2013 Courseware # 3252 Lesson 6: Organizing Information.
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
Page 1 Non-Payroll Cost Transfer Enhancements Last update January 24, 2008 What are the some of the new enhancements of the Non-Payroll Cost Transfer?
Microsoft Access 2013 ®® Tutorial 10 Automating Tasks with Macros.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 9 Auditing Database Activities.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
1 Data Manipulation (with SQL) HRP223 – 2010 October 13, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
1 Chapter 20 – Data sources and datasets Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
Oracle Data Integrator Agents. 8-2 Understanding Agents.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Oracle Data Integrator Data Quality (Integrity Control)
6 Copyright © 2009, Oracle. All rights reserved. Using the Data Transformation Operators.
Chapter Fourteen Access Databases and SQL Programming with Microsoft Visual Basic th Edition.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
Oracle Data Integrator User Functions, Variables and Advanced Mappings
Quick Test Professional 9.2. Testing Process Preparing to Record Recording Enhancing a Test Debugging Running the Test and Analyzing the Results Reporting.
21 Copyright © 2009, Oracle. All rights reserved. Working with Oracle Business Intelligence Answers.
Perfecto Mobile Automation
Interactions & Automations
Oracle Business Intelligence Foundation – Testing and Deploying OBI Repository.
5 Copyright © 2008, Oracle. All rights reserved. Testing and Validating a Repository.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
Interstage BPM v11.2 1Copyright © 2010 FUJITSU LIMITED INTEGRATION.
Interstage BPM v11.2 1Copyright © 2010 FUJITSU LIMITED ADVANCE FEATURES.
Programming with Microsoft Visual Basic 2012 Chapter 14: Access Databases and SQL.
Lesson 17 Mail Merge. Overview Create a main document. Create a data source. Insert merge fields into a main document. Perform a mail merge. Use data.
Microsoft Excel 2007 Noris Bt. Ismail Faculty of Information and Communication Technology Tel : (Ext 8408) BCOMP0101.
Slide 1 © 2016, Lera Technologies. All Rights Reserved. Oracle Data Integrator By Lera Technologies.
Agenda for Today  DATABASE Definition What is DBMS? Types Of Database Most Popular Primary Database  SQL Definition What is SQL Server? Versions Of SQL.
11 Copyright © 2009, Oracle. All rights reserved. Enhancing ETL Performance.
SQL Database Management
Working in the Forms Developer Environment
SQL MODELER - OPEN There are Three Ways to open the SQL Modeler
Data Validation and Protecting Workbook
Presentation transcript:

Oracle Data Integrator Procedures, Advanced Workflows

15-2 Objectives Create simple reusable procedures. Add commands. Provide options on your commands. Run your procedures. Use the procedure into a package After completing this lesson, you will know how to:

15-3 What is a procedure? Procedure – A sequence of commands executed by database engines, the operating system, or using ODI Tools. A procedure can define options that control its behavior. Procedures are reusable components that can be inserted into packages.

15-4 Procedure Examples Administrator procedure 1.Uses the “SnpsSendMail” ODI tool to send an administrative to a user. The address is an option. Clean Environment procedure 1.Deletes the contents of the /temp directory using the “SnpsFileDelete” tool. 2.Runs DELETE statements on these tables in order: CUSTOMER, CITY, REGION, COUNTRY.

15-5 Procedure Examples (cont.) Initialize Drive procedure 1.Mount a network drive using an OS command (depending on an option). 2.Create a /work directory on this drive. Identify Changes,then send an procedure 1.Wait for 10 rows to be inserted into the INCOMING table. 2.Transfer all the data from INCOMING to the OUTGOING table. 3.Dump the content of the OUTGOING table to a text file. 4. this text file to a user.

15-6 How to Create a New Procedure 1.Right-click the Procedures node under a project. 2.Select Insert Procedure 3.Fill in the Name Description 4.Optionally, define the default: Source Technology Target Technology

15-7 Creating a New Command 1.Select the procedure’s Details tab. 2.Click the Add Command button 3.Fill in the Name 4.Set Ignore Errors as appropriate. 5.For the Command on Target, select: Technology Context Logical Schema Command code (using the Expression Editor) 6.Repeat step 5 for the Command on Source (optional). 7.Click OK.

15-8 Arranging Steps in Order The Details tab shows the steps of your procedure. Steps are executed top to bottom In this example, “Wait for data in INCOMING” is executed last. We need it to be executed first To rearrange steps, use the up and down buttons Now the procedure will wait for data before attempting the transfer. Make sure the order of your steps is correct.

15-9 Which Parameters Should Be Set? The following parameters should be set in the command: Technology: If different from the one defined at technology level. Logical Schema: For DBMS technologies (Jython, OS, ODI Tools do not require a schema) Context: If you want to ignore the execution context. Ignore Errors: If the command must not stop the procedure. A warning is issued only if the command fails.

15-10 Valid Types of Commands Some examples of the types of commands that can be used in ODI procedures: SQL statement OS commands ODI Tools Jython programs Executed on any DBMS technology DELETE, INSERT, SELECT, … statements. Executed on the Operating System technology In OS-specific syntax using shell commands or binary programs Executed on the Sunopsis API technology Any ODI tool command call. Executed on the Jython technology. Jython code interpreted by the agent (Extensibility Framework).

15-11 More Elements In addition, we have access to the following ODI-specific elements that can be used within the commands: Variables Sequences User Functions They may be specified either in substitution mode #, or in bind mode : Used like DBMS functions. They are replaced at code generation time by their implementation.

15-12 Why Use a Source Command? The command sent to the source should return a result set which is manipulated by the default command. Example: Transferring data from a table to another. Source Command: SELECT statement Default Command: INSERT statement with source columns in bind mode

15-13 Procedure Execution A procedure can be executed manually for testing. Default option values are used. It is usually run from a package. Add a procedure step by dragging and dropping. Option values can be overridden at that time.

15-14 Using Operator to View the Results Procedure is executed as a session with one step One task for each command Warning: error was ignored Tasks completed successfully Error that was not ignored Task waiting to be run.

15-15 Note – Procedure Steps Are References A procedure used in a package is referenced by the package, not copied. Changes to the original procedure also apply to the package.

15-16 How to Create a Procedure Step 1.Under a project, select the procedure which you want to work with. 2.Drag and drop it into the package. 3.Set the step Name. There is only one type of procedure step. 4.Override any options on the Options tab.

15-17 Controlling Execution Each step may have two possible next steps: Next step upon success Next step upon failure If no next step is specified, the package stops. Execution can branch: as the result of a step (success/failure) because of an Evaluate Variable step Examples of control structures follow.

15-18 Error Handling Interfaces fail if a fatal error occurs or if the number of allowed errors is exceeded. Procedures and other steps fail if a fatal error occurs Try to take into account possible errors. Simple error handling

15-19 How to Create a Loop Loops need a counter variable 1.Set the counter to an initial value 2.Execute the step or steps to be repeated 3.Increment the counter 4.Evaluate counter value and loop to step 2 if the goal has been reached Package Loop

15-20 The Advanced Tab Each step’s Advanced tab allows you to specify the how the next step is determined. You can specify a number of automatic retries on failure. How many times this step should be re-attempted if it fails List of all possible package steps. Choose the one to be executed next if this one fails. Where to go next if the step completes successfully List of all possible package steps. Choose one to be executed next if this one succeeds. Time interval (in seconds) between each attempt Where to go next if this step fails Specifies if step execution report is to be conserved in the Log.