Você está na página 1de 13

Creating an ODI Project and Interface: Exporting a Flat File to a

Relational Table
Purpose

This tutorial walks you through the steps that are needed to create a project and an interface in Oracle Data
Intergrator (ODI) to export a flat file to a relational table.

Time to Complete

Approximately 40 minutes

Topics

This OBE tutorial covers the following topics:

Overview
Scenario
Verifying the Prerequisites
Creating a New Project with Oracle Data Integrator
Creating a New ODI Model for the Flat File Source
Creating a New ODI Source Datastore for Use with ODI Interface
Creating a New RDBMS Schema for the ODI Target Datastore
Creating a New ODI Target Datastore for Use with ODI Interface
Creating a New ODI Target Data Server and Physical Schema
Creating a New ODI Target Model
Creating and Testing a New Interface with Oracle Data Integrator
Summary

Viewing Screenshots

Place the cursor over this icon to load and view all the screenshots for this tutorial. (Caution:
Because this action loads all screenshots simultaneously, the response time may be slow
depending on your Internet connection.)

Note: Alternatively, you can place the cursor over each individual icon in the following steps to load and
view only the screenshot associated with that step.

The screenshots will not reflect the specific environment that you are using. They are provided to give you
an idea of where to locate specific functionality in Oracle Data Integrator.

Overview

A common task that is performed using ODI is to export data from a flat file and load this data into a
relational table. This tutorial walks you through the steps that are needed to create a project and an interface
that will export a flat file to a relational table. You also execute the interface and verify the execution in ODI
Operator.
Back to Topic List

Scenario

Linda works as a database administrator for Global Enterprise. In Global Enterprise, Linda is responsible for
performing database management and integration tasks on various resources within the organization. In
particular, Linda is responsible for data loading, transformation, and validation. To begin working on her
projects, Linda created the new Master repository and Work repository. Now Linda needs to create a project
and an interface to export data from a flat file and load this data into a relational table.

Back to Topic List

Verifying the Prerequisites

Before you start the tasks, make sure that the following requirements are met:

 The system should include the following installed products:


o Oracle Database 10g XE
o Oracle Data Integrator 10g (10.1.3.4)
 You should have successfully completed the OBE titled Creating and Connecting to ODI Master
and Work Repositories before attempting this OBE. To access this OBE, click HERE.

If not done before, start the services and components for Database 10g XE and Oracle Data Integrator 10g
(10.1.3.4).

Back to Topic List

Creating a New Project with Oracle Data Integrator

To create a new project within Oracle Data Integrator, perform the following steps:

1. Start ODI Designer: Start > All Programs > Oracle > Oracle Data Integrator > Designer. Select WORKREP from the Login Na
down list if not already selected. Enter SUPERVISOR in the User field and SUNOPSIS in the Password field. Click OK to login.
2.
In the window that opens, click the Projects tab, and then click the Insert Project button to add a new project.
3. On the screen that appears, set the Name of the project to ODIexp_FF_RT in the Name field. The Code field is filled automatical
OK. The newly created ODIexp_FF_RT project now appears in the Projects pane. You have now successfully added a new ODI
Back to Topic List

Creating a New ODI Model for the Flat File Source

To create a new model for the flat file target datastore, perform the following steps:

1. Click the Models tab in the left panel of ODI Designer. Click the Insert Model Folder icon. On the
screen that appears, set the Name to Flat_Files. Click OK.
2. Right-click the Flat_Files model folder and select Insert Model.
3. On the screen that follows, enter the values provided in the following table. Click the Reverse tab (don't
click the Reverse button). Select Global from the Context drop-down list. Click OK.

Parameter Value
Name Flat_Files
Technology File
Logical Schema FILE_DEMO_SRC
Back to Topic List

Creating a New ODI Source Datastore for Use with ODI Interface

To create a new ODI target datastore, perform the following steps:

1. Expand the Flat_Files folder, right-click the newly created Flat_Files model, and then select Insert Datastore. On the screen tha

SRC_SALES_PERSON. Click the button next to the Resource Name field. Select the SRC_SALES_PERSON.txt file and c

Note: In this OBE, you use the sample files that are delivered with the ODI installation.
2. Click the Files tab. Set the File Format to Fixed, and then click the Columns tab.
3. On the Columns tab, click the Reverse button. The following screen appears. Click Yes. The Column Setup Wizard appears.
4. Point the cursor, and then click the ruler at the beginning of each column as shown below. The wizard marks each column.

Você também pode gostar