Вы находитесь на странице: 1из 262

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

D64974GC20

Edition 2.0

September 2012

D78956

use only D64974GC20 Edition 2.0 September 2012 D78956 Oracle Data Integrator 11g: Integration and Administration

Oracle Data Integrator 11g:

Integration and Administration

Activity Guide - Volume I

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Author

Richard Green

Technical Contributors and Reviewers

Alex Kotopoulis Denis Gray Christophe Dupupet Julien Testut David Allan Sachin Thatte Viktor Tchemodanov Gerry Jurrens Veerabhadra Putrevu

Editors

Rashmi Rajagopal Vijayalakshmi Narasimhan Aju Kumar Kumar

Graphic Designers

Satish Bettegowda

Seema Bopaiah

Publishers

Giri Venugopal Sumesh Koshy Srividya Rameshkumar

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Disclaimer

This document contains proprietary information and is protected by copyright and other intellectual property laws. You may copy and print this document solely for your own use in an Oracle training course. The document may not be modified or altered in any way. Except where your use constitutes "fair use" under copyright law, you may not use, share, download, upload, copy, print, display, perform, reproduce, publish, license, post, transmit, or distribute this document in whole or in part without the express authorization of Oracle.

The information contained in this document is subject to change without notice. If you find any problems in the document, please report them in writing to: Oracle University, 500 Oracle Parkway, Redwood Shores, California 94065 USA. This document is not warranted to be error-free.

Restricted Rights Notice

If this documentation is delivered to the United States Government or anyone using the documentation on behalf of the United States Government, the following notice is applicable:

U.S. GOVERNMENT RIGHTS The U.S. Government’s rights to use, modify, reproduce, release, perform, display, or disclose these training materials are restricted by the terms of the applicable Oracle license agreement and/or the applicable U.S. Government contract.

Trademark Notice

Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Table of Contents

Practices for Lesson 1: Introduction to Integration and Administration Practices for Lesson 1: Overview Practice 1-1: Starting the ODI Client

Practices for Lesson 2: Administering ODI Repositories Practices for Lesson 2: Overview Practices for Lesson 2: Flow of Data Practice 2-1: Creating and Connecting to ODI Master and Work Repositories

Practices for Lesson 3: ODI Topology Concepts Practices for Lesson 3: Overview Practice 3-1: Setting Up and Installing an ODI Agent

Practices for Lesson 4: Describing the Physical and Logical Architecture Practices for Lesson 4: Overview Practice 4-1: Working with Topology

Practices for Lesson 5: Setting Up a New ODI Project Practices for Lesson 5: Overview Practice 5-1: Setting Up a New ODI Project

Practices for Lesson 6: Oracle Data Integrator Model Concepts Practices for Lesson 6: Overview Practice 6-1: Creating a Model

Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores Practices for Lesson 7: Overview Practice 7-1: Checking Data Quality in the Model

Practices for Lesson 8: ODI Interface Concepts Practices for Lesson 8: Overview Practice 8-1: Creating ODI Interface: Simple Transformations

Practices for Lesson 9: Designing Interfaces Practices for Lesson 9: Overview Practice 9-1: Creating ODI Interface: Complex Transformations Practice 9-2: Creating ODI Interface: Implementing Lookup

Practices for Lesson 10: Interfaces: Monitoring and Debugging Practices for Lesson 10: Overview Practice 10-1: Creating ODI Interface: Exporting a Flat File to a Relational Table

Practices for Lesson 11: Designing Interfaces: Advanced Topics 1 Practices for Lesson 11: Overview Practice 11-1: Using Native Sequences with ODI Interface Practice 11-2: Using Temporary Indexes Practice 11-3: Using Data Sets with ODI Interface

Practices for Lesson 12: Designing Interfaces: Advanced Topics 2 Practices for Lesson 12: Overview Practice 12-1: Using Temporary ODI Interfaces Practice 12-2: Developing a New Knowledge Module

Practices for Lesson 13: Using ODI Procedures Practices for Lesson 13: Overview Practice 13-1: Creating an ODI Procedure

1-1

1-2

1-3

2-1

2-2

2-3

2-4

3-1

3-2

3-3

4-1

4-2

4-3

5-1

5-2

5-3

6-1

6-2

6-3

7-1

7-2

7-3

8-1

8-2

8-3

9-1

9-2

9-3

9-22

10-1

10-2

10-3

11-1

11-2

11-3

11-18

11-28

12-1

12-2

12-3

12-38

13-1

13-2

13-3

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Oracle Data Integrator 11g: Integration and Administration Table of Contents

i

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practices for Lesson 14: Using ODI Packages

14-1

Practices for Lesson 14: Overview

14-2

Practice 14-1:

Creating an ODI Package

14-3

Practice 14-2: Using ODI Package with Variables and User Functions

14-14

Practices for Lesson 15: Managing ODI Scenarios

15-1

Practices for Lesson 15: Overview

15-2

Practice 15-1: Creating and Scheduling an ODI Scenario

15-3

Practices for Lesson 16: Using Load Plans

16-1

Practices for Lesson 16: Overview

16-2

Practice 16-1: Using Load Plans

16-3

Practices for Lesson 17: Managing ODI Versions

17-1

Practices for Lesson 17: Overview

17-2

Practice 17-1: Working with ODI Versions

17-3

Practices for Lesson 18: Enforcing Data Quality with ODI

18-1

Practices for Lesson 18: Overview

18-2

Practice 18-1: Enforcing Data Quality with ODI Interface

18-3

Practices for Lesson 19: Working with Changed Data Capture

19-1

Practices for Lesson 19: Overview

19-2

Practice 19-1: Implementing Changed Data Capture

19-3

Practices for Lesson 20: Advanced ODI Administration

20-1

Practices for Lesson 20: Overview

20-2

Practice 20-1: Setting Up ODI Security

20-3

Practice 20-2: Integration with Enterprise Manager and Using ODI Console

20-22

Practices for Lesson 21: Extending Oracle Data Integrator with SDK, Web Services, and SOA

21-1

Practices for Lesson 21: Overview

21-2

Practice 21-1: Executing an ODI Scenario Through the ODI Public Web Service

21-3

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Oracle Data Integrator 11g: Integration and Administration Table of Contents

ii

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practices for Lesson 1:

Introduction to Integration and Administration

Chapter 1

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Introduction to Integration and Administration Chapter 1 - Page 1

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practices for Lesson 1: Overview

Practices Overview

In this practice, you will start up the ODI client, and examine the help system and Start Page.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Introduction to Integration and Administration Chapter 1 - Page 2

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practice 1-1: Starting the ODI Client

Overview

In this practice, you start up the ODI client, explore the help system, and examine the links on the Start Page.

Assumptions

None

Tasks

1. Start Oracle Data Integrator and explore the help system:

Step

Screen/Page Description

Choices or Values

a.

MS Windows

Start Oracle Data Integrator: Start > Programs > Oracle > Oracle Data Integrator > ODI Studio.

b.

Oracle Data Integrator

The ODI client window opens. From the main menu, select Help > Table of Contents.

c.

Oracle Data Integrator

The Help Center appears. Expand the navigation tree of the Contents tab. Double- click Opening the Online Help. Observe that another panel opens to the right, with details about your chosen topic. Close the Help Center.

d.

Oracle Data Integrator

From the Help menu, select ODI Forum.

e.

Oracle Data Integrator

If you have an Internet connection, the Oracle ODI Forum web page opens. Scroll through the list of topics. Close the browser.

f.

Oracle Data Integrator

On the Help menu, note that there is also a link to the Oracle Technology Network.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Introduction to Integration and Administration Chapter 1 - Page 3

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

a.

and Businessmind Chile Servicios Limitda use only a. b. Copyright © 2012, Oracle and/or its affiliates.

b.

and Businessmind Chile Servicios Limitda use only a. b. Copyright © 2012, Oracle and/or its affiliates.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Introduction to Integration and Administration Chapter 1 - Page 4

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

c.

and Businessmind Chile Servicios Limitda use only c. d. Copyright © 2012, Oracle and/or its affiliates.

d.

and Businessmind Chile Servicios Limitda use only c. d. Copyright © 2012, Oracle and/or its affiliates.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Introduction to Integration and Administration Chapter 1 - Page 5

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

e.

and Businessmind Chile Servicios Limitda use only e. f. Copyright © 2012, Oracle and/or its affiliates.

f.

and Businessmind Chile Servicios Limitda use only e. f. Copyright © 2012, Oracle and/or its affiliates.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Introduction to Integration and Administration Chapter 1 - Page 6

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

2. Examine the links on the Start Page:

Step

Screen/Page Description

Choices or Values

a.

Oracle Data Integrator

On the Start Page, click Define the Topology.

b.

Oracle Data Integrator

On the Define the Topology tab, examine the five different categories of information. Click Create and Connect to your Repositories.

c.

Oracle Data Integrator

The Help Center opens with two tabs on the right side of the ODI client. On the Contents tab, expand the navigation tree to see the help topics. On the tab to the right of the Contents tab, notice the detailed links for help on the topic of creating and connecting to your repositories.

d.

Oracle Data Integrator

Click X to close the Help Center window. Click X to close the Define the Topology tab, which also closes the Start Page. If you want to re-open the Start Page later, you can select Start Page from the Help menu.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Introduction to Integration and Administration Chapter 1 - Page 7

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

a.

and Businessmind Chile Servicios Limitda use only a. b. Copyright © 2012, Oracle and/or its affiliates.

b.

and Businessmind Chile Servicios Limitda use only a. b. Copyright © 2012, Oracle and/or its affiliates.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Introduction to Integration and Administration Chapter 1 - Page 8

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

c.

and Businessmind Chile Servicios Limitda use only c. d. Copyright © 2012, Oracle and/or its affiliates.

d.

and Businessmind Chile Servicios Limitda use only c. d. Copyright © 2012, Oracle and/or its affiliates.
and Businessmind Chile Servicios Limitda use only c. d. Copyright © 2012, Oracle and/or its affiliates.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Introduction to Integration and Administration Chapter 1 - Page 9

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1: Introduction to Integration and Administration Chapter 1 - Page 10

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practices for Lesson 2:

Administering ODI Repositories

Chapter 2

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 1

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practices for Lesson 2: Overview

Practices Overview

In this practice, you will use SQL Developer to create database users for Master and Work Repositories. You will then log in to ODI and connect to these repositories.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 2

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practices for Lesson 2: Flow of Data

Limitda use only Practices for Lesson 2: Flow of Data Copyright © 2012, Oracle and/or its
Limitda use only Practices for Lesson 2: Flow of Data Copyright © 2012, Oracle and/or its

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 3

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practice 2-1: Creating and Connecting to ODI Master and Work Repositories

Use Case Scenario:

John works as a database administrator for FN Enterprise. In FN Enterprise, John is responsible for performing database management and integration tasks on various resources within the organization. In particular, John is responsible for data loading, transformation, and validation. To set his ODI environment, he needs to set up security and create Master and Work Repositories.

Background:

To set up Oracle Data Integrator, first create database users for the Master and Work Repositories. Then, create the Master Repository, connect to the Master Repository, create the Work Repository, and then connect to the Work repository. In this practice, you first use SQL Developer to create the database users for the Master and Work Repositories. Then, in ODI, you create and connect to the ODI Master Repository and the ODI Work Repository. Note: These are practice repositories. In later lessons, you use other Master and Work Repositories that are partially predefined with source and target objects.

data base - play. png
data
base
-
play.
png

SQL Developer

Create SNPM1 database user for Master Repository

Create SNPW1 database user for Work Repository

datab0 24.gif
datab0
24.gif

Oracle Data

Integrator

Create Master Repository

Create Master Repository connection “Master Repository Pr 2-1” with SNPM1 as the user

Create Work Repository

Create WORKREP_PR2-1 Work Repository connection with SNPW1 as the user

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 4

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Your Tasks:

1. The RDBMS used in this practice is Oracle 11g. To connect to your RDBMS, perform the following steps:

Step

Screen/Page Description

Choices or Values

a.

MS Windows

Start Oracle SQL Developer by selecting Start > Programs > Oracle-OraDb11g_home1 > Application Development > SQL Developer. When SQL Developer starts, close the Messages – Log tab at the bottom. Also close the Start Page.

b.

Oracle SQL Developer

In Oracle SQL Developer, click “+” to expand the connection Administrator. In the window that follows, enter system in the Username field and oracle1 in the Password field, and then click OK.

a.

 
 
 
 

b.

field, and then click OK . a.     b. Copyright © 2012, Oracle and/or its

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 5

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

University and Businessmind Chile Servicios Limitda use only 2. Create the RDBMS schema or user (Oracle

2. Create the RDBMS schema or user (Oracle 11g) for the Master Repository.

Step

Screen/Page Description

Choices or Values

a.

Oracle SQL Developer

Execute the following SQL command in the Worksheet:

create user snpm1 identified by password default tablespace users temporary tablespace temp; Note: You can find this command in the text file 2-1.txt located in c:\LABS\Text folder. Enter this command and then click the green, arrowhead-shaped Run Statement button. Note: In this command, “password” is the value of password to connect to user

“snpm1.”

b.

Oracle SQL Developer

Grant connect privileges to the newly created user account by executing the following SQL command:

grant connect, resource to snpm1;

c.

Oracle SQL Developer

Expand the Other Users node to verify that the “snpm1” user account was successfully created. Minimize SQL Developer.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 6

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

a.

and Businessmind Chile Servicios Limitda use only a. b. Copyright © 2012, Oracle and/or its affiliates.

b.

and Businessmind Chile Servicios Limitda use only a. b. Copyright © 2012, Oracle and/or its affiliates.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 7

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

c.

and Businessmind Chile Servicios Limitda use only c. 3. Create the ODI Master Repository: Step Screen/Page

3. Create the ODI Master Repository:

Step

Screen/Page Description

Choices or Values

a.

MS Windows

Start Oracle Data Integrator: Start > Programs > Oracle > Oracle Data Integrator > ODI Studio.

b.

Oracle Data Integrator

Open the New Gallery window by choosing File > New. In the New Gallery, in the Categories tree, select ODI. From the Items list, select the Master Repository Creation Wizard. Click OK.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 8

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

   

The Master Repository Creation Wizard appears.

c.

Master Repository Creation Wizard

In the Master Repository Creation Wizard, note that the JDBC Driver field has the correct selection to connect to an Oracle database: oracle.jdbc.OracleDriver. Edit the JDBC URL to read:

jdbc:oracle:thin:@localhost:1521:orcl

Specify the ODI client login username and the database username by performing the following:

Enter the username as snpm1 and the password as password . Enter the DBA username as system and the DBA password as oracle1. Click the Test Connection button and verify successful connection. Click OK. Click Next on the Master Repository Creation Wizard screen.

d.

Master Repository Creation Wizard

In the Authentication window, enter the Supervisor Password as SUNOPSIS. Enter SUNOPSIS again to confirm the password. Click Next. Note: Usernames and passwords are case-sensitive in ODI.

e.

Password Storage

In the Password Storage window, select Internal Password Storage, and then click Finish. When Master Repository is successfully created, you will see the Oracle Data Integrator Information message. Click OK. The ODI Master Repository is now created.

f.

Message

Verify that ODI Master Repository was created successfully, and then click OK.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 9

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

a.

and Businessmind Chile Servicios Limitda use only a. b. Copyright © 2012, Oracle and/or its affiliates.

b.

and Businessmind Chile Servicios Limitda use only a. b. Copyright © 2012, Oracle and/or its affiliates.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 10

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

University and Businessmind Chile Servicios Limitda use only c. Copyright © 2012, Oracle and/or its affiliates.

c.

and Businessmind Chile Servicios Limitda use only c. Copyright © 2012, Oracle and/or its affiliates. All

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 11

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

University and Businessmind Chile Servicios Limitda use only d. Copyright © 2012, Oracle and/or its affiliates.

d.

and Businessmind Chile Servicios Limitda use only d. Copyright © 2012, Oracle and/or its affiliates. All

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 12

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

e.

and Businessmind Chile Servicios Limitda use only e. f. 4. Connect to the ODI Master Repository

f.

and Businessmind Chile Servicios Limitda use only e. f. 4. Connect to the ODI Master Repository

4. Connect to the ODI Master Repository by creating a new ODI Master Login:

Step

Screen/Page

Choices or Values

Description

 

a. Oracle Data

Open the New Gallery by selecting File > New. In the New Gallery, in the Categories tree, select ODI. From the Items list, select Create a New ODI Repository Login. Click OK.

Integrator

 

b. Repository

Configure the repository connection with the parameters from this table. To enter the JDBC URL, click the button next to the URL field and select

Connection

Information

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 13

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

c.

d.

c. d. Oracle Data Integrator Import Service Description jdbc:oracle:thin:@<host>:<port>:<sid>

Oracle Data

Integrator

Import Service

Description

jdbc:oracle:thin:@<host>:<port>:<sid>, as shown in the screen, then edit the URL. Select the Master Repository only button. Click the Test button. Verify successful connection and click OK. Click OK to save the connection.

Oracle Data Integrator Connection

Parameter

Value

Login Name

Master Repository Pr 2-1

User

SUPERVISOR

Password

SUNOPSIS

Database Connection (Master Repository)

Parameter

Value

User

snpm1

Password

password

Driver List

Oracle JDBC Driver

Driver

 

Name

oracle.jdbc.OracleDriver

Url

jdbc:oracle:thin:@localhost:1521:orcl

Note

Do not copy and paste in the URL field. This may cause problems with entering a valid URL string. Instead, open the drop-down menu and select the correct driver from the list. Type the correct URL in the Url field.

The ODI username (SUPERVISOR) is case-sensitive.

Click Connect to Repository. Select the newly created repository connection, Master Repository Pr 2-1, from the drop-down list. Click OK. You are now successfully logged in to the Master Repository Pr 2-1.

Click the Topology tab (the tab title might appear only partially as To… ). Click the Repositories tab in the left panel of the Topology Manager. Verify that your newly created Master Repository is in the Repositories window.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 14

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

a.

and Businessmind Chile Servicios Limitda use only a. b. Copyright © 2012, Oracle and/or its affiliates.

b.

and Businessmind Chile Servicios Limitda use only a. b. Copyright © 2012, Oracle and/or its affiliates.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 15

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

University and Businessmind Chile Servicios Limitda use only c. Copyright © 2012, Oracle and/or its affiliates.
University and Businessmind Chile Servicios Limitda use only c. Copyright © 2012, Oracle and/or its affiliates.

c.

and Businessmind Chile Servicios Limitda use only c. Copyright © 2012, Oracle and/or its affiliates. All

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 16

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

University and Businessmind Chile Servicios Limitda use only d. Copyright © 2012, Oracle and/or its affiliates.

d.

and Businessmind Chile Servicios Limitda use only d. Copyright © 2012, Oracle and/or its affiliates. All
and Businessmind Chile Servicios Limitda use only d. Copyright © 2012, Oracle and/or its affiliates. All

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 17

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

5. Use SQL Developer to create the RDBMS schema/user for the Work repository.

Step

Screen/Page Description

Choices or Values

a.

Oracle SQL Developer

If SQL Developer is already opened, it might display a message about externally modified objects. If so, click OK to close the message. If an earlier command is in the worksheet, clear the worksheet by clicking the Clear button that looks like a pencil eraser. If not opened, open SQL Developer. Create the schema by executing the following SQL command:

create user snpw1 identified by password default tablespace users temporary tablespace temp; Note: You can find this command in the text file 2-1.txt located in c:\Labs\Text folder. Click the Run Statement button.

b.

Oracle SQL Developer

Grant connect privileges to the newly created user by executing the following SQL command:

grant connect, resource to snpw1;

c.

Oracle SQL Developer

Run the following command to verify that the snpw1 user account was successfully created and shown among other user accounts in the list:

select * from all_users;

a.

user accounts in the list: select * from all_users; a. Copyright © 2012, Oracle and/or its

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 18

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

b.

and Businessmind Chile Servicios Limitda use only b. c. Copyright © 2012, Oracle and/or its affiliates.

c.

and Businessmind Chile Servicios Limitda use only b. c. Copyright © 2012, Oracle and/or its affiliates.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 19

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

6. Now that you created the RDBMS schema/user, use ODI Topology Navigator to create the ODI Work repository:

Step

Screen/Page

Choices or Values

Description

a.

Oracle Data Integrator

In ODI, click the Topology Navigator tab and then click the Repositories panel. Right-click the Work Repositories node and select New Work Repository. The Create Work Repository Wizard opens.

b.

Specify ODI Work Repository Connection Properties

In the screen that follows, enter the parameters shown in the following table. Click the Test button. Verify successful connection and click OK. Click Next.

Parameter

Value

 

Technology

Oracle

JDBC

 

Driver

oracle.jdbc. OracleDriver

JDBC Url

jdbc:oracle:thin:@localhost:1521:orcl

 

snpw1

User

(not the default snpm1)

Password

password

c.

Specify ODI Work Repository properties

In the Specify ODI Work Repository properties panel, set the ID to “1”. Set the Name to WORKREP_PR2-1. In the Password field, enter SUNOPSIS. In the Work Repository Type field, leave Development unchanged. Click Finish. Verify that the newly created Work repository is now in the work repositories tree view. Note: The Development type of repository enables management of design-time objects such as data models and projects (including interfaces, procedures, and so on). A development repository also includes the run-time objects (scenarios and sessions). This type of repository is suitable for development environments.

d.

Create Work Repository Login

In the Confirmation window, click Yes. Enter the Login

name: Work Repository Pr 2-1. Click OK.

 

e.

Oracle Data Integrator

Expand the Work Repositories node and verify that the Work repository WORKREP_PR2-1 was created.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 20

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

a.

and Businessmind Chile Servicios Limitda use only a. b. Copyright © 2012, Oracle and/or its affiliates.

b.

and Businessmind Chile Servicios Limitda use only a. b. Copyright © 2012, Oracle and/or its affiliates.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 21

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

University and Businessmind Chile Servicios Limitda use only Copyright © 2012, Oracle and/or its affiliates. All
University and Businessmind Chile Servicios Limitda use only Copyright © 2012, Oracle and/or its affiliates. All

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 22

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

c.

and Businessmind Chile Servicios Limitda use only c. d. Copyright © 2012, Oracle and/or its affiliates.

d.

and Businessmind Chile Servicios Limitda use only c. d. Copyright © 2012, Oracle and/or its affiliates.
and Businessmind Chile Servicios Limitda use only c. d. Copyright © 2012, Oracle and/or its affiliates.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 23

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

e.

and Businessmind Chile Servicios Limitda use only e. 7. Disconnect from the Master Repository and connect

7. Disconnect from the Master Repository and connect to the Work repository:

Step

Screen/Page

Choices or Values

Description

a.

Oracle Data Integrator

Click the ODI menu and select Disconnect “Master Repository Pr 2-1.

b.

Oracle Data Integrator

Click “Connect To Repository.

c.

Oracle Data Integrator Login

Select “Work Repository Pr 2-1” from the Login Name drop-down list. In the Password field, enter SUNOPSIS. Click OK. Click the Designer tab. Collapse the Projects node. The following ODI Designer screen appears. You have now successfully created and connected to the ODI Work repository.

d.

Oracle Data Integrator

Click ODI menu and select Disconnect Work repository Pr 2-1. Note: You will not be using these practice Master and Work Repositories for the remainder of this course.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 24

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

a.

and Businessmind Chile Servicios Limitda use only a. b. c. Copyright © 2012, Oracle and/or its

b.

and Businessmind Chile Servicios Limitda use only a. b. c. Copyright © 2012, Oracle and/or its

c.

and Businessmind Chile Servicios Limitda use only a. b. c. Copyright © 2012, Oracle and/or its

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 25

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

University and Businessmind Chile Servicios Limitda use only d. Copyright © 2012, Oracle and/or its affiliates.

d.

and Businessmind Chile Servicios Limitda use only d. Copyright © 2012, Oracle and/or its affiliates. All

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 2: Administering ODI Repositories Chapter 2 - Page 26

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practices for Lesson 3: ODI Topology Concepts

Chapter 3

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: ODI Topology Concepts

Chapter 3 - Page 1

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practices for Lesson 3: Overview

Practices Overview

In this practice, you set up and install an ODI Agent as a background service.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: ODI Topology Concepts

Chapter 3 - Page 2

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practice 3-1: Setting Up and Installing an ODI Agent

Use Case Scenario:

John is responsible for data loading, transformation, and validation. He created Master and Work Repositories. Now he continues setting up his ODI environment by installing an ODI Agent.

Background:

A common task in ODI is to set up and install an ODI Agent as a service. After the ODI

scenarios are created, they can be scheduled and orchestrated by using an ODI Agent, which is

a lightweight Java process that orchestrates the execution of ODI scenarios. In this practice,

you create and execute an ODI Agent, which will be used in subsequent practices for orchestration of the execution of ODI objects. First, you run encode <password> to generate an encrypted password. You copy and paste that string into the odiparams.bat file that contains ODI agent parameters.

You then switch to ODI, and define a physical agent named localagent. Next, you define a logical agent also named localagent, mapping it to the same-named physical agent. You specify the Global context as the context in which to make this particular mapping of logical to physical agents.

In

the command window, you execute agent.bat to start the agent that you named localagent.

In

ODI, you test a connection to your newly created agent.

ODI, you test a connection to your newly created agent. The directions on the following pages

The directions on the following pages will take you through these activities:

1. Run encode oracle1 to generate an encrypted password string

2. Edit odiparams.bat, inserting the encrypted password

3. In ODI, define a physical agent named localagent

4. In ODI, define a logical agent named localagent, mapping it to the physical agent named localagent for the Global context

5. Execute agent.bat to start an agent named localagent.

6. Verify connection to the newly created agent localagent in ODI

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: ODI Topology Concepts

Chapter 3 - Page 3

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Your Tasks:

1. Before executing the agent.bat file to create the ODI Agent, you must run the encode password command to generate an encrypted password and paste it into the odiparams.bat parameter file. To do so, perform the following steps:

Step

Screen/Page

Choices or Values

Description

a.

MS Windows and text editor

Open the Windows Explorer, and navigate to the ODI_HOME directory, where ODI is installed and open the agent\bin subdirectory:

(C:\oracle\Middleware\Oracle_ODI1\oracledi\agen

t\bin). Navigate to the odiparams.bat file, right-click this file, and select Edit to open it with a text editor. Leave this editor open. You will run a batch file from a Command window and return to this text editor to copy the results into the odiparams.bat file. Explanation: You need to edit the odiparams.bat file to set the repository connection information for the ODI Agent to use. The password information is stored as an encrypted string. You will generate the encrypted string in a Command window.

b.

Command Prompt

Leave the text editor open, and open the Command window (Start > Run > cmd). Change the directory to the ODI_HOME\agent\bin directory:

C:\oracle\Middleware\Oracle_ODI1\oracledi\agent

\bin

c.

Command Prompt

To generate the encrypted password string, you will be using the agent command, encode <password>. Because your password is “oracle1”, enter and execute the following command in the Command window and press ENTER:

encode oracle1

Note: Keep the Command window open, because you will be returning to it after editing the odiparams.bat file.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: ODI Topology Concepts

Chapter 3 - Page 4

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

d.

Command Prompt and text editor

Copy the generated, encrypted password from the Command window (from the Command window’s drop-down menu, select Edit > Mark, then highlight the password with your mouse; then select Edit > Copy) and insert it into the odiparams.bat file as the value for the ODI_MASTER_ENCODED_PASS parameter (overwriting the existing password). Verify and, if necessary, edit settings for other parameters from the following table, save the odiparams.bat file, and then close it. The agent’s connectivity is now set up.

Parameter

Value

ODI_MASTER_DRIVER

oracle.jdbc.OracleDriver

ODI_MASTER_URL

jdbc:oracle:thin:@localhost:1521:orcl

ODI_MASTER_USER

DEV_ODI_REPO

ODI_MASTER_ENCODE

Insert your encoded password. (overwrite the existing password)

D_PASS

ODI_SECU_WORK_REP

WORKREP

ODI_SUPRVISOR_ENC

Leave the default value.

ODED_PASS

ODI_USER

Leave the default value.

ODI_ENCODED_PASS

Leave the default value.

ODI_JAVA_HOME

c:\oracle\Middleware\jdk160_29

Note

DEV_ODI_REPO is an RDBMS schema/user (Oracle 11g) for the Master Repository. It was pre-created for this and subsequent practices.

The Work Repository name is WORKREP.

Because each time that you encode the password, it receives different values, your encoded password will differ from the one provided in the screen.

Do not change the default value of the ODI_USER and ODI_ENCODED_PASS parameters. Those parameters were pre-coded during ODI installation.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: ODI Topology Concepts

Chapter 3 - Page 5

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

a.

and Businessmind Chile Servicios Limitda use only a. b. c. Copyright © 2012, Oracle and/or its

b.

and Businessmind Chile Servicios Limitda use only a. b. c. Copyright © 2012, Oracle and/or its

c.

and Businessmind Chile Servicios Limitda use only a. b. c. Copyright © 2012, Oracle and/or its

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: ODI Topology Concepts

Chapter 3 - Page 6

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

d.

and Businessmind Chile Servicios Limitda use only d. Copyright © 2012, Oracle and/or its affiliates. All
and Businessmind Chile Servicios Limitda use only d. Copyright © 2012, Oracle and/or its affiliates. All
and Businessmind Chile Servicios Limitda use only d. Copyright © 2012, Oracle and/or its affiliates. All

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: ODI Topology Concepts

Chapter 3 - Page 7

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

University and Businessmind Chile Servicios Limitda use only 2. Now that you have generated an encoded

2. Now that you have generated an encoded password and pasted it into the odiparams.bat file, you need to create the ODI physical and logical agent definitions. To create these ODI agent definitions, perform the following steps:

Step

Screen/Page

Choices or Values

Description

a.

MS Windows

If it is not started, start Oracle Data Integrator. Click Connect To Repository. Select DEV_ODI_REPO from the Login Name drop-down list. Click OK.

ODI Login

b.

Topology navigator

Click the Topology navigator tab. In the Topology navigator, select the Physical Architecture panel. Right-click the Agents node. Select New Agent.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: ODI Topology Concepts

Chapter 3 - Page 8

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Step

Screen/Page

Choices or Values

Description

c.

Agent: localagent

Fill in the following fields:

Name: localagent Host: Network name or IP address of the machine that the agent has been launched on. Verify that this parameter is set to localhost. Port: Listening port used by the agent. By default, this port is 20910. Leave the default value. Web Application Context: Name of the Web application corresponding to the Java EE agent deployed on an application server. For stand-alone agents, this field should be set to oraclediagent. Set Maximum number of sessions supported by this agent to 250. Click the Save button.

d.

Topology Navigator Local Agent: New

Now you have to insert a logical agent in Logical Architecture, and map it to the newly created Physical agent. At the bottom of the Topology navigator tab, click the Logical Architecture tab. Right-click Agents and select New Logical Agent. On the screen that follows, set the Name to localagent. For the Global context, set the Physical Agents column to localagent. From the File menu, click Save. Close the localagent tab that you just worked on, leaving the other localagent tab open.

a.

just worked on, leaving the other localagent tab open. a. Copyright © 2012, Oracle and/or its
just worked on, leaving the other localagent tab open. a. Copyright © 2012, Oracle and/or its

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: ODI Topology Concepts

Chapter 3 - Page 9

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

b.

and Businessmind Chile Servicios Limitda use only b. c. d. Copyright © 2012, Oracle and/or its

c.

and Businessmind Chile Servicios Limitda use only b. c. d. Copyright © 2012, Oracle and/or its
and Businessmind Chile Servicios Limitda use only b. c. d. Copyright © 2012, Oracle and/or its

d.

and Businessmind Chile Servicios Limitda use only b. c. d. Copyright © 2012, Oracle and/or its
and Businessmind Chile Servicios Limitda use only b. c. d. Copyright © 2012, Oracle and/or its

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: ODI Topology Concepts

Chapter 3 - Page 10

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

University and Businessmind Chile Servicios Limitda use only 3. Now that you have created the agent

3. Now that you have created the agent and defined the ODI physical and logical agents, you can start the agent directly from the command line.

Step

Screen/Page

 

Choices or Values

Description

 

a.

Command Prompt

Switch back to the Command window you left open at the ODI_HOME\agent\bin directory

(C:\oracle\Middleware\Oracle_ODI1\oracledi\agen

t\bin). Execute the agent.bat file by using the following command:

agent -NAME=localagent

 

b.

Services

The agent is now starting. Verify that ODI Agent is successfully started. Minimize (do not close) the window Command Prompt – agent-NAME=localagent. Note: This command window should remain open during all labs.

c.

Oracle Data

In ODI, in the localagent tab that remains open, click the Test icon to verify connection of the agent localagent. You successfully created and connected to ODI agent. Close

Integrator

the localagent tab

the localagent tab . Also, close the

. Also, close the

Messages - Log

Messages - Log tab.

tab.

a.

tab . Also, close the Messages - Log tab. a. Copyright © 2012, Oracle and/or its

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: ODI Topology Concepts

Chapter 3 - Page 11

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b.

Oracle University and Businessmind Chile Servicios Limitda use only
Oracle University and Businessmind Chile Servicios Limitda use only

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: ODI Topology Concepts

Chapter 3 - Page 12

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

c.

and Businessmind Chile Servicios Limitda use only c. Copyright © 2012, Oracle and/or its affiliates. All
and Businessmind Chile Servicios Limitda use only c. Copyright © 2012, Oracle and/or its affiliates. All

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: ODI Topology Concepts

Chapter 3 - Page 13

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 3: ODI Topology Concepts

Chapter 3 - Page 14

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practices for Lesson 4:

Describing the Physical and Logical Architecture

Chapter 4

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Describing the Physical and Logical Architecture Chapter 4 - Page 1

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practices for Lesson 4: Overview

Practices Overview

In this practice, you define the work infrastructure in the topology by creating contexts, a data server, and physical and logical schemas.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Describing the Physical and Logical Architecture Chapter 4 - Page 2

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practice 4-1: Working with Topology

Use Case Scenario:

John created the Master and Work Repositories and installed an ODI Agent as a background service. To complete setting up his ODI infrastructure, he needs to create contexts, a data server, and physical and logical schemas.

Background:

Before you begin working on your ODI projects, you need to describe your ODI infrastructure in the topology. As a starting point of this practice, you will use the environment provided with the ODI installation. The infrastructure includes several servers. You need to define the following new data server and its attached physical schemas. Data Server: ORACLE_ORCL_LOCAL

Define two of three schemas available in this instance:

Schema

Description

SALES_DEV

Schema storing the target tables for development purposes

SALES_PROD

Schema storing the production target tables

STAGING

Schema that is used to store ODI temporary objects (not used in this practice)

Both the SALES_DEV and SALES_PROD physical schemas contain identical table structures and correspond to the same logical schema called ORACLE_ORCL_LOCAL_SALES. The mapping for this logical schema depends on the context. Note: Completing these tasks is critical for all subsequent practice sessions.

tasks is critical for all subsequent practice sessions. This practice consists of the following six steps:

This practice consists of the following six steps:

1. Define the Production context.

2. Define the Development context. (A third context, Global, is already preseeded for you.)

3. Define the ORACLE_ORCL_LOCAL data server.

4. Define the ODI physical schemas for the data server: SALES_DEV, SALES_PROD.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Describing the Physical and Logical Architecture Chapter 4 - Page 3

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

5. Define the ORACLE_ORCL_LOCAL_SALES ODI logical schema.

6. Map the logical schema to the two physical schemas, in terms of the three contexts.

Your Tasks:

1. If not started, start Oracle Data Integrator and open the DEV_ODI_REPO connection. If ODI remains open, skip to step 2. Note: The username and password are case-sensitive.

a. Select Start > Programs > Oracle ODI11g-Home > Oracle Data Integrator > ODI Studio. Click Connect To Repository.

Integrator > ODI Studio . Click Connect To Repository . Copyright © 2012, Oracle and/or its
Integrator > ODI Studio . Click Connect To Repository . Copyright © 2012, Oracle and/or its

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Describing the Physical and Logical Architecture Chapter 4 - Page 4

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

b. Log in with the following details. Click OK. Login name: DEV_ODI_REPO

User: SUPERVISOR Password: SUNOPSIS

name: DEV_ODI_REPO User: SUPERVISOR Password: SUNOPSIS 2. Create a new context: a. Click the Topology navigator

2. Create a new context:

a. Click the Topology navigator tab, and then click the Contexts tab to expand it.

tab, and then click the Contexts tab to expand it. b. Click the New Context icon

b. Click the New Context icon

Contexts tab to expand it. b. Click the New Context icon on the Contexts tab, and

on the Contexts tab, and then select New Context.

icon on the Contexts tab, and then select New Context . c. Enter your context parameters

c. Enter your context parameters as shown below. The context window should appear as follows. Name: Production Code: PRODUCTION

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Describing the Physical and Logical Architecture Chapter 4 - Page 5

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Password: Leave this field empty. Default: Select this check box, and click Yes to confirm in the pop-up window.

check box, and click Yes to confirm in the pop-up window. d. Click the Save button.

d. Click the Save button.

to confirm in the pop-up window. d. Click the Save button. e. Create another new context

e. Create another new context , repeating the operations:

Name: Development Code: DEVELOPMENT Password: Leave this field empty. Default: Leave the check box deselected.

this field empty. Default: Leave the check box deselected. Copyright © 2012, Oracle and/or its affiliates.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Describing the Physical and Logical Architecture Chapter 4 - Page 6

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

3.

The contexts should appear as follows:

PROHIBITED 3. The contexts should appear as follows: Create an ORACLE_ORCL_LOCAL data server: a. Click the
Create an ORACLE_ORCL_LOCAL data server: a. Click the Physical Architecture tab. Expand the Technologies node,
Create an ORACLE_ORCL_LOCAL data server:
a. Click the Physical Architecture tab. Expand the Technologies node, scroll down
and select the Oracle node, and then right-click and select New Data Server.
Oracle University and Businessmind Chile Servicios Limitda use only

b. Enter the following information on the Definition tab:

Name: ORACLE_ORCL_LOCAL

Instance / dblink (Data Server): ORCL

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Describing the Physical and Logical Architecture Chapter 4 - Page 7

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

User: ODI

Password: ODI

Servicios Limitda use only • User: ODI • Password: ODI c. Click the JDBC tab. Click

c. Click the JDBC tab. Click the

ODI • Password: ODI c. Click the JDBC tab. Click the button to the right of

button to the right of the JDBC Driver field. In the

window that appears, select Oracle JDBC Driver, and then click OK.

appears, select Oracle JDBC Driver , and then click OK . Copyright © 2012, Oracle and/or

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Describing the Physical and Logical Architecture Chapter 4 - Page 8

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

d. Click the

Businessmind Chile Servicios Limitda use only d. Click the button to the right of the JDBC

button to the right of the JDBC URL field. In the URL examples window,

select the first URL in the Name list, and click OK.

select the first URL in the Name list, and click OK . e. Edit the JDBC

e. Edit the JDBC URL to have the following:

URL: jdbc:oracle:thin:@localhost:1521:ORCL The JDBC tab should now appear as follows:

The JDBC tab should now appear as follows: Copyright © 2012, Oracle and/or its affiliates. All

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Describing the Physical and Logical Architecture Chapter 4 - Page 9

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

4. Test this data server:

a. Click the Test Connection button. In the Confirmation dialog box, click OK to confirm saving your data before testing the connection. In the Information window, click OK.

the connection. In the Information window, click OK . b. In the Test Connection dialog box,
the connection. In the Information window, click OK . b. In the Test Connection dialog box,
the connection. In the Information window, click OK . b. In the Test Connection dialog box,

b. In the Test Connection dialog box, click the Test button. In the Information dialog box that reports a successful connection, click OK.

dialog box that reports a successful connection, click OK . Copyright © 2012, Oracle and/or its

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Describing the Physical and Logical Architecture Chapter 4 - Page 10

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

University and Businessmind Chile Servicios Limitda use only 5. Create a physical schema for the newly

5. Create a physical schema for the newly created ORACLE_ORCL_LOCAL data server. Name the physical schema ORACLE_ORCL_LOCAL.SALES_DEV with the following parameters:

Data Schema: SALES_DEV

Work Schema: STAGING

Default check box: Selected

a. Expand the Oracle node. Right-click the newly created data server ORACLE_ORCL_LOCAL, and then select New Physical Schema.

ORACLE_ORCL_LOCAL , and then select New Physical Schema . b. In the new window that appears,

b. In the new window that appears, select SALES_DEV from the Schema (Schema) drop-down list, and then select STAGING from the Schema (Work Schema) drop-down list. Select the Default check box. In the Confirmation window that appears,

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Describing the Physical and Logical Architecture Chapter 4 - Page 11

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

click OK. Leave all the other fields unchanged. Click the Save button the Information window that appears.

Click the Save button the Information window that appears. . Click OK in c. Expand: Oracle

. Click OK in

the Information window that appears. . Click OK in c. Expand: Oracle > ORACLE_ORCL_LOCAL . The
the Information window that appears. . Click OK in c. Expand: Oracle > ORACLE_ORCL_LOCAL . The

c. Expand: Oracle > ORACLE_ORCL_LOCAL. The Physical schema ORACLE_ORCL_LOCAL.SALES_DEV appears in the tree view:

ORACLE_ORCL_LOCAL.SALES_DEV appears in the tree view: 6. Create a second physical schema for the

6. Create a second physical schema for the ORACLE_ORCL_LOCAL data server. Name it ORACLE_ORCL_LOCAL.SALES_PROD:

Data Schema: SALES_PROD

Work Schema: STAGING

Default Schema: Not selected

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Describing the Physical and Logical Architecture Chapter 4 - Page 12

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

a. Select the ORACLE_ORCL_LOCAL data server in the tree view, and then right-click and select New Physical Schema.

view, and then right-click and select New Physical Schema . b. In the new window that

b. In the new window that appears, select SALES_PROD from the Schema (Schema) drop-down list, and then select STAGING from the Schema (Work Schema) drop-down list. Confirm that the Default check box is not selected, and leave all the

other fields unchanged. Click the Save button OK.

all the other fields unchanged. Click the Save button OK . . In the Information window,

. In the Information window, click

the Save button OK . . In the Information window, click Copyright © 2012, Oracle and/or
the Save button OK . . In the Information window, click Copyright © 2012, Oracle and/or

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Describing the Physical and Logical Architecture Chapter 4 - Page 13

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

7. Create a logical schema, ORACLE_ORCL_LOCAL_SALES, and map this schema to different physical schemas, for the different contexts.

Development Context: To the ORACLE_ORCL_LOCAL.SALES_DEV physical schema

Production Context: To the ORACLE_ORCL_LOCAL.SALES_PROD physical schema

Global Context: To the ORACLE_ORCL_LOCAL.SALES_DEV physical schema

a. In Topology Manager, select the Logical Architecture tab and expand the Technologies node. Select Oracle, right-click and select New Logical Schema.

Oracle , right-click and select New Logical Schema . b. Enter the name of the logical

b. Enter the name of the logical schema: ORACLE_ORCL_LOCAL_SALES. To map this logical schema to physical schemas in different contexts, from the drop-down lists, select the appropriate physical schema for each context, as shown in the following screen. Click the Save button.

as shown in the following screen. Click the Save button. 8. The logical schema FILE_DEMO_SRC is

8. The logical schema FILE_DEMO_SRC is predefined for you and is mapped in the predefined Global context to a physical schema that represents a subfolder in a file system. Map FILE_DEMO_SRC to the same physical schemas in the new Development and Production contexts that you defined earlier.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Describing the Physical and Logical Architecture Chapter 4 - Page 14

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

a. In the Logical Architecture, expand the File node, and double-click the FILE_DEMO_SRC logical schema. Ensure that the logical schema FILE_DEMO_SRC is mapped to the physical schemas in the Development, Global, and Production contexts, as follows. Click the Save button.

Production contexts, as follows. Click the Save button. b. Repeat the previous step for the following
Production contexts, as follows. Click the Save button. b. Repeat the previous step for the following

b. Repeat the previous step for the following logical schemas:

In XML technology, the logical schema XML_DIM_GEO should be mapped to the physical schema XML_GEO_DIM.GEO, as follows. Click the Save button.

XML_GEO_DIM.GEO , as follows. Click the Save button. Copyright © 2012, Oracle and/or its affiliates. All
XML_GEO_DIM.GEO , as follows. Click the Save button. Copyright © 2012, Oracle and/or its affiliates. All

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Describing the Physical and Logical Architecture Chapter 4 - Page 15

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

In Hypersonic SQL, the logical schema HSQL_DEMO_SRC should be mapped to the physical schema HSQL_LOCALHOST_20001_Default in all contexts.

schema HSQL_LOCALHOST_20001_Default in all contexts. • In Hypersonic SQL , the logical schema HSQL_DEMO_TARG
schema HSQL_LOCALHOST_20001_Default in all contexts. • In Hypersonic SQL , the logical schema HSQL_DEMO_TARG

In Hypersonic SQL, the logical schema HSQL_DEMO_TARG should be mapped to the physical schema HSQL_LOCALHOST_20002_Default, as follows.

physical schema HSQL_LOCALHOST_20002_Default , as follows. Copyright © 2012, Oracle and/or its affiliates. All rights
physical schema HSQL_LOCALHOST_20002_Default , as follows. Copyright © 2012, Oracle and/or its affiliates. All rights

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Describing the Physical and Logical Architecture Chapter 4 - Page 16

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Note: Ensure that these mappings are similar in the three contexts. Close all the tabs, as shown. If you are prompted to save your changes, click Yes.

If you are prompted to save your changes, click Yes . 9. You have set up

9. You have set up ODI agent localagent in Practice 3-1. Now, link the Logical agent to the Physical agent in all three contexts and test the connection.

a. In the Physical Architecture, expand the Agents node, and open the Physical agent localagent. Similarly, open the Logical agent, localagent, in the Logical Architecture. Ensure that this Logical agent, localagent, is linked to Physical agent localagent in all three contexts as follows. Save your changes.

in all three contexts as follows. Save your changes. Copyright © 2012, Oracle and/or its affiliates.
in all three contexts as follows. Save your changes. Copyright © 2012, Oracle and/or its affiliates.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Describing the Physical and Logical Architecture Chapter 4 - Page 17

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

b. In the Physical agent’s localagent tab, click Test, and verify successful connection. Click OK, and then close all the tabs.

connection. Click OK , and then close all the tabs. Copyright © 2012, Oracle and/or its
connection. Click OK , and then close all the tabs. Copyright © 2012, Oracle and/or its

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 4: Describing the Physical and Logical Architecture Chapter 4 - Page 18

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practices for Lesson 5:

Setting Up a New ODI Project

Chapter 5

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Setting Up a New ODI Project Chapter 5 - Page 1

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practices for Lesson 5: Overview

Practices Overview

In this practice, you create a new ODI project and import Knowledge Modules that will be used in subsequent practice sessions.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Setting Up a New ODI Project Chapter 5 - Page 2

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practice 5-1: Setting Up a New ODI Project

Use Case Scenario:

John is responsible for an integration project, which includes data loading, transformation, and validation. He created contexts, a data server, and physical and logical schemas in the Topology. To start an integration project, John needs to create a new ODI project and import knowledge modules that will be used for development of his project.

Background:

Now you assume the role of a project leader who is starting an integration project. You create a project named HandsOnLoads with a folder named HandsOn. You import knowledge modules for working with three sources (Hypersonic SQL, XML, and File) and one target (Oracle.) Note: Completing this practice is critical for all the following practice sessions.

is critical for all the following practice sessions. Your Tasks: 1. Create a project, HandsOnLoads, with

Your Tasks:

1. Create a project, HandsOnLoads, with a folder called HandsOn.

a. In Designer Navigator, click the Projects tab, click the New Project select New Project.

Projects tab, click the New Project select New Project . icon, and then Copyright © 2012,

icon, and then

click the New Project select New Project . icon, and then Copyright © 2012, Oracle and/or

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Setting Up a New ODI Project Chapter 5 - Page 3

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

b. Enter the name of the project: HandsOnLoads. The Code field is automatically filled with your Name field entry.

field is automatically filled with your Name field entry. c. Click the Save button to create

c. Click the Save button to create the project. The project appears in the tree view. Expand the HandsOnLoads project node.

in the tree view. Expand the HandsOnLoads project node. d. ODI creates a folder named FirstFolder.

d. ODI creates a folder named FirstFolder. Double-click this folder. In the editing window that appears, change the name in the Name field to HandsOn. Click Save.

change the name in the Name field to HandsOn. Click Save . Copyright © 2012, Oracle
change the name in the Name field to HandsOn. Click Save . Copyright © 2012, Oracle

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Setting Up a New ODI Project Chapter 5 - Page 4

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

2. Import the knowledge modules that are required for working with the following technologies:

Sources:

Hypersonic SQL, XML, File

Targets:

Oracle

a. Select the HandsOnLoads project node. Right-click, and then select Import > Import Knowledge Modules.

and then select Import > Import Knowledge Modules . Copyright © 2012, Oracle and/or its affiliates.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Setting Up a New ODI Project Chapter 5 - Page 5

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

b. The Import Knowledge Modules (XML File) window appears. The File import directory field is filled with the path to an XML-reference folder.

field is filled with the path to an XML-reference folder. c. Select the following knowledge modules

c. Select the following knowledge modules that will be used in this project. Use the Ctrl key and scroll down the list to make multiple selections. Be very careful in making your selections, as there are several knowledge modules that have similar names. Click OK.

CKM HSQL

CKM Oracle

IKM Oracle Incremental Update (not IKM Oracle AW Incremental Update)

IKM SQL Control Append

LKM File to SQL

LKM SQL to Oracle

Control Append • LKM File to SQL • LKM SQL to Oracle Copyright © 2012, Oracle

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Setting Up a New ODI Project Chapter 5 - Page 6

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

d. Review the Import Report, and then click Close.

only d. Review the Import Report, and then click Close . e. Check the imported knowledge

e. Check the imported knowledge modules by expanding corresponding nodes under HandsOnLoads > Knowledge Modules, as shown here:

under HandsOnLoads > Knowledge Modules, as shown here: Copyright © 2012, Oracle and/or its affiliates. All

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Setting Up a New ODI Project Chapter 5 - Page 7

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Close the HandsOnLoads and HandsOn tabs.

Limitda use only Close the HandsOnLoads and HandsOn tabs. 3. Now, look at global knowledge modules.

3. Now, look at global knowledge modules. Introduced in ODI 11.1.1.6, global knowledge modules enable you to share specific knowledge modules across multiple projects.

In previous versions of ODI, knowledge modules were always specific to a project and could only be used within the project into which they were imported.

A best practice is to import as global knowledge modules those that will be frequently used by multiple projects.

- One benefit is that you only need to import the knowledge module once, rather than import it into each project using it.

- Another benefit is that if you need to modify the knowledge module, the modification will propagate to all projects using the knowledge module.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Setting Up a New ODI Project Chapter 5 - Page 8

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

a. In the Designer navigator, expand the Global Objects tab. Expand the Global Knowledge Modules node.

Objects tab. Expand the Global Knowledge Modules node. Copyright © 2012, Oracle and/or its affiliates. All

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Setting Up a New ODI Project Chapter 5 - Page 9

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

b. Right-click Loading (LKM) and select Import Knowledge Modules.

Loading (LKM) and select Import Knowledge Modules . c. The Import Knowledge Modules (XML File) window

c. The Import Knowledge Modules (XML File) window appears. Scroll down the list and select IKM SQL to SQL Control Append. Click OK.

list and select IKM SQL to SQL Control Append . Click OK . d. The Import

d. The Import Report appears, showing IKM SQL to SQL Control Append. Click CLOSE.

showing IKM SQL to SQL Control Append. Click CLOSE . Copyright © 2012, Oracle and/or its

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Setting Up a New ODI Project Chapter 5 - Page 10

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

e. In the Global Knowledge Modules node, expand Integration (IKM). Observe the IKM SQL to SQL Control Append knowledge module is ready to be shared among multiple projects.

module is ready to be shared among multiple projects. Note: This example is to practice creating

Note: This example is to practice creating global knowledge modules. You will not be using this knowledge module in subsequent lab practices.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Setting Up a New ODI Project Chapter 5 - Page 11

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 5: Setting Up a New ODI Project Chapter 5 - Page 12

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practices for Lesson 6:

Oracle Data Integrator Model Concepts

Chapter 6

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 6: Oracle Data Integrator Model Concepts Chapter 6 - Page 1

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practices for Lesson 6: Overview

Practices Overview

In this practice, you create the models corresponding to the data, and reverse-engineer the schemas’ data structures.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 6: Oracle Data Integrator Model Concepts Chapter 6 - Page 2

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practice 6-1: Creating a Model

Use Case Scenario:

John created a new ODI project and imported knowledge modules that will be used for the development of his integration project. Now, John needs to create new ODI Models and reverse-engineer all tables and files into the models.

Background:

In the previous practice, you configured the schemas containing the application data stored in the Oracle database. You now create the Oracle Sales Application model corresponding to this data and reverse-engineer the schemas’ data structures. You also reverse-engineer the structure of an XML file to a Geographic Information model that you define.

file to a Geographic Information model that you define. Copyright © 2012, Oracle and/or its affiliates.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 6: Oracle Data Integrator Model Concepts Chapter 6 - Page 3

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Your Tasks:

1. Start the ODI Demo source environment: Select Start > Programs > Oracle > Oracle Data Integrator > Shortcut to start the demonstration. If the Open File – Security Warning window appears, click Run. The “OracleDI Demo – Source” command shell window and two other command shell windows open.

shell window and two other command shell windows open. The ODI startdemo demonstration environment provides

The ODI startdemo demonstration environment provides databases that contain some of the data used in this course’s practices. Source and target data servers, as well as a demonstration repository data server, are started.

well as a demonstration repository data server, are started. Note: You should keep these three command

Note: You should keep these three command shell windows running (minimized) for all remaining lab practices in this course, along with the “localagent” command shell window.

along with the “localagent” command shell window. 2. Create a model for the Oracle schema. a.

2. Create a model for the Oracle schema.

a. In the Designer Navigator, click the Models tab.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 6: Oracle Data Integrator Model Concepts Chapter 6 - Page 4

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

b. Click the New Model

Chile Servicios Limitda use only b. Click the New Model icon and then select New Model

icon and then select New Model.

b. Click the New Model icon and then select New Model . c. Specify (enter or

c. Specify (enter or select) the following parameters on the Definition tab:

Name: Oracle Sales Application

Code: ORACLE_SALES_APPLICATION

Technology: Oracle

Logical Schema: ORACLE_ORCL_LOCAL_SALES The Definition tab should appear as shown:

The Definition tab should appear as shown: Copyright © 2012, Oracle and/or its affiliates. All rights

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 6: Oracle Data Integrator Model Concepts Chapter 6 - Page 5

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

d. Click the Reverse Engineer tab, and select Development from the Context drop-down list. Click Save.

Development from the Context drop-down list. Click Save . 3. Reverse-engineer all the tables in this

3. Reverse-engineer all the tables in this model.

a. Right-click Oracle Sales Application model and select the Reverse Engineer option. If the Confirmation window appears, click Yes.

Note: The progress of the reverse-engineering process is shown on the status bar.

the reverse-engineering process is shown on the status bar. Copyright © 2012, Oracle and/or its affiliates.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 6: Oracle Data Integrator Model Concepts Chapter 6 - Page 6

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

b. Verify the model reverse-engineered successfully. In the tree view, expand the Oracle Sales Application model. The datastores of the model appear.

Application model. The datastore s of the model appear. Copyright © 2012, Oracle and/or its affiliates.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 6: Oracle Data Integrator Model Concepts Chapter 6 - Page 7

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Expand the TRG_CUSTOMER datastore, and then expand the Columns and Constraints nodes. The list of columns and constraints that were reverse-engineered for this table appear in the tree view. Check that the columns and constraints that were reverse- engineered for the TRG_CUSTOMER table correspond to its data definition language (DDL) given below. Close the tabs.

data definition language (DDL) given below. Close the tabs. Create table TRG_CUSTOMER ( CUST_ID DEAR NUMERIC(10)

Create table TRG_CUSTOMER ( CUST_ID DEAR

NUMERIC(10) not null,

VARCHAR(4),

CUST_NAME VARCHAR(50), ADDRESS VARCHAR(100),

CITY_ID

PHONE VARCHAR(50),

AGE

AGE_RANGE VARCHAR(50), SALES_PERS VARCHAR(50),

NUMERIC(10) not null,

NUMERIC(3),

CRE_DATE

DATE,

UPD_DATE

DATE,

constraint PK_TRG_CUSTOMER primary key (CUST_ID),

constraint FK_CUST_CITY foreign key (CITY_ID) references TRG_CITY (CITY_ID));

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 6: Oracle Data Integrator Model Concepts Chapter 6 - Page 8

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Note: The constraint called FK_SALES_CUST TRG_SALES is defined on another table. As it references TRG_CUSTOMER, it also appears here.

4. Create a model for an XML file.

a. Click the New Model

4. Create a model for an XML file. a. Click the New Model icon and then

icon and then select New Model.

a. Click the New Model icon and then select New Model . b. Specify (enter or

b. Specify (enter or select) the following parameters on the Definition tab:

Name: Geographic Information

Code: GEOGRAPHIC_INFORMATION

Technology: XML

Logical Schema: XML_DIM_GEO

c. The Definition tab should appear as below. Click the Reverse Engineer tab.

should appear as below. Click the Reverse Engineer tab. Copyright © 2012, Oracle and/or its affiliates.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 6: Oracle Data Integrator Model Concepts Chapter 6 - Page 9

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

d. Select Development from the Context drop-down list. Click Save.

Development from the Context drop-down list. Click Save . 5. Reverse-engineer all the tables in this

5. Reverse-engineer all the tables in this model.

a. In the Models tree view, right-click Geographic Information model and select the Reverse Engineer option. Note: The progress of the reverse-engineering process is shown on the status bar.

the reverse-engineering process is shown on the status bar. Copyright © 2012, Oracle and/or its affiliates.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 6: Oracle Data Integrator Model Concepts Chapter 6 - Page 10

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

b. Verify that the model reverse-engineered successfully. In the tree view, expand the Geographic Information model. The datastores of the model appear.

Information model. The datastore s of the model appear. 6. Open the XML file GEO_DIM.xml corresponding

6. Open the XML file GEO_DIM.xml corresponding to the XML model that you have reverse- engineered. The file is at the following location:

C:\oracle\Middleware\Oracle_ODI1\oracledi\demo\xml

a. Open Windows Explorer, and go to the C:\oracle\Middleware\Oracle_ODI1\oracledi\demo\xml directory.

b. Right-click the GEO_DIM.xml file and select Open.

c. The XML file opens in Internet Explorer. The file structure appears as shown here:

Internet Explorer. The file structure appears as shown here: The file hierarchy is GEOGRAPHY_DIM > country

The file hierarchy is GEOGRAPHY_DIM > country > region > city > and so on.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 6: Oracle Data Integrator Model Concepts Chapter 6 - Page 11

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

7. Compare the XML file content with the reverse-engineered structure in the Hierarchical view. In Designer’s tree view, expand the Geographic Information node, and then the Hierarchy node. Expand the datastores under this node.

Hierarchy node. Expand the datastore s under this node. The hierarchy of the XML file is

The hierarchy of the XML file is reproduced here. The XML file has been mapped to a relational structure, with foreign keys to map the links between the different levels of hierarchy.

Close the Geographic Information model tab

.
.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 6: Oracle Data Integrator Model Concepts Chapter 6 - Page 12

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practices for Lesson 7:

Organizing ODI Models and Creating ODI Datastores

Chapter 7

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores Chapter 7 - Page 1

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practices for Lesson 7: Overview

Practices Overview

In this practice, you check the quality of data in the models and define constraints on these models.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores Chapter 7 - Page 2

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Practice 7-1: Checking Data Quality in the Model

Use Case Scenario:

John created new ODI Models and reverse-engineered all the tables and files in the models. Now, John needs to check the quality of data in the models, define the constraints on the models, and detect possible errors in data.

Background:

After the models are defined, you need to check the quality of the data in these models. In this practice, you check the quality of data in the models and define constraints on models for the given sample application. First, you create a new model, HSQL_ORDERS_APPLICATION, as a duplicate of the model HSQL_SRC. You then create a referential constraint on the SRC_CUSTOMER table’s CITY_ID column by using SRC_CITY as the parent table. Next, you create a condition constraint on the SRC_CUSTOMER table:

Length(SRC_CUSTOMER.PHONE) > 6 Note: Completing this practice is critical for all the following practice sessions.

is critical for all the following practice sessions. Copyright © 2012, Oracle and/or its affiliates. All

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores Chapter 7 - Page 3

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

Your Tasks:

1. Create a new model, HSQL_ORDERS_APPLICATION, as a duplicate of the model HSQL_SRC.

a. In Designer, open the Models tab. Right-click HSQL_SRC model and select Duplicate Selection to duplicate the datastore. Click Yes.

Selection to duplicate the datastore. Click Yes . b. Open Copy of HSQL_SRC and rename it
Selection to duplicate the datastore. Click Yes . b. Open Copy of HSQL_SRC and rename it

b. Open Copy of HSQL_SRC and rename it as HSQL Orders Application. For Code, enter HSQL_ORDERS_APPLICATION. Click Save to save the model. If you get a warning message, click Yes to finish saving.

If you get a warning message, click Yes to finish saving. Copyright © 2012, Oracle and/or

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores Chapter 7 - Page 4

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

University and Businessmind Chile Servicios Limitda use only 2. Create a Reference constraint between the SRC_CUSTOMER
University and Businessmind Chile Servicios Limitda use only 2. Create a Reference constraint between the SRC_CUSTOMER

2. Create a Reference constraint between the SRC_CUSTOMER and SRC_CITY datastores in the new model. This reference is on the CITY_ID column.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores Chapter 7 - Page 5

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

a. Expand the HSQL Orders Application model, and expand the SRC_CUSTOMER datastore.

Application model, and expand the SRC_CUSTOMER datastore. b. Select the Constraints node, right-click, and select

b. Select the Constraints node, right-click, and select the New Reference option.

node, right-click, and select the New Reference option. Copyright © 2012, Oracle and/or its affiliates. All

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores Chapter 7 - Page 6

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

c. From the Table drop-down list, select the SRC_CITY table. The name of the constraint is automatically generated. Click the Columns tab.

is automatically generated. Click the Columns tab. d. Click the Add icon, and use drop-down lists
is automatically generated. Click the Columns tab. d. Click the Add icon, and use drop-down lists

d. Click the

generated. Click the Columns tab. d. Click the Add icon, and use drop-down lists to select

Add icon, and use drop-down lists to select the CITY_ID column for both

tables of reference. (Note that the Primary Table column is City, which you want to also change to CITY_ID.) Click Save.

, which you want to also change to CITY_ID .) Click Save . Copyright © 2012,

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores Chapter 7 - Page 7

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Businessmind Chile Servicios Limitda use only

3. Create a Condition constraint on SRC_CUSTOMER to check that the phone number contains six or more characters.

a. Select the Constraints node again for SRC_CUSTOMER, right-click, and select the New Condition option.

, right-click, and select the New Condition option. • Enter Phone Number Length in the Name

Enter Phone Number Length in the Name field.

Select Oracle Data Integrator Condition from the Type drop-down list.

Enter the following expression in the Where field:

LENGTH(SRC_CUSTOMER.PHONE) > 6

In the Message field, enter A phone number should contain more than 6 characters.

Note: You can also use the Expression Editor icon expression.

You can also use the Expression Editor icon expression. to graphically edit the b. Click the

to graphically edit the

b. Click the Validation icon

to graphically edit the b. Click the Validation icon to validate your expression syntax. Copyright ©

to validate your expression syntax.

the Validation icon to validate your expression syntax. Copyright © 2012, Oracle and/or its affiliates. All

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores Chapter 7 - Page 8

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED