Professional Documents
Culture Documents
ODI 12C Integration and Administration - Activity Guide
ODI 12C Integration and Administration - Activity Guide
ODI 12C Integration and Administration - Activity Guide
e to
lic ens
b l e
f e ra
Oracle Data a s
nIntegrator 12c:
t r
on- and Administration
Integration
n
s a eฺ
) h aActivity
u idGuide
ฺ c om ent G
h o o tud
@ ya his S
j d er se t
r (a u
jd e
i r A
di m
V l a
D82167GC10
Edition 1.0
May 2014
D86566
Copyright © 2014, 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.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2017, Oracle and/or its affiliatesฺ
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.
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:
Trademark Notice
e l ic
a l
brespective
r
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their
fe
owners.
n s
n - tra
Author
n o
Steve Friedberg a
s ideฺ
h
) t Gu a
Technical Contributors and Reviewers m
o
c deBabu,
ฺSurendra n Rick Green, Viktor Tchemodanov,
Phil Scott, Gerry Jurrens, Brent Dayley,
o o tu
ah is SLeite
Julien Testut, Alex Kotopoulis, Alessandro
y
j d er@ se th
r ( a u Oracle Tutor
A jde
This book was published using:
i m ir
Vl ad
Table of Contents
Practices for Lesson 1: Introduction to Integration and Administration ....................................................1-1
Practices for Lesson 1: Overview ...................................................................................................................1-2
Practice 1-1: Logging In and Help Overview ..................................................................................................1-3
Practices for Lesson 2: Administering ODI Repositories .............................................................................2-1
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2017, Oracle and/or its affiliatesฺ
e l ic
bl
Practices for Lesson 5: Overview ...................................................................................................................5-2
r a
Practice 5-1: Setting Up a New ODI Project...................................................................................................5-3
fe
n s
Practices for Lesson 6: Oracle Data Integrator Model Concepts.................................................................6-1
- tra
Practices for Lesson 6: Overview ...................................................................................................................6-2
n
no
Practice 6-1: Creating Models by Reverse-Engineering.................................................................................6-3
a
Practices for Lesson 7: Organizing ODI Models and Creating ODI
h a s Datastores i d eฺ..........................................7-1
) t Gu
Practices for Lesson 7: Overview ...................................................................................................................7-2
m
o n
ฺc...........................................................................................8-1
Practice 7-1: Checking Data Quality in the Model ..........................................................................................7-3
e
o o d
ah is Stu
Practices for Lesson 8: ODI Mapping Concepts
y
Practices for Lesson 8: Overview ...................................................................................................................8-2
@ eSimple
Practice 8-1: Creating ODI r
d eMapping: thTransformations.......................................................................8-3
(
Practices for Lesson j s
a9: DesigninguMappings................................................................................................9-1
Practicesd
r
foreLesson 9: Overview ...................................................................................................................9-2
A j9-1:
m i r
Practice Creating ODI Mapping: Complex Transformations ...................................................................9-3
adi
Practice 9-2: Creating ODI Mapping: Implementing Lookup ..........................................................................9-23
Vl Practices for Lesson 10: Mappings: Monitoring and Troubleshooting .......................................................10-1
Practices for Lesson 10: Overview .................................................................................................................10-2
Practice 10-1: Creating ODI Mapping: Exporting a Flat File to a Relational Table .........................................10-3
Practices for Lesson 11: Designing Mappings: Advanced Topics 1 ...........................................................11-1
Practices for Lesson 11: Overview .................................................................................................................11-2
Practice 11-1: Using Native Sequences with ODI Mapping ...........................................................................11-3
Practice 11-2: Using Temporary Indexes .......................................................................................................11-16
Practice 11-3: Using Sets with ODI Mapping .................................................................................................11-25
Practices for Lesson 12: Designing Mappings: Advanced Topics 2 ...........................................................12-1
Practices for Lesson 12: Overview .................................................................................................................12-2
Practice 12-1: Creating and Using Reusable Mappings .................................................................................12-3
Practice 12-2: Developing a New Knowledge Module....................................................................................12-35
Practices for Lesson 13: Using ODI Procedures ...........................................................................................13-1
Practices for Lesson 13: Overview .................................................................................................................13-2
Practice 13-1: Creating an ODI Procedure.....................................................................................................13-3
no
Practices for Lesson 20: Advanced ODI Administration ..............................................................................20-1
a
h a s ideฺ
Practices for Lesson 20: Overview .................................................................................................................20-2
) tG u
Practice 20-1: Setting Up ODI Security ..........................................................................................................20-3
m
Practice 20-2: Integration with Enterprise Manager and
o
ฺc den
Using ODI Console .................................................20-19
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
i m ir
Vl ad
e to
lic ens
b l e
f e ra
ra ns
Practices o
for
n -tLesson 1:
a n to Integration
Introduction
h a s ideฺ
and
) Administration
Gu
ฺ c omChapter
e nt1
h o
o Stu d
a
y his
e r @ e t
j d u s
e r (a
A jd
m i r
l a di
V
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
d m
iAssumptions
a
Vl All software is preinstalled. Databases are preconfigured and prepopulated with user data.
Tasks
1. View the major software components that are installed on your system (as shown in the
preceding diagram). Your environment has the following major components:
• Oracle Database 12c
− SQL Developer
• MySQL Database
• WebLogic Server 12c
• Oracle Data Integrator 12c
• Repository Creation Utility
b. SQL Developer: Starts SQL Developer, which provides access to the objects in Oracle
Database 12c through a GUI.
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
a n
. . imported "DEV_ODI_REPO"."SNP_CONV_DT" 1.821 MB 36684 rows
h a
...many lines omitted for clarity... s ideฺ
. . imported "DEV_ODI_REPO"."SNP_MTXT" 692.3 KB 3449 rows
m ) t Gu
. . imported "SALES_DEV"."TRG_CUSTOMER_H" 0 KB 0 rows
o
ฺc den
. . imported "SALES_DEV"."TRG_REGION" 0 KB 0 rows
o o
ah is Stu
. . imported "SALES_DEV"."TRG_SALES" 0 KB 0 rows
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
y
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
j d er@ se th
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
r (a u
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
jd e
Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
V l a [oracle@hostname labs]$
4. Start Oracle Data Integrator Studio 12c and explore the Start page.
a. Double-click the ODI Studio 12c desktop shortcut. ODI 12c starts.
e to
li cens
l e
leisure. f e rabat your
b. Examine the Start page. Note the online tutorials, which you can do later,
t r a ns
n on-
s a eฺ
) h a u id
ฺ c om ent G
h o o tud
@ ya his S
j d er se t
r ( a u
A jde
d imir
Vla
c. Click the links provided on the Start page and view available resources. A web browser
starts. You may be prevented by firewalls from accessing the Internet. Some of the
resources are not local but are online.
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
d r@Help epanels
ethe th after you look at them.
( j
You can close s
u In a later lab, you will make a new repository.
aODI repository.
5. Connect tor the
de Connect To Repository. When prompted for Wallet Password, enter Welcome1.
a.AjClick
m ir All passwords are case-sensitive. Then click OK.
l a di
V
e to
lic ens
b l e
f e ra
ans
o n -tr
Note: In this ODI setup, the repository, username SUPERVISOR, and password
Welcome1 are predefined for login.
a n
c. a s ideฺ
On the Designer tab, expand the Projects and Models accordions. In Projects, select
h
) t Gu
JunkForDemo > HandsOn. Expand and view the infrastructure for your practices.
m
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ra ns
Practices ofor
n -tLesson 2:
a n
Administering
a s d e ฺ ODI
) h Gui
Repositories
ฺ c omChapter
e nt2
h o
o Stu d
a
y his
e r @ e t
j d u s
e r (a
A jd
m i r
l a di
V
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
repositories.
Assumptions
You have already run ~/labs/reset01.sh in the previous lab.
Note: These are practice repositories. In later lessons, you use other Master and Work
repositories that are partially predefined with source and target objects.
Tasks
e to
1. Start RCU:
lic ens
a. Navigate to the directory $FMW_HOME/oracle_common/bin as shown below:
b l e
[oracle@hostname ~]$ cd $FMW_HOME/oracle_common/bin
f e ra
[oracle@hostname bin]$ pwd ans
o n
/u01/app/oracle/Middleware/Oracle_Home/oracle_common/bin-tr
b. To start RCU, execute the following command: a
n
s ideฺ
[oracle@hostname bin]$ ./rcu ) ha u
2. Use RCU to create ODI Master andฺc o m n t G
Work repositories:
o o d e
ah screen.
a. Click Next on the Welcome
S tu
y
@ e thi s
e r
( a jd u s
j d er
m ir A
l a di
V
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
c. jd e
On the Database Connection details screen, enter the following parameters:
i r A
di m
V l a Parameter Value
Port 1521
Username sys
Password Welcome1
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
Click Next. er@ th
j d s e
a Warninguwindow is displayed, click Ignore.
Note: If(the
e r
r Ajd
d i mi
Vl a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
e Checking Prerequisites window, click OK.
jIndthe
ir A
f.
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc enterdtheenparameters provided in the table below.
h. On the Custom Variables screen,
o o
Click Next.
y ah is Stu
j d er@ se th
Parameter
r ( a u Value
jd e
i r A
Supervisor Password Welcome1
di m
V l a Confirm Supervisor Password Welcome1
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
i.
er@ se screen,
On the Map Tablespaces
j d th click Next.
r ( a u
Ajde
i m ir
d
Vla
k. After the Tablespaces are created, click OK in the Creating Tablespaces window.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
(
Note: This
r u takes several minutes.
a Create step
e
r Ajd
d i mi
Vl a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
3. e
On ODI Studio, create the connection to your new Master and Work repositories.
jd
i r A
a. Start ODI Studio. Click Connect to Repository. In the Enter Wallet Password window,
di m enter Welcome1. Click OK.
V l a Note: For the purpose of this practice, your Wallet password is predefined: Welcome1.
e to
lic ens
b l e
f e ra
ans
b. n -tr
Configure the new ODI Master Login as shown in the table below.
o
a n
Repository Connection Information
h a s ideฺ
m ) t Gu
Parameter o
c den
ฺValue
o o
Login Name y Stu
ah isODI_REPO1
d e r@ e th
User ( a j u s SUPERVISOR
r
A jde
Password
m ir Welcome1
User DEV1_ODI_REPO
Password Welcome1
Url jdbc:oracle:thin:@localhost:1521:orcl
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
j d e You click magnifying glass to select and then edit the JDBC URL. Also, click
Note:
r A magnifying glass to select Work repository Workrep 1, as shown below:
d i mi
Vl a
b. Click the Topology tab. Expand the Repositories accordion bar. Under the Master
e to
ens
Repository node, expand Work Repositories. View your newly created Work repository
WORKREP1.
lic
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a
This completes Practice 2-1. This completes the practices for Lesson 2.
e to
lic ens
b l e
f e ra
ra ns
Practices o
for
n -tLesson 3: ODI
a
Topology n Concepts
a uide s ฺ
) h 3G
c o mChaptern t
o o ฺ d e
ah is S t u
y
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Tasks
1. Reset your practice environment.
a. Disconnect from the ODI repository (or just close ODI Studio).
e to
lic ens
b l e
f e ra
b. In the Terminal window, execute the following command:
tra ns
./reset03.sh n -
When prompted, verify that you disconnected from a ntheoODI repository, and then press
a s ideฺ
Enter. Wait until this script completely executes.
h
Note: This process may take up to one m )minute.t Gu
o
ฺc~/labsden
[oracle@hostname ~]$ cd
o o tu
h ./reset03.sh
[oracle@hostname a
y labs]$
s S
i BEFORE RUNNING *************
e r
YOU MUST BE LOGGED@ OFFeOFthODI
a jd key utoscontinue
Press [Enter]
(
d e r
(...many lines omitted for clarity...)
e to
lic ens
c. In the wizard, select “Create a new domain.” In the Domain Location path, change the
b l e
domain name to agent1. As a result, your Domain Location path should now be the
f e ra
following (all on one line):
ans
o n -tr
/u01/app/oracle/Middleware/Oracle_Home/user_projects/domains/agent1
Click Next.
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o tu
y ahto theisODISrepository.
3. Start ODI Studio and connect
a. Double-click the
j d er@
ODI 12c
s e th shortcut to start ODI.
Studio
r ( a u
A jde
r
dimi
Vla
b. Click “Connect To Repository.” When prompted, enter Welcome1 in the Wallet
Password field.
c. Select DEV_ODI_REPO in the Login Name field. Enter Welcome1 as the password.
e to
lic ens
b l e
f e ra
ans
4. Create a new ODI agent.
o n -tr
a n
a. In ODI Studio, click the Topology tab. Expand the Physical Architecture accordion and
a s ideฺ
then expand the Agents node. Note that no agents have been created in ODI.
h
) t Gu
Right-click the Agents node and select New Agent.
m
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
Leave this tab open for the moment.
t ra ns
n -
c.
no
In the Terminal window, execute the following command to change directory:
a
[oracle@hostname]$ cd $FMW_HOME
h a s ideฺ
) t Gu
[oracle@hostname]$ cd user_projects/domains/agent1/bin
m
[oracle@hostname bin]$ pwd o
ฺc den
h o o tu
/u01/app/oracle/Middleware/Oracle_Home/user_projects/domains/agent1/bin
y abin]$ s S
[oracle@hostname
e r @ command:
e t hi
d. Execute the
( a jdfollowing
u s
j d er
[oracle@hostname bin]$ ./agent.sh -NAME=OracleDIAgent1
A Note: Ignore any notification and warning messages.
d imir
Vla
tra
Agent version: 12.1.2 - 17/09/2013. Port: 20910. JMX Port: 21910.
n -
2014-01-14 18:58:22.358 NOTIFICATION ODI-1136 Starting Schedulers on Agent
OracleDIAgent1.
a no
h a s ideฺ
2014-01-14 18:58:23.452 NOTIFICATION ODI-1137 Scheduler started for work
) t Gu
repository workrep on Agent OracleDIAgent1.
m
o n> Agents > OracleDIAgent1 and right-
ฺcArchitecture
e
o o d
ah is Sgotuto the open OracleDIAgent1 tab and click
f. Go back to Topology > Physical
click and select Test;yalternatively,
@ e ttoh your agent. Verify that the connection is successful and
Test to test the rconnection
e
j d s OracleDIAgent1 tab.
then clickaOK. Closeuthe
(
j d er
A
d imir
Vla
e to
lic ens
b l e
f e ra
Even though the Physical Agent tests correctly, you still need to make a logical agent.
That is in the next lab. tra ns
n -
5. Stop your standalone agent.
a no
h a s ideฺ
a. Open a new Terminal window (or new tab within the other terminal window) and
) t Gu
execute the command to change directory:
m
o
ฺc den
[oracle@hostname]$ cd $FMW_HOME
o o
ah is Stu
[oracle@hostname]$ cd user_projects/domains/agent1/bin
y
er@ se th
[oracle@hostname bin]$ pwd
( a j d
/u01/app/oracle/Middleware/Oracle_Home/user_projects/domains/agent1/bin
u bin]$
r
[oracle@hostname
de the OracleDIAgent1 standalone agent:
b.AjStop
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ra ns
Practices ofor
n -tLesson 4:
a n the Physical and
Describing
h a s ideฺ
Logical
) GuArchitecture
ฺ c omChapter
e nt4
h o
o Stu d
a
y his
e r @ e t
j d u s
e r (a
A jd
m i r
l a di
V
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
b. Start the Terminal window and execute the following command to change the directory:
cd /home/oracle/labs
e to
lic ens
b l e
f e ra
tra ns
n -
[oracle@hostname ~]$ cd ~/labs
a no
[oracle@hostname labs]$
h a s ideฺ
m ) t GtouPractice 4:
c. Execute the command to reset your o environment
ฺc den
o o
ah is Stu
./reset04.sh
2. y
Connect to the ODI repository.
j d er@
a. If it is not already started,
s e th ODI Studio.
start
(
b. Click Connect
r u
a To Repository. When prompted for Wallet Password, enter Welcome1.
jd
Thene click OK.
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
3. Create a new context:
h a s ideฺ
m G u accordion bar to expand it.
a. Click the Topology tab, and then click )the Contexts
o
ฺc den t
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
r
dimi
Vla
b. Click the New Context icon on the Contexts bar, and then select New Context.
c. Enter your context parameters as shown below. The context window should appear as
follows.
− Name: Production
− Code: PRODUCTION (filled in automatically in uppercase)
e to
d. Create another new context, repeating the operations:
lic ens
− Name: Development e
b l
− Code: DEVELOPMENT (filled in automatically in uppercase)
f e ra
− Password: Leave this field empty.
tra ns
− Default: Select this check box. n -
a no
h a eฺ All
s ClickidSave
Click Yes to confirm in the Confirmation window. .
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a u
e
r Ajd
d i mi
Vl a
Notice the very small checkmark on Development to indicate that it is the default.
4. Create an ORACLE_ORCL_LOCAL data server:
a. Click the Physical Architecture bar. Expand the Technologies node, scroll down and
e to
ens
select the Oracle node, and then right-click and select New Data Server.
lic
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
d. Click Search -tr
to the right of the JDBC URL field. In the URL examples window,
o n
n
select the first URL in the Name list, and click OK.
a
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
5. Test this data server:
a. Click Test Connection. In the Confirmation dialog box, click Yes to confirm saving lic ens
your data before testing the connection. In the Information window, click OK. In the b l e
Test Connection dialog box, click Test. f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
b. In the Information dialog box that reports a successful connection, click OK.
a. Expand the Oracle node. Right-click the newly created data server
ORACLE_ORCL_LOCAL, and then select New Physical Schema.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
b. In the Physical Schema panel, ฺselect e n
c SALES_PROD from the Schema (Schema) drop-
o o
down list, and then selecthODI_TEMPtu
d
from the Schema (Work Schema) drop-down
list. Confirm that the y
a is Sbox is not selected, and leave all the other fields
Default check
@
er Savese t.hIn the Information window, click OK.
unchanged.
( a j dClick
u
r
A jde
d imir
Vla
e to
9. The logical schema FILE_DEMO_SRC is predefined for you and is mapped in the
lic ens
predefined Global context to a physical schema that represents a subfolder in a file system.
b l e
Map FILE_DEMO_SRC to the same physical schemas in the new Development and
f e ra
Production contexts that you defined earlier.
ans
o n -tr
a. In the Logical Architecture, expand the File node, and double-click the
n
FILE_DEMO_SRC logical schema. Ensure that the logical schema FILE_DEMO_SRC is
a
mapped to the physical schema
h a s ideฺ
) t Gu
FILE_GENERIC./home/oracle/labs/files/flat_files
m
o
in the Development, Global, and Production contexts, as follows. Click Save.
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ open
Close any remaining
s e h Save your work if prompted to do so.
ttabs.
r ( a u
e
r Ajd
d i mi
Vl a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
A jde
m irb. Restart the agent in a terminal window.
l a di
V [oracle@hostname]$ cd $FMW_HOME
[oracle@hostname]$ cd user_projects/domains/agent1/bin
[oracle@hostname bin]$ pwd
/u01/app/oracle/Middleware/Oracle_Home/user_projects/domains/agent1/bin
[oracle@hostname bin]$ ./agent.sh -NAME=OracleDIAgent1
...many lines omitted for clarity...
2014-01-14 18:58:21.575 NOTIFICATION New data source:
[DEV_ODI_REPO/*******@jdbc:oracle:thin:@(description=(address=(host=localhost)
(protocol=tcp)(port=1521))(connect_data=(service_name=ORCL.US.ORACLE.COM)(serv
er=dedicated)))]
2014-01-14 18:58:22.358 NOTIFICATION ODI-1111 Agent OracleDIAgent1 started.
Agent version: 12.1.2 - 17/09/2013. Port: 20910. JMX Port: 21910.
2014-01-14 18:58:22.358 NOTIFICATION ODI-1136 Starting Schedulers on Agent
OracleDIAgent1.
2014-01-14 18:58:23.452 NOTIFICATION ODI-1137 Scheduler started for work
repository workrep on Agent OracleDIAgent1.
e to
lic ens
b l e
d. To kill the agent in the terminal window, press Ctrl + C. There are more graceful ways
f e ra
to stop the agent, but this is fine for the lab.
ans
e. Exit ODI Studio.
o n -tr
n
This completes Practice 4-1. This completes the practices for Lesson 4.
a
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ra ns
Practices o
for
n -tLesson 5:
Settinga n a New ODI Project
Up
a uide s ฺ
) h 5G
c o mChaptern t
o o ฺ d e
ah is S t u
y
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Note: Completing this practice is critical for all the following practice sessions.
Your Tasks
1. Reset your practice environment.
a. Disconnect from the ODI repository (or just close ODI Studio).
e to
lic ens
b l e
f e ra
tra ns
b. In the Terminal window, execute the following commands:
n -
[oracle@hostname ~]$ cd ~/labs
a no
[oracle@hostname labs]$ ./reset05.sh
h a s ideฺ
m ) tfrom
When prompted, verify that you disconnected G uthe ODI repository, and then press
o
ฺc executes.
e n
o
Enter. Wait until this script completely
o d
tu minute.
Note: This process may
y ahtake up
s S
to one
2. r @ e thi
Connect to the ODI repository.
e
a
a. If necessary,
( jd restartuODI
s Studio from the desktop.
d
b. Click
j er“Connect To Repository.” When prompted for Wallet Password, enter Welcome1.
m ir A Then click OK.
l a di
V
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s HandsOn.
3. Create a project, HandsOnLoads, with a folder called
i d eฺ
m )bar, click
G u
o
a. On the Designer tab, click the Projects
ฺc den t New Project , and then select
New Project.
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
r
dimi
Vla b. Enter the name of the project: HandsOnLoads. The Code field is automatically filled
with your Name field entry in uppercase.
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.
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
c required
ฺare e nfor working with the following technologies:
o
4. Import the Knowledge Modules that
o d
• Sources: y ah is Stu
− MySQL er@ th
− XML(a j d u s e
r
A j−deFile
r
dimi • Targets:
Vla − Oracle
e to
lic ens
b l e
f e ra
ans
b. -tr
The Import Knowledge Modules (XML File) window appears. In the File Import
o n
n
directory field, navigate to the folder xml-reference located at:
a
a s ideฺ
/u01/app/oracle/Middleware/Oracle_Home/odi/sdk/xml-reference
h
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
d. n -tr
Review the Import Report, and then click Close.
o
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
If you see that you imported Hive as well, you can ignore it.
e to
lic ens
b l e
f e ra
tra ns
n -
a no enable you to share
5. Look at Global Knowledge Modules. Global Knowledge
a
Modules
s A bestd ฺ is to import as Global
epractice
specific knowledge modules across multiple projects.h
) t Gused i
u by multiple projects.
Knowledge Modules those KMs that will be
o m frequently
c to dimport n the Knowledge Module once, rather than
− One benefit is that you only
o o ฺneed e
ah using
import it into each project Sit.tu
y s
hi need to modify the Knowledge Module, the modification
@is thateiftyou
− Another benefit
e r
( a jd touallsprojects using the Knowledge Module.
will propagate
m ir A
l a di
V
e to
lic ens
b l e
c. The Import Knowledge Modules (XML File) window appears. Scroll down the list and
f e ra
select IKM SQL to SQL Control Append. Click OK.
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o tu
y ahModules
e. In the Global Knowledge s Snode, expand Integration (IKM). The IKM SQL to
e r
SQL Control Append
e hi module is now ready to be shared among multiple
@ knowledge
t
projects.ajd u s
er (
A j d
d imir
Vla
Note: You may have already had a copy of IKM SQL to SQL Control Append, in which
case you now also have another copy. You can ignore that copy.
Note: This example is to practice creating Global Knowledge Modules. You will not be
using this particular Global Knowledge Module in subsequent lab practices.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ra ns
Practices o
for
n -tLesson 6:
Oracle a n Integrator Model
Data
h a s ideฺ
Concepts
) Gu
ฺ c omChapter
e nt6
h o
o Stu d
a
y his
e r @ e t
j d u s
e r (a
A jd
m i r
l a di
V
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
l ic ens
e
bl select (or
r a
d. Click the Reverse Engineer tab (make sure it is the tab, not the button),
feSave.
and
s
simply confirm) Development from the Context drop-down list. Click
n
n - tra
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
ans
b. o n -tr
Verify the model reverse-engineered successfully. In the tree view, expand the Oracle
a n
Sales Application model. The datastores of the model appear.
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a
Check that the columns and constraints that were no
reverse-engineered for the
s e ฺ
hadefinition
TRG_CUSTOMER table correspond to its data
) u idlanguage (DDL) given below.
ฺ c om ent G
h o o tud
@ ya his S
j d er se t
r ( a u
e
r Ajd
d i mi
Vl a
address VARCHAR(100),
city_id NUMERIC(10) NOT NULL,
phone VARCHAR(50),
age NUMERIC(3),
age_range VARCHAR(50),
sales_pers VARCHAR(50),
cre_date DATE,
upd_date DATE, e to
CONSTRAINT pk_trg_customer PRIMARY KEY (cust_id),
lic ens
CONSTRAINT fk_cust_city FOREIGN KEY (city_id)
b l e
REFERENCES trg_city (city_id));
f e ra
tra
Note: The constraint called FK_SALES_CUST TRG_SALES is defined on another table. ns
n -
Because it references TRG_CUSTOMER, it also appears here.
a no
d. Close the Oracle Sales Applications tab and model.
5. Create a model for an XML file. h a s ideฺ
m ) t Gu
a. Click the New Model icon o
ฺcand thene n New Model.
select
o o d
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
The Definition tab should appear as below. Click the Reverse Engineer tab.
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
c dfrom
c. Select (or simply confirm) Development
ฺ e n the Context drop-down list. Click Save.
h o
o Stu
a
y his
e r @ e t
( a j d u s
r
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
Note: The progress of the reverse-engineering process is shown
t r a nson the status bar.
-the tree view, expand the
onmodel
b. Verify that the model reverse-engineered successfully. In
Geographic Information model. The datastores ofn the appear.
a ฺ
) has uide
ฺ c om ent G
h o o tud
@ ya his S
j d er se t
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o u
there:
y ahas shown
c. The file structure appears s S
e r @ e thi
( a jd u s
j d er
A
d imir
Vla
The file hierarchy is GEOGRAPHY_DIM > country > region > city > and so on.
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
The hierarchy of the y XML Stu here. The XML file has been mapped to a
ahfile isisreproduced
r@witheforeign
relational structure,
hierarchy. jde
th keys to map the links between the different levels of
a
(desktop. u s
9. r
Clean upethe
jd
a.A Close the XML Browser (Firefox).
m i r
l a di b. Close the Geographic Information model tab.
V c. Close ODI Studio.
This completes Practice 6-1. This completes the practices for Lesson 6.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ra ns
Practices o
for
n -tLesson 7:
a n ODI Models and
Organizing
h a s ideฺ
Creating
) GuODI Datastores
ฺ c omChapter
e nt7
h o
o Stu d
a
y his
e r @ e t
j d u s
e r (a
A jd
m i r
l a di
V
Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores
Chapter 7 - Page 1
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.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2017, Oracle and/or its affiliatesฺ
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores
Chapter 7 - Page 2
Practice 7-1: Checking Data Quality in the Model
Overview
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.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2017, Oracle and/or its affiliatesฺ
Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores
Chapter 7 - Page 3
Your Tasks
1. Reset your practice environment.
a. Disconnect from the ODI repository (or just close ODI Studio).
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2017, Oracle and/or its affiliatesฺ
Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores
Chapter 7 - Page 4
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2017, Oracle and/or its affiliatesฺ
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
c. e receive a warning message, click Yes to finish saving. Close the tab.
If you
j d
r A
d i mi
Vl a
Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores
Chapter 7 - Page 5
3. Create a reference constraint between the SRC_CUSTOMER and SRC_CITY datastores in the
new model. This reference is on the CITY_ID column.
a. Expand the MYSQL_ORDERS_APPLICATION1 model, and then expand the
SRC_CUSTOMER datastore.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2017, Oracle and/or its affiliatesฺ
e to
lic ens
b. Right-click the Constraints node, and select the New Reference option. b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
c. In the Parent Model/Table sections, from the Table drop-down list, select the
SRC_CITY table. The name of the constraint is automatically generated.
Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores
Chapter 7 - Page 6
d. Click the Attributes tab.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2017, Oracle and/or its affiliatesฺ
e. Click the 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.
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m G u that the phone number contains
) tot check
4. o
Create a condition constraint on SRC_CUSTOMER
ฺc den
six or more characters.
o o tuSRC_CUSTOMER, right-click, and select the New
h againSfor
a. Select the Constraints
y anode s
r
Condition option.
e @ e thi
( a jd u s
j d er
m ir A
l a di
V
Note: You can also use the Expression Editor icon to graphically edit the
expression.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.
Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores
Chapter 7 - Page 7
c. Click the Validation icon to validate your expression syntax.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2017, Oracle and/or its affiliatesฺ
d. On the Oracle Data Integration Information screen, click OK. Click Save to add the
condition, and then close the tab.
e to
lic ens
b l e
f e ra
tra ns
n -
5. no model.
Run a static check on the MySQL_Orders_Application1
a
a s and d ฺ the Control tab.
eclick
a. Open the MySQL_Orders_Application1 h model
) t Gu i
o m
o o ฺc den
y ah is Stu
j d er@ se th
r ( a u
A jde
m ir
l a di
V
Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores
Chapter 7 - Page 8
b. Select the knowledge module CKM SQL.HandsOnLoads. Click Save. Close the
MySQL Orders Application1 model tab.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2017, Oracle and/or its affiliatesฺ
e to
lic ens
6. Run a check against the model.
b l e
a. Select the MySQL_Orders_Application1 model in the tree view, right-click, and
f e ra
select Control > Check.
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores
Chapter 7 - Page 9
b. In the Run dialog box, select Development context and then click OK.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2017, Oracle and/or its affiliatesฺ
to
c. Click OK when the Information dialog box notifies you that the session has started. en
se
e l ic
r a bl
n s fe
n - tra
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores
Chapter 7 - Page 10
7. Click the Operator tab . (If there is no Operator tab, go to the main menu, F10 >
Window > ODI Operator Navigator.) The Operator window appears. Expand Session List
> All Executions. Expand the MySQL_Orders_Application1 session. The session
should appear complete, containing steps marked with check marks and warnings, as
shown below.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2017, Oracle and/or its affiliatesฺ
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Note: You can optionally review the content of this session and see the different SQL
commands issued to perform the check operations.
Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores
Chapter 7 - Page 11
8. Review the errors detected in the SRC_CUSTOMER datastore.
a. Click the Designer tab. On the Models bar, expand MySQL_Orders_Application1
model, select the SRC_CUSTOMER datastore, right-click, and select Control > Errors.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2017, Oracle and/or its affiliatesฺ
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores
Chapter 7 - Page 12
b. View the table that lists the errors detected in your table. You have one join error and
five invalid phone numbers. Each line also contains the contents of the invalid record.
Scroll all the way to the right to examine the extra columns in this error report.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2017, Oracle and/or its affiliatesฺ
e to
lic ens
9. Clean up the desktop.
b l e
a. Close the Errors tab.
f e ra
b. Close ODI Studio.
ans
n -tr
This completes Practice 7-1. This completes the practices for Lesson 7.
o
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores
Chapter 7 - Page 13
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2017, Oracle and/or its affiliatesฺ
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Practices for Lesson 7: Organizing ODI Models and Creating ODI Datastores
Chapter 7 - Page 14
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2017, Oracle and/or its affiliatesฺ
e to
lic ens
b l e
f e ra
ra ns
Practices o
for
n -tLesson 8: ODI
Mappinga nConcepts
a uide s ฺ
) h 8G
c o mChaptern t
o o ฺ d e
ah is S t u
y
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
These mappings will then be used for the development of his integration project.
Background
After the models are defined and the quality of the data is verified, you need to create an ODI
mapping to perform transformations. In this practice, you create simple mappings with one
target table and a single source. You will run these mappings and check the execution.
In this practice, you create three mappings. First, you create a mapping called MAP_8-1,
loading the TRG_COUNTRY datastore in the Oracle Sales Application model with the content of
e to
the SRC_REGION table from the MySQL Orders Application model. This simple mapping has no
transformations. lic ens
The second mapping, MAP_8-2, is a duplicate of MAP_8-1, to which flow control is activated b l e
and constraints in the target table are checked. f e ra
ans
o n -tr
The third mapping, MAP_8-3, loads the TRG_COUNTRY datastore in the Oracle Sales
Application model with the content of the SRC_CITY table from the MySQL Orders Application
a n
model. In this mapping, flow control is activated, constraints in the target table are checked, and
a s ideฺ
city population values are transformed from individual to times 1,000.
h
m ) t Gu
Note: Completing this practice is critical for other practice sessions.
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
to
c. Click the Logical tab. Arrange the panels so that you can see the Properties MAP_8-1 e n se
panel and fields. You may want to not view the thumbnails at this time.
e l ic
r a bl
n s fe
n - tra
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
f.
A de may be multiple
jThere regions per country. If you mapped SRC_REGIONS directly to
h. An Attribute Matching dialog box appears each time you connect to the Distinct
component. Click OK each time. Now the system automatically maps attributes by
name in the source and target datastores.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
then
The grey (filled) arrows indicate which fields auto-mapped, whereas the white (hollow)
arrows indicate which did not automap. (Later you will see yellow arrows.) You may
need to drag the bottom frame handle of the DISTINCT down to see all of the fields.
e to
lic ens
b l e
f e ra
ans
o n -tr
And also delete DISTINCT.REGION. You should be left with this:
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
l. Click Save to save your mapping. If the Locking Object window appears, select “Don’t
show this window next time,” and click Yes.
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
@ e th
erExecution
b. Click OK injdthe s window, and then click OK when the Session Started
( a u
j d er
message appears.
A
d imir
Vla
c. Click the Operator tab to open the ODI Operator Navigator. The Operator window
appears.
Note: You may need to click the Refresh button to view the new session.
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
The warning about Drop work table m ) t Gignored.
can be safely
u
o
c Logical
ฺthe e ntab. Right-click TRG_COUNTRY, and then
o
e. In your mapping window, click
o d
select Data. y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
tra ns
n -
a no
Verify your data and close this window. ClosesMAP_8-1etab.
a d ฺ If the Unlocking Object
window appears, select the “Don’t show) h
this u
window inext time” check box and click
m G
Yes.
o ฺ co dent
a h o Stu
@ y his
d e r e t
( a j u s
e r
r Ajd
d i mi
Vl a
a. Click the Designer tab. Expand the Projects bar, the HandsOnLoads project, and the
HandsOn folder. Expand the Mappings node and select MAP_8-1. Right-click and
select Duplicate Selection, and then click Yes in the confirmation box. A copy of your
mapping appears.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
c. Click Perform Layout a
to realign the view
h i d eฺ zone.
sof the modeling
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
e to
ens
e. Confirm the Delete by clicking Yes.
lic
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m
f. Select and delete the connector from ) t Guto DISTINCT. Deselect “Preserve
SRC_REGION
downstream expressions.” o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
ans
h. -tr
Connect everything together for the proper flow.
o n
n
1) Connect the right side of SRC_REGION to the left side of DISTINCT. Click OK to
a
h a s ideฺ
accept the default Attribute matching.
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
3)
jd eIt should now look like this:
i r A
di m
V l a
The grey arrows indicate which fields auto-mapped, whereas the white arrows indicate
which did not automap.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Note that in the Properties section Options list, the FLOW_CONTROL is set to True.
k. Scroll down to verify in Physical > Check Knowledge Module that the selected Check
Knowledge Module is CKM Oracle.
e to
lic ens
b l e
m. Click Save to save your mapping. f e ra
ans
a. Click Run. o n -tr
5. Run this mapping, and check the contents of the TRG_REGION table.
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
b. Click OK in the Execution window, and then click OK when the Session Started
message appears.
Note: Do not let the name MAP_8-1_DS bother you, that is okay, it really is MAP_8-2.
If it does bother you, you could have changed it on the Physical tab.
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
(
d. In ther Mapping
u click the Logical tab. Select the TRG_REGION target datastore
a window,
A de the name of the datastore), right-click, and select Data. A window appears with
j(click
d imir the loaded data.
Vla
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
6. Create a mapping called MAP_8-3 that o
ฺc loadsdthee nTRG_CITY datastore in the Oracle Sales
o o of thetu
ah control
Application model with the contents
Application model. Ensureythat flowis
S SRC_CITY table from the MySQL Orders
is activated and all constraints in the target table
are checked. You need
j d er@to transform
s e th the city population values because the target table unit
is “thousands
r ( u whereas the source table unit is “inhabitants.”
aof inhabitants,”
e open, click the Designer tab, and click the Projects bar. Expand HandsOnLoads
a. jIfdnot
A
ir > HandsOn folder. Right-click the Mappings node and select New Mapping.
di m
V l a
c. Click the Logical tab. Open the Designer > Models > Oracle Sales Application
model. Drag the TRG_CITY datastore from the tree view to the model zone. The
datastore appears in this zone.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
e. Connect SRC_CITY to TRG_CITY. (Because they are
a nothe same number, names, and
h a s ideฺ
types of columns, you do not need a Distinct component.)
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
(
Note:r All u are grey, none of the arrows are white, and all fields mapped
aof the arrows
de though the column order was different.
Ajeven
i m irg. Select the POPULATION column in the target TRG_CITY datastore.
Vl ad
e to
lic ens
b l e
f e ra
tra ns
n -
a no
i. a
To verify the mapping (and the transformation
h i d eฺ click Validate the Mapping
sexpression),
m ) t Gu
. Close the Validation Results window.
o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a u
Ajde
i m ir
d
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc and dthen
e n
o o
b. Click OK in the Execution window,
tu click OK when the “Session started”
message appears. yah S
r @ t h is
( a jde use
j d er
A
d imir
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
d. e look at some of the “Drop xxxx table” warnings, they are present because the
jIfdyou
A
ir temporary work table was not there to be dropped, because by default ODI cleaned up
di m after itself in the past before this particular run. There are numerous ways of dealing
V l a with this warning, all of which are optional. These messages can be safely ignored.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
f. Verify the data, and then close the Data: TRG_CITY tab.
Note: The POPULATION column should show thousands of inhabitants.
8. Clean up the desktop by closing ODI Studio.
This completes Practice 8-1. This completes the practices for Lesson 8.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ra ns
Practices o
for
n -tLesson 9:
a
Designingn Mappings
a uide s ฺ
) h 9G
c o mChaptern t
o o ฺ d e
ah is S t u
y
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Background
In the previous practices, you created simple ODI mappings.
In this practice, you create a more complex mapping with several sources to load the
TRG_CUSTOMER datastore in the Oracle Sales Application model with the contents of
SRC_CUSTOMER table and the SRC_SALES_PERSON files from different models. You apply
filtering to retrieve only customers with CUST_ID < 105. In addition, you populate the update
e to
date (UPD_DATE) column with the system date in the mapping implementation field.
Note: Completing this practice is critical for all the following practice sessions. lic ens
Create mapping MAP_9-1 b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
Your Tasks
di m
1. Reset your practice environment.
V l a a. Disconnect from the ODI repository (or just close ODI Studio).
b. In the Terminal window, execute the following reset commands:
When prompted, verify that you disconnected from the ODI repository, and then press
Enter. Wait until this script completely executes.
[oracle@hostname ~]$ cd ~/labs
[oracle@hostname labs]$ ./reset09.sh
Note: This process may take one minute or more to complete.
c. Restart ODI Studio.
d. Connect to Repository using the same wallet password of Welcome1 as you have in
the past.
e. Log in using the same Name: DEV_ODI_REPO and User: SUPERVISOR as you have in
the past.
e to
lic ens
b l e
f e ra
ans
b. -tr
Make sure the Properties panel is visible at the same time as the Logical model zone.
o n
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
d. In the Design navigator Models bar, expand the FLAT_FILE_SRC
t r a nsofmodel. Drag the
on-
SRC_SALES_PERSON datastore to the left side of the model zone your diagram.
n
a eฺ
h a s id
) u
ฺ c om ent G
h o o tud
@ ya his S
j d er se t
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺcbar, expand
e nthe MySQL Orders Application model
o
f. In the Design navigator Models
o d
and drag the SRC_CUSTOMER
y s Stu to the model zone of your diagram, under the
ah idatastore
SRC_SALES_PERSON
e r @ datastore.
e t h Your diagram should resemble the following:
( a jd u s
j d er
A
d imir
Vla
e to
lic ens
h. In the diagram, drag the CUSTID column from the SRC_CUSTOMER source to the
b l e
workbench (the white background). A Filter component appears for the CUSTID
f e ra
column.
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Note: Ensure that the Active check box is selected for the CUST_ID column of the
target datastore.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
motion, you will not have any trouble. But if you select LAST_NAME, release the mouse
button, and then try to drag, you will find that the Expression field has changed. You
may find it easier to use the Expression Advanced Editor (to the right of the
Expression field, the gear icon is only displayed if you move the cursor near it). Or you
can freeze the contents of the CUST_NAME tab by right-clicking it.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Note: Ensure that the Active check box is selected for the CUST_NAME column of the
target datastore.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Note: In ODI Operator Navigator, you may need to click the Refresh icon .
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h i d eฺ columns got updated.
Scroll right and make sure the CRE_DATE andsSALES_PERS
a
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a u
e
ird. Ajd
i m Close this data window, and then close your mapping.
Vl ad This completes Practice 9-1. Continue on with Practice 9-2.
Background
In the previous practices, you created a mapping with several sources to load the
TRG_CUSTOMER datastore in the Oracle Sales Application model with the content of the
SRC_CUSTOMER table and the SRC_SALES_PERSON files from different models. Now, you
implement the lookup to load data in the target according to the age range provided in the
lookup table.
Note: Completing this practice is critical for all the following practice sessions.
e to
Your Tasks lic ens
1. Create an ODI mapping with a new lookup. b l e
a. In the Designer, duplicate mapping MAP_9-1. f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
c. On the Logical tab, click Perform Layout
o n -tr to arrange the datastores in the diagram.
a n
Drag a Lookup
s ideฺ
component to the diagram.
h a
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a u
e
r Ajd
d i mi
Vl a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
A
e.
de Designer > Models > FLAT_FILE_SRC, drag the SRC_AGE_GROUP datastore to
jFrom
m ir
l a di the diagram.
V
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
OUTPUT1 = JOIN_INPUT2
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
h. Still on LOOKUP - Properties, click the Match Row Rules tab, and change Multiple
Match Rows to Error:mulitple rows will cause mapping fail.
e to
lic ens
b l e
f e ra
j. Click Perform Layout a ns to this:
, the mapping may now look more similar
t r
n on-
s a eฺ
) h a u id
ฺ c om ent G
h o o tud
@ ya his S
j d er se t
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
A
p. dethe Designer Projects tab, select MAP_9-2, and then click the
jOn icon to execute
m ir your mapping. Select the Simulation check box, and then click OK.
l a di
V
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o u
h view theStlookup
2. Run the MAP_9-2 mapping y aand i s data.
@
erto runsyour t h
e mapping . Click OK. Click OK again.
( a d
a. Click Run jagain
u
j d er Do not select the Simulation check box.
Note:
m i rA
di
Vla
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
c. Double-click j d er@
step e thperforms a lookup operation on the source flat file
140,swhich
r ( a
SRC_AGE_GROUP u data), and then click the Code tab. View the code on the
(Load
A de and on the target.
jsource
d imir
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e. Clean up the desktop by closing ODI Studio.
This completes Practice 9-2. This completes the practices for Lesson 9.
e to
lic ens
b l e
f e ra
ra ns
Practices o
for
n -tLesson 10:
a
Mappings:n Monitoring and
h a s ideฺ
Troubleshooting
) Gu
ฺ c omChapter
e nt10
h o
o Stu d
a
y his
e r @ e t
j d u s
e r (a
A jd
m i r
l a di
V
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Background
In the previous practices, you learned how to create ODI Mappings, which transform data from
one or more relational tables in the source to a relational table in the target.
In this practice, you create from scratch an ODI project and a mapping to export data from a flat
file to a relational table, execute and monitor the Mapping with ODI, and check data quality.
Note: Completing this practice is critical for all the following practice sessions. e to
In this practice, you perform the following 10 steps:
lic ens
1. In Topology Navigator, define the
b l e
FILE_GENERIC./home/oracle/labs/files/my_flat_files physical schema.
f e ra
2. In Topology Navigator, define the FLAT_FILES_SRC logical schema.
tra ns
3. In Designer Navigator, create the Export-FF-RT project.
o n -
4. In Designer Navigator, create the Flat_File_1 source a nmodel.
a. Create the SRC_SALES_PERSON datastore. h a s ideฺ
m ) t Gu
b. Point to the resource: o
ฺc den
o o tu
/home/oracle/labs/files/my_flat_files/SRC_SALES_PERSON.TXT.
h the S
c. Reverse-engineer and y aformat s data (fixed length positions, data types).
5. r
In SQL Developer,ecreate@ theeRDBMS
t hi schema ODI_STAGE to host the ODI target
datastore. (aj
d u s
d r
eDeveloper,
6. j
In SQL
A create the TRG_SALES_PERSON table to serve as the ODI datastore for
that no context has been specified for this schema, click OK. Close the editing window
for your new physical schema.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
d. Open Logical Architecture, navigate to Technologies > File, right-click File, and
f e ra
select New Logical Schema.
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
f. Verify that your new Logical schema was added under the File node in the
Technologies tree view.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
a d i3.m Create the new project in ODI.
Vl a. Open the Designer tab and then click Projects. In the window that opens, click New
Project and then select New Project to add a new project.
A Name
mir
Flat_File_1
d i
Vla Technology File
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
5. Create a new ODI source datastore.
i r A
a. Right-click the newly created Flat_File_1 model, and then select New Datastore.
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
er@Setse
c. Click the Files tab.
j d
h Format to Fixed, and then click the Attributes tab.
thetFile
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m f. After the columns are marked, click each column data to select a column, and then set
V l a the name and data type for each column in the Definition panel to the right, as shown
in the following screens. For the names and data types of each column, refer to this
table. Click OK when you have finished.
Column Name Data type
C1 SALES_PERSON_ID numeric
C2 FIRST_NAME string
C3 LAST_NAME string
C4 DATE_HIRED string
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
A de OK when you have finished.
jClick
m irg. The columns should look like the following. Click Save to save the model. If the
l a di Unlocking Object window appears, select the check box and click OK. Expand
V Flat_File_1 > SRC_SALES_PERSON > Attributes and view the newly created
columns.
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
d e r@model,e right-click
h. In the Flat_File_1 th the SRC_SALES_PERSON datastore, and then
j s
u all tabs as shown next.
a Data. Close
select View
(
r
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
tra ns
n -
6. You must create a schema to host the ODI target datastore.
a noTo create a new RDBMS
schema for the ODI datastore, perform the following
h a s ideฺ
steps:
a. Open the Oracle SQL Developer window
m ) (or u / as sysdba). You will
sqlplus
G
create the schema by executing the
o ฺ coidentified
d e ntSQLbycommands:
following
create user <MY_SCHEMA>
h o t u <MY_PASSWD>
S temporary tablespace <MY_TEMP>;
default tablespace
@ ya <MY_TBS>
h i s
econnection
Note: If it is not
d t
ralreadyestarted, you need to start SQL Developer and open the
a
Administrator
( j u s (Username: system, Password: Welcome1). Refer to
j d er 2-1.
Practice
b. Grant connect privileges to the newly created user account by executing the following
SQL command: e to
grant connect, resource, create trigger, create view, unlimited
lic ens
tablespace to ODI_STAGE;
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r
7. Now you need ( ato create aunew ODI datastore for the target model. This datastore will be
de the ODI Mapping. To create a new ODI target datastore, perform the following
used jwithin
A
r
dimisteps:
Vla
a. In SQL Developer, create a new connection called ODI_STAGE. Enter the username as
ODI_STAGE with the password ODI_STAGE. For SID, enter orcl. Click Test to verify
the connection. Click Save and then click Connect.
FIRST_NAME VARCHAR2(80),
LAST_NAME VARCHAR2(80),
DATE_HIRED VARCHAR2(80),
DATE_UPDATED DATE NOT NULL,
constraint TRG_SALES_PERSON_PK primary key (SALES_PERSON_ID)
)
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
a. In ODI, open ODI Topology Navigator and then select the Physical Architecture bar.
Click the icon on the end, and select Hide Unused Technologies (this cleans up the
display).
e to
lic ens
b l e
f e ra
tra ns
n -
a no
a
b. Expand Technologies, right-click Oracle,hand eฺ Data Server.
s selectidNew
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
Name ODI_STAGE
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2017, Oracle and/or its affiliatesฺ
User ODI_STAGE
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
d. Click fore
d r@Driver.
JDBC e thSelect Oracle JDBC Driver. Click OK. Click for JDBC
( j u s
a jdbc:oracle:thin:@<host>:<port>:<sid>,
Url, select and then click OK. Edit the URL
r
e jdbc:oracle:thin:@localhost:1521:orcl for Oracle Database.
Ajtodread:
i m ir
d
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m e. Click Test Connection. In the window that opens, click Yes to save your data. In the
V l a Information window, click OK. Click Test to verify a successful connection. Click OK.
e to
lic ens
b l e
f e ra
tra ns
n -
a no
a s idtabeand ฺ
h. In Topology Navigator, open the Logical h u Logical Schema.
Architecture
) selectt G expand Technologies.
co den
Right-click Oracle technology and m
then New
o ฺ
o Stu
a h
y his
e r @ e t
( a j d u s
r
A jde
d imir
Vla
9. Create a new ODI target model that will be used within your ODI Mapping. To create a new
ODI target model, perform the following steps:
a. Open ODI Designer. Click the Models bar and select New Model. On the panel that e to
appears, enter the Definition values provided in the following table. Click the Reverse
lic ens
Engineer tab (make sure it is the tab, not the button).
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
( a
Parameter
r u Value
e
r AjdName Oracle_RDBMS1
d i mi Technology Oracle
Vl a
Logical Schema ODI_STAGE
e to
b. On the Reverse Engineer tab, ensure that Context is set to Development. Click Savens
and then close the Oracle_RDBMS1 tab. l ic e
bl e
fe r a
n s
n - tra
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a u
Ajde
i m ir
d
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
l ic ens
b. e
l OK.
On the screen that follows, enter the mapping name as MAP-EXP-FF-RT.bClick
fe r a
n s
n - tra
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a u
Ajde
i m ir
d
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
er@ secolumn
f. Select the FIRST_NAME
j d th in Target Datastore and edit the mapping to read:
r ( a u
LTRIM(SRC.FIRST_NAME). This function removes left spaces in the FIRST_NAME
jd e
column. In Execute on Hint, select Staging. Repeat this step for columns LAST_NAME
A
d imir and DATE_HIRED. Refer to the mapping implementation provided in the following
table.
Vla Column Mapping implementation
e to
lic ens
b l e
f e ra
tra ns
n -
a no
Click Save.
h a s ideฺ
) ttoGa urelational table target. The
g. For this mapping, you export a flat file directly
m
o
knowledge modules required forcthis mapping n are LKM File to SQL and IKM SQL
ฺthe KMs,dclick
e
o o
ah is Stuproject, expand the Knowledge Modules folder.
Incremental Update. To import the Designer Navigator’s Projects tab in
the left panel. In the y
Export-FF-RT
j d er@(LKM)
Right-click Loading
s e h select Import Knowledge Modules.
tand
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
l. To test your mapping, click Execute . The following screen appears. Retain the
defaults and click OK. On the Information screen, click OK.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
n.
A de
jclose
Double-click step 50. View the number of rows inserted into the target table (16).Then
l a di
V
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
The Attribute Matchings (grey arrows) should be preserved in TRG_SALES_PERSON as
shown below:
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o tu
y ahedit the
b. In the Expression Editor, i s S
expression to read:
e r @ e t h Click OK.
(a j d
INITCAP(LTRIM(SRC.FIRST_NAME)).
u s
e r
A jd
mi r
d i
Vla
c. Repeat the previous step for the column LAST_NAME. Your result is shown in the
following screenshot. Click the Logical tab and Save your mapping .
a. In Designer, execute your mapping . In the Execution dialog box, click OK. In the
Information dialog box, click OK.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2017, Oracle and/or its affiliatesฺ
b. Open ODI Operator and verify that the mapping executed successfully. Open step 110 e to
– Insert flow into I$ table. Click the Code tab, and view your modifications.
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
14. Clean up the desktop by closing ODI Studio.
o n -tr
This completes Practice 10-1. This completes the practices for Lesson 10.
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ra ns
Practices o
for
n -tLesson 11:
a
Designingn Mappings:
h a s ideฺ
Advanced
) Gu Topics 1
ฺ c omChapter
e nt11
h o
o Stu d
a
y his
e r @ e t
j d u s
e r (a
A jd
m i r
l a di
V
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Background
In this practice, you first use ODI to define the procedure Create_ORCL_SEQ_FAM_ID. You
then execute this procedure, which creates the sequence SEQ_FAMILY_ID in the RDBMS.
Next, you use ODI to create an ODI definition of the native sequence that you just created in the
RDBMS, using the same name, SEQ_FAMILY_ID.
Finally, you create and execute the mapping MAP_11-1 to load the TRG_PROD_FAMILY target e to
table by using the new native sequence to generate ID numbers for that table.
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o tu
y ah is critical
Note: Completing this practice s S
i for all the following practice sessions.
e r @ t h
Your Tasks (ajd u se
1. Resetjd er practice environment.
your
m i ra.A Disconnect from the ODI repository (or just close ODI Studio).
Vl adi b. In the Terminal window, execute the following reset commands:
When prompted, verify that you disconnected from the ODI repository, and then press
Enter. Wait until this script completely executes.
[oracle@hostname ~]$ cd ~/labs
[oracle@hostname labs]$ ./reset11.sh
Note: This process may take one minute or more to complete.
c. Restart ODI Studio.
d. Connect to Repository using the same wallet password of Welcome1 as you have in
the past.
e. Log in using the same Name: DEV_ODI_REPO and User: SUPERVISOR as you have in
the past.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
li cens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o tu
ah in ODI.
3. Create a new Native Sequence
y s S
a. Open Designer.rClick
e t hi tab and expand HandsOnLoads > HandsOn. Right-
@ thee Projects
a jd and
click Sequences,
( u sthen select New Sequence.
j d er
m i rA
di
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
) table
4. Create a new mapping to load the Product Family
m G uby using the Native Sequence.
o t
ฺc de>nHandsOn, right-click Mappings, and select
a. In Designer > Projects > HandsOnLoads
o o
a is Stu name, MAP_11-1. Click OK.
New Mapping. Enter thehnew mapping
y
j d er@ se th
r ( a u
A jde
r
dimi
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m G u
) to Distinct.
o
c. Drag FAMILY_NAME from SRC_PRODUCT
ฺc den t
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
That causes a connection from SRC_PRODUCT to Distinct.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
A jde
m ir You should now have grey arrows on FAMILY_NAME.
l a di
V
e to
lic ens
b l e
f e ra
f. Expand ODI Objects > Project Sequences > SEQ_FAMILY_ID, and then drag
ans
NEXTVAL to the Expression area. Click OK.
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
5. Execute the newly created mapping and verify the data in the target table.
a. Execute mapping MAP_11-1 by clicking the Execute button . The Execution screen
appears. Retain the defaults and click OK. On the Information screen, click OK, and
then verify execution in the Operator tab.
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
) t Gu and then select View Data.
b. In Designer > Models, right-click TRG_PROD_FAMILY,
m
o ฺ co Close
Verify the data inserted in the table.
d e n Data window and MAP_11-1 tab.
the
a h o Stu
@ y his
d e r e t
( a j u s
r
A jde
d imir
Vla
Now, John needs to load the target product table by using the source product table and the
lookup against the table, which contains the ID numbers generated by the newly created
mapping with the native sequence. John also needs to create a temporary index on the source
tables to implement the join on the source.
Background
In the previous practice, TRG_PROD_FAMILY was a target table. In this practice,
TRG_PROD_FAMILY serves as one of the source tables.
e to
First, you create a new ODI mapping, MAP_11-2, to load data into the TRG_PRODUCT target ns
datastore table in the Oracle Sales Application model. You specify the source tables as lic
e
SRC_PRODUCT from the MySQL Orders Application model and TRG_PROD_FAMILY
a b le the
from
Oracle Sales Application model.
s f er
TRG_PROD_FAMILY will be used as a lookup table to obtain the ID number
- t r an generated by the
previous lesson’s mapping that used a sequence to populate the
n onID number.
a eฺ and TRG_PROD_FAMILY on
For the lookup, you create a temporary index to join SRC_PRODUCT
s
their FAMILY_NAME column.
) h a u id
ฺ c m code,
Finally, you execute the mapping, view theosource
e n tGand examine the inserted rows in the
TRG_PRODUCT target datastore.
h o
o Stu d
a
y his
e r @ e t
( a j d u s
r
A jde
i m ir
Vl ad
Note: Completing this practice is critical for all the following practice sessions.
to
b. In the Models tab, expand the Oracle Sales Application and MySQL Orders Application e n se
models. Drag the TRG_PRODUCT datastore from the Oracle Sales Application model
e l ic to
the right in the mapping area. Drag the TRG_PROD_FAMILY datastore from
r a blthe Oracle
s fe datastore
Sales Application to the left in the mapping area. Drag the SRC_PRODUCT
n
n - ra area, as shown in
from the MySQL Orders Application model to the left in thetmapping
the following screenshot. Drag a Join component to the
n o middle of the mapping area.
s a eฺ
) h a u id
ฺ c om ent G
h o o tud
@ ya his S
j d er se t
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
o n -
a n
h a i d eฺ Type, set it to
s > Integration
d. Select TRG_PRODUCT, and in Properties > Target
Incremental Update.
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
d e r@ e th
( a
c. Double-clickj u sstep, “60 - Create Temp. Indexes On Work”. In the Session
the fourth
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m) Sales G u
e. In Designer Navigator > Modelsc>o
ฺ Oracle
e n t Application, right-click TRG_PRODUCT,
and then select View Datao
h o d
to view theu15 inserted rows. Close the Data window and
t
the tabs. y a s S
e r @ e thi
( a jd u s
r
Ajde
i m ir
d
Vla
John creates a mapping with multiple datastores to add in a bulk feed of customer data from
another system.
Background
In this practice, you add a new set to a mapping. Building upon the mapping MAP_9-2 you
created in Lesson 9, you will add a bulk feed of customer data from another system by adding a
unioned datastore.
First, you make a copy of mapping MAP_9-2, naming the copy MAP_11-3.
e to
Now, you create a new set, which is the union of source and target bulk customers’ datastore
from the Oracle Sales Application model. lic ens
b l e
You specify the UNION operator to unite this new source of data with the other join and lookup
that you specified in MAP_9-2. f e ra
ans
data set with the UNION operator. o n -tr
Next, you perform an execution simulation to preview the code that will be used for this new
a n
h a s ideฺ
Finally, you execute the mapping and verify the rows inserted into the target table.
) t Gu
Note: Completing this practice is critical for all the following practice sessions.
m
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a
e to
lic ens
b l e
f e ra
c. Select the arrow between Join and TRG_CUSTOMER, and delete it. Preserve ans
downstream expressions.
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
d. Connect TRG_BULK_CUSTOMER to the left (Input1) of SET. Accept the defaults on f e ra
ans
Attribute Matching.
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
e.
n -tr
Connect the right of Join to the left (Input2) of SET. On Attribute Matching, deselect
Create Attributes on Target (otherwise you end up with “misnamed” columns).
o
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
f.
n -tr
One at a time, look at the columns in Oracle Sales TRG_CUSTOMER that correspond to
the yellow arrows from SET, and copy and paste the expression from TRG_CUSTOMER
o
into SET. a n
a s ideฺ
(This is a long task, in five steps.)
h
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc INPUT2
e nexpression.
o o
and paste into the SET CUST_ID d
y ah is Stu
j d er@ se th
r ( a u
Ajde
i m ir
d
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc INPUT2
e nexpression.
o o
and paste into the SET CRE_DATE d
y ah is Stu
j d er@ se th
r ( a u
Ajde
i m ir
d
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc INPUT2
e nexpression.
o o
and paste into the SET UPD_DATE d
y ah is Stu
j d er@ se th
r ( a u
Ajde
i m ir
d
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc do e n select the Simulation check box) and
2. Execute mapping MAP_11-3 (but o o d
ah is Stu
this time not
y
verify the execution results.
a. Execute mapping
j d er@ e
MAP_11-3.
s
th
r ( a u
A jde
i m ir
Vl ad
e to
lic ens
b l e
f e ra
tra ns
o n -
a n
3. Clean up the desktop by closing ODI Studio.
h a s ideฺ
) practices
This completes Practice 11-3. This completes the
m G ufor Lesson 11.
o
ฺc den t
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
i m ir
Vl ad
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ra ns
Practices o
for
n -tLesson 12:
a
Designingn Mappings:
h a s ideฺ
Advanced
) Gu Topics 2
ฺ c omChapter
e nt12
h o
o Stu d
a
y his
e r @ e t
j d u s
e r (a
A jd
m i r
l a di
V
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Background
In this practice, you perform the following steps:
1. Create a reusable mapping, REU_12-1.
e to
ens
• Use datastores SRC_ORDERS and SRC_ORDER_LINES from the MySQL_SRC model,
joined on ORDER_ID.
lic
• Use SRC_CUSTOMER as a lookup table. b l e
• Create a temporary target table. f e ra
tra
• Aggregate some of its columns by using the MIN, MAX, and AVG functions.
ns
n -
2. Create mapping MAP_12-1.
a no
• Use the reusable mapping REU_12-1 as a a
h s ideฺ
source.
• Use the datastore TRG_SALES as the
m ) t Gu
target.
Execute MAP_12-1 and examineo
o n into TRG_SALES.
ฺcrows inserted
e
3.
o the d
y ah is Stu
j d er@ se th
r ( a u
A jde
m ir
l a di
V
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
BUG: While you would normally want to select Multiple Match Rows=Error as shown
b l e
above, just checking for it will cause it to fail. The work-around is to select Multiple
f e ra
Match Rows=All Rows as shown in the following screenshot:
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Right-click the connector line from Lookup to AGGREGATE, and click Redo Attribute
Matching.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
) thet G
g. Select the following fields together by using Ctrlukey: LORDER_ID, ORDER_ID_1,
o m
c den CITY_ID, PHONE, AGE, and
o ฺ
STATUS, CUSTID, DEAR, FIRST_NAME,
o Delete
ADDRESS,
SALES_PERS_ID. Press the
a h S u Confirm by clicking Yes.
tkey.
@ y his
d e r e t
( a j u s
r
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
-tr a
n o n
a
s ideฺ
h a
) t Gu
o m
o o ฺc den
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) created
3. Create a new mapping, which uses the newly
G u
temporary mapping as a source.
o
c adnew
a. In the HandsOnLoads project,ฺcreate e t
nODI mapping, MAP_12-1, as shown here.
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
i m ir
Vl ad
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
The Properties tab may jump from FIRST_ORD_ID to FIRST_ORDER_ID. You may
need to freeze the FIRST_ORD_ID tab to make the drag-and-drop easier. Make sure
that the proper source ended up in the proper target.
FIRST_ORD_DATE FIRST_ORDER_DATE
LAST_ORD_ID LAST_ORDER_ID
LAST_ORD_DATE LAST_ORDER_DATE
AMOUNT SUM_AMOUNT
PROD_AVG_PRICE AVG_AMOUNT
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Background
After the mapping is created and tested, you may need to create a new knowledge module to
use with the mapping.
In this practice, you duplicate an existing knowledge module, IKM SQL Incremental Update,
naming the new knowledge module IKM Oracle UI - Audit. You add two commands to the
knowledge module, “Create Audit Table” and “Insert Audit Records,” by using command syntax
provided in text files.
e to
Next, you duplicate an existing mapping, MAP-Exp-FF-RT, naming the new mapping MAP-
EXP-FF-RT-AUDIT. You change the new mapping’s IKM selection to use the new knowledge lic ens
module that you just created, IKM Oracle UI - Audit. b l e
Finally, you execute mapping MAP-EXP-FF-RT and examine the audit records inserted into the f e ra
audit table created by your knowledge module.
tra ns
n -
Your Tasks a no
a
1. Create the new knowledge module with new functionality
ฺ an audit table and insert
s idtoecreate
audit records.
h
) t Gu
o m
a. If necessary, restart ODI Studio.
o o ฺc den
b. If necessary, connect toa S tu using the same wallet password of Welcome1
hthe Repository
as you have in the
y
@past.e thi s
e r
c. Log in using
( a jdthe same
u sName: DEV_ODI_REPO and User: SUPERVISOR as you have in
r
theepast.
d
j
m i rA
Vl adi
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
f. On the Tasks screen, review the commands in the current KM. n
a s Insert new rows
Select
t r
and then click the Add on-
icon to add the new command.
n
s a eฺ
) h a u id
ฺ c om ent G
h o o tud
@ ya his S
j d er se t
r ( a u
Ajde
i m ir
d
Vla
(
<%=odiRef.getColList("", "[COL_NAME]\t[DEST_CRE_DT]NULL",
",\n\t", "", "PK")%>,
AUDIT_DATE DATE,
AUDIT_INDICATOR VARCHAR2(1)
)
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
Similarly, create the command that inserts audit records in the audit table, as shown in
a no
the screen. Name this command Insert Audit Records. Select the Ignore Errors
a s ideฺ
check box. On the Command on Target tab, set the Technology to Oracle. Enter the
h
command provided below.
m ) t Gu
o
ฺc den
Note: You can find this command in the lab12.txt file, provided in ~/labs.
o o
y ah is Stu
Insert into <%=odiRef.getTable("L", "TARG_NAME", "A")%>_H
(
d e r@ e th
( a j u s
<%=odiRef.getColList("", "[COL_NAME]", ",\n\t", "", "PK")%>,
e r
AjdAUDIT_INDICATOR
AUDIT_DATE,
mir
a d i )
Vl select <%=odiRef.getColList("", "[COL_NAME]", ",\n\t", "",
"PK")%>,
sysdate,
IND_UPDATE
from <%=odiRef.getTable("L","INT_NAME","W")%>
Note: In these substitution methods, you use the following parameters:
GetTable:
− “L”: Local naming convention. For example, in Oracle that would be schema.table
(versus “R” for remote: schema.table@server).
− “A”: Automatic. It enables ODI to determine which physical schema to use (the Data
schema [“D”] or the Staging schema [“W”]).
getColList:
− Notice the “PK” parameter. If it is used, only the columns that are part of the primary
key are included.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m G u
) MAP-EXP-FF-RT,
2. You will create a modified copy of the o
ฺ mapping
c will need
e t to execute with your
nto duplicate the existing
newly created knowledge module.
h o o You
t u d mapping, rename
it, and then change the IKM
@ ya his S
entry to use your new IKM Oracle UI-Audit.
a. On the Projects
d e e t the mapping MAP-EXP-FF-RT and select Duplicate
rtab, right-click
j s
a Click Yesuon the Confirmation screen.
Selection.
(
r
A jde
m ir
l a di
V
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
li c ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
necessary, click the Refresh icon , find your new mapping session, and view the
session steps.
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2017, Oracle and/or its affiliatesฺ
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
) t Gu
41 18-FEB-14 I
42
m
18-FEB-14
o
I
50
o o ฺc den
18-FEB-14 I
ah is Stu
51 18-FEB-14 I
52 18-FEB-14 I
y
j d er@ se th
8 rows selected.
( a
SQL>r exit u
e
r Ajd
d i mi
Vl a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
4. Clean up the desktop by closing ODI Studio.
i r A
This completes Practice 12-2. This completes the practices for Lesson 12.
di m
V l a
e to
lic ens
b l e
f e ra
ra ns
Practices o
for
n -tLesson 13:
Using a n Procedures
ODI
a uide s ฺ
) h
o mChapter
n t G
13
ฺ c
o tud e
h o
@ ya his S
j d er se t
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Background
A common task that is performed by using ODI is creating and populating a relational table. This
practice walks you through the steps that are needed to create a project and a procedure that
will create and populate a relational table with data. You also execute the procedure and verify
the execution within ODI Operator.
In this practice, you use the same RDBMS schema, ODI dataserver, and ODI physical
schema—all named ODI_STAGE—that you created in Practice 10-1.
e to
You create the Procedure-CRT-TBL project and then the PRD-create-populate-table
procedure. lic ens
b l e
Next, you add commands to drop, create, and populate a table, by using the syntax provided in
f e ra
text files.
ans
records. o n -tr
Finally, you execute the procedure and verify that the table was created and populated with
a n
1. Create the Procedure-CRT-TBL project.
h a s ideฺ
2. Create the PRD-create-populate-table
m ) procedure.
G u
3. Add commands to drop, create, andฺc o an
populate e t
table.
o o d
y ah is Stu
j d er@ se th
r ( a u
A jde
m ir
l a di
V
Note: In this practice, you use the same RDBMS schema, ODI data server, and
physical schema named ODI_STAGE that you created in Practice 10-1. If you have not
performed Practice 10-1, complete Practice 10-1 to create the RDBMS schema, the
ODI source data server, and the physical schema for your new RDBMS model.
e to
lic ens
b l e
f e ra
ans
d.
n -tr
Open ODI Designer. In the Projects tab, select Procedure-CRT-TBL > First Folder.
Right-click Procedures and select New Procedure.
o
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f. Click the Tasks tab. Click Add to add a step in the procedure.
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Technology Oracle
Schema ODI_STAGE
Ignore Errors Selected
DROP table ODI_STAGE.SRC_SALES_PERSON
Notice the SQL command does not end with a semicolon.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a you thatuyou cannot see the whole command at one time, you can always
If it bothers
A de the Command Advanced Editor (the gear) to see the whole thing.
jstart
i m ir
d
Vla
) values
insert into ODI_STAGE.SRC_SALES_PERSON
m G u(22,'Mary', 'Carlin',
'1995/03/14',sysdate); o t
ฺc denvalues (30,'Paul',
o o
insert into ODI_STAGE.SRC_SALES_PERSON 'Moore',
'36467',sysdate);
y ah is Stu values (31,'Paul',
insert into ODI_STAGE.SRC_SALES_PERSON 'Edwood',
j er@ se th
'2003/03/18',sysdate);
d
insert into ODI_STAGE.SRC_SALES_PERSON
values (32,'Megan', 'Keegan',
r ( a u
'2001/05/29',sysdate);
e
Ajd
insert into ODI_STAGE.SRC_SALES_PERSON values (40,'Rodolph','Bauman',
'2000/05/29',sysdate);
a d i '37233',sysdate);
Vl insert into ODI_STAGE.SRC_SALES_PERSON
'1992/08/25',sysdate);
values (42,'Brian', 'Schmidt',
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
( a and closeuthe tab.
j. ClickrSave
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a b. Open ODI Operator. In ODI Operator, click the All Executions node, click Refresh
, find your session, and verify that your procedure executed successfully.
e to
lic ens
b l e
f e ra
tra ns
n -
4. Additionally, you create an option to delete rows from the
a notarget audit table, which you
created in Practice 12-2. To delete rows, you add
h a sa command
i d eฺthat uses the value of the
m G u the command to delete records
option in the code. If the value of this option) is set to “Y,”
will be executed. o t
ฺc den Click Add (green plus). Name this option
a. Re-open your procedure and o o u
select tOptions.
y ah and s S
set Type to Value. Add the description Delete
hi table. Set the default value of this option to Y (no
DELETE_AUDIT_RECORDS,
records from e r @ e
the Auditt
quotes). a
( jd Save.us
Click
j d er
m ir A
l a di
V
lic
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
7. Execute your procedure. In Operator, verify that the procedure executed successfully.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a
8. Open SQL Developer and expand ODI_STAGE > Tables (Filtered). Open the Audit table
TRG_SALES_PERSON_H, click the Data tab, and verify that the rows were deleted from the
Audit table.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ra ns
Practices o
for
n -tLesson 14:
Using a n Packages
ODI
a uide s ฺ
) h
o mChapter
n t G
14
ฺ c
o tud e
h o
@ ya his S
j d er se t
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Background
A common task that is performed by using ODI is creating a package that executes a number of
objects (Mappings, Procedures) in the flow. In this practice, you create an ODI procedure and
package to execute the sequence of transformations with the mappings created in the previous
practices.
In this practice, you create a procedure, DELETE_TARGET, for deleting records from the
TRG_SALES, TRG_CUSTOMER, TRG_CITY, TRG_REGION, and TRG_COUNTRY tables. Then you
e to
create and execute a package, PKG_14-1. This package runs your new procedure, and then
runs four mappings that you defined earlier in Lessons 8 and 9, which will use these same lic ens
tables as targets: b l e
f e ra
• The DELETE_TARGET procedure
ans
• Practice 8-1 mapping (Countries)
o n -tr
• Practice 8-2 mapping (Regions)
a n
• Practice 8-3 mapping (Cities)
h a s ideฺ
• Practice 9-1 mapping (Customers) m ) t Gu
o
ฺc den
Finally, you run this package and review its execution in ODI Operator.
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a
e to
lic ens
b l e
c. Click the Tasks tab, and then click Add . f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Oracle schema name that may vary depending on the context and topology. Select
Ignore Errors.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Oracle schema name that may vary depending on the context and topology. Select the
Ignore Errors check box. Select the Tasks tab.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
@ e th
erthen
g. Click Save,jd
and s the procedure tab.
close
( a u
j d er
A
d imir
Vla
• Mapping MAP_9-1
Note: These mappings were created in Practices 8-1 and 9-1.
a. In the Projects tab of the Designer Navigator, expand the HandsOnLoads >
HandsOn folder. Right-click the Packages node and select the New Package option.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
b. Enter PKG_14-1 in the Name
y s Stu
ah ifield.
j d er@ se th
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
h o o tu
d. Repeat the operationy a i s S
for thehMAP_8-1, MAP_8-2, MAP_8-3, and MAP_9-1 mappings.
e r @ looke t
( a jd
The package should
u s like the following.
r
Ajde
i m ir
d
Vla
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) G u
o
f. Similarly, edit the names of the other steps in tthe diagram, as follows:
o ฺc MAP_8-2
d e n
a h o
Rename MAP_8-1 as Countries,
S tu as Regions, MAP_8-3 as Cities, and
MAP_9-1 as Customers.
@ y his
d e r e t
( a j u s
r
A jde
d imir
Vla
g. Click the Next Step on Success icon on the Package toolbar. Click the Delete
Target Tables step. Hold the left mouse button and drag the cursor over the Countries
step and then release the mouse button. A green arrow appears between these steps.
a. Click Execute the Package to run this package. Click OK in the Run window that
appears, wait a few seconds, and then click OK in the Information panel.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
c. Close the PKG_14-1 tab.
m ) t Gu
o n 14-2.
c with Practice
This completes Practice 14-1. Continueฺon e
o o d
y ah is Stu
j d er@ se th
r ( a u
A jde
i m ir
Vl ad
TRG_CUSTOMER and to have the Delete Target step running only if DELETION_FLAG is greater
than 0.
Background
A common task that is performed by using ODI is using user functions and variables to add
more complexity to your workflows and mappings. This practice will explain how to use
variables, user functions, and the more advanced features in the packages.
1. In the HandsOnLoads project, define a user function group named Conversion,
e to
containing a user function named DearConvert.
2. Use this function in the mapping MAP_9-1 to convert the values (0, 1, 2) to (“Mr,” “Mrs,” lic ens
“Ms”). b l e
f e ra
3. In ODI Designer, create a numeric variable DELETION_FLAG that counts the number of
lines in TRG_CUSTOMER. tra ns
n -
no PKG_14-2.
4. Duplicate the PKG_14-1 package, naming the new package
a
5. Have the DELETE_TARGET procedure run only if the
h a i d eฺ
s DELETION_FLAG variable is greater
than 0. ) u
ฺ c om ent G
PKG_14-2:
h o o tud
@ ya his S
j d er se t
r ( a u
A jde
i m ir
Vl ad
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
) clickt Add
c. Click the Implementations tab, and then
m G u(green plus).
o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir d. In the Implementation window, select MySQL and Oracle from the list of Linked
Vla Technologies. Enter the following code in the Implementation syntax field. Click OK to
save this implementation. Click Save and close the DearConvert user function tab.
Note: To enter the commands, you may refer to ~/labs/lab14-2.txt.
CASE
WHEN ($1 = '0') THEN 'Mr'
WHEN ($1 = '1') THEN 'Mrs'
WHEN ($1 = '2') THEN 'Ms'
ELSE NULL END
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
d e r@ e th
2. Use this function( a j u s MAP_9-1 to convert the source DEAR column (numeric)
in the mapping
into the
d r DEAR column (string).
etarget
j
m i ra.A In the Projects tree view, expand Mappings. Double-click MAP_9-1. In
Vl adi TRG_CUSTOMER, select the Dear column.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
a d i3.m Run the MAP_9-1 mapping and review the conversion result.
Vl a. In the mapping window, click Run. In the Execution window, select Development
context, and then click OK. Click OK when the “Session started” message appears.
Close the MAP_9-1 editing tab.
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
(
c. In Designer
r u right-click TRG_CUSTOMER datastore and select View Data.
a > Models,
A de that the DEAR column was populated with “Mr” as shown in the following.
jVerify
d imir
Vla
e to
lic ens
b l e
f e ra
ans
b.
o n -tr
Enter DELETION_FLAG in the Name field, select Numeric as the Datatype, and enter
0 in the Default Value field. In the Keep History field, select All Values to enable
a n
h a s ideฺ
viewing the history of all values for this variable.
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a
c. Click the Refreshing tab. Select ORACLE_ORCL_LOCAL_SALES as the schema, and in
the Select Query field, enter the following expression. Click Save to save the variable.
Close the DELETION_FLAG variable tab.
Note: To enter commands, refer to ~/labs/lab14-2.txt.
SELECT COUNT(*) FROM <?=odiRef.getObjectName("L",
"TRG_CUSTOMER", "ORACLE_ORCL_LOCAL_SALES", "", "D") ?>
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
c. Drag the DELETION_FLAG variable from
m ) the tree
G u to the diagram again. Rename
view
this step Flag > 0? and change o
ฺc the Typen t
e to Evaluate Variable. In the Operator field,
select > as the operator,h o
and oenter in d
0tu the Value field.
@ ya his S
j d er se t
r ( a u
A jde
d imir
Vla
shown in the following. Click Save to save the package. Close the tab.
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
6. Run the new package
e r @
and check
e t hwhether the Delete Target Tables step was
executed.
( a jd u s
j d erclick
a. Select the PKG_14-2 package and click Run. Click OK in the Execution window, and
e to
lic ens
b l e
f e ra
c. Open the Designer tab. Open the PKG_14-2 package again a
t r nsthen select the
and
on-OK the
Diagram tab. To delete records from the target tables, select
TABLES step, right-click, and select Execute Step.nClick
DELETE TARGET
in the Run window, and
s a appears.
then click OK when the “Session started” message eฺ
h a
) t Gu i d
o m
o o ฺc den
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
e. With records from the target tables having been deleted, run the entire package f e ra
PKG_14-2 again. Click OK in the Run window, and then click OK when the “Session ans
started” message appears.
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o tu
7. Clean up the desktop by y ah ODI
closing
s S
Studio.
This completes Practice
e r @ This
14-2.
e t hi
completes the practices for Lesson 14.
(a j d u s
e r
A jd
mi r
a d i
Vl
e to
lic ens
b l e
f e ra
ra ns
Practices o
for
n -tLesson 15:
a n Debugger
Step-by-Step
a uide s ฺ
) h
o mChapter
n t G
15
ฺ c
o tud e
h o
@ ya his S
j d er se t
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Tasks
Unauthorized reproduction or distribution prohibitedฺ Copyright© 2017, Oracle and/or its affiliatesฺ
c. Click the Physical tab. In the Properties section, enter MAP_DEBUG_DS in the Name
e to
ens
field. Click Save All and close the tabs.
lic
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
o n -
a n
h
Local (No Agent). Click OK. Then click OKawhen u
youi d eฺ
b. In the Debug window, make sure that Contextsis set to Development, and Agent is
see the “Session started”
message in the Information window.m ) tG
o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a
e to
The execution then pauses at the “Load data – LKM SQL to Oracle” task.
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
e. o n -tr
In the Debug Data window, click the Target Task Data tab.
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) - LKM
g. On the Blueprint tab, select the “Load data
G u to Oracle” task. On the Debug
SQL
o
toolbar, click Run to Task Endฺc . This e
t
n the current load task and pauses
executes
after execution. Note theh o o d
tuhalf-bar on line .90 is now the bottom half,
y ahasgreens
cursor
S
e r @ e thi
indicating that the step completed.
( a jd u s
j d er
A
d imir
Vla
k. In Breakpoint Properties, select the Suspend after executing the task check box.
Click OK.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a m. Right-click the “Load TRG_CUSTOMER” task and select Get Data.
e to
o. Remove the entire target command and replace it with the following:
lic ens
select * from SALES_DEV.TRG_CUSTOMER
b l e
Click Run SQL Code.
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
d e r@ e th
After thea
( j u s you should see the contents of TRG_CUSTOMER:
query executes,
j d er
r A
d i mi
Vl a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺcStudio.den
o
5. Clean up the desktop by closingoODI
tuthe practices for Lesson 15.
ahcompletes
This completes Practice 15-1.yThis s S
e r @ e thi
( a jd u s
j d er
m i rA
Vl adi
e to
lic ens
b l e
f e ra
ra ns
Practices o
for
n -tLesson 16:
a
Managing n ODI Scenarios
a uide s ฺ
) h
o mChapter
n t G
16
ฺ c
o tud e
h o
@ ya his S
j d er se t
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Background
A common task that is performed by using ODI is to create an ODI scenario and schedule its
execution. You already developed the ODI procedure that creates a relational table and
populates the relational table with data.
In this practice, you learn how to create and schedule an ODI scenario to run the procedure you
created in Practice 12-1.
1. First, in the Designer Navigator’s Projects tab, you generate a scenario for the PRD-
create-populate-table procedure.
e to
2. Then, in Topology Navigator, you verify connection to ODI Agent.
3. Next, in Designer Navigator, you schedule the scenario with ODI Agent. lic ens
b l e
4. Back to Topology Navigator to review the scheduling of the agent.
f e ra
5. Finally, in Operator Navigator, after the scheduled scenario execution time, you verify
ans
that the scenario has executed.
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
class.
b. In Topology Navigator > Physical Architecture > Agents, verify the connection to the
ODI agent, as shown in the following screen:
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a c. In Topology > Logical Architecture > Agents, open localagent and set (or confirm)
the Physical Agents to OracleDIAgent1 for all three contexts. Click Save and close
the localagent tab.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Note: The scheduled time is in GMT and your local time may be several hours
different. Just change the minute hand and ignore the hour hand.
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
g. Open Topology Navigator to o review
o e n of the Agent. In the Physical
ฺc thedscheduling
architecture, expand theh o
a Agents tuand double-click OracleDIAgent1. On the
node
S
@ y
OracleDIAgent1 screen, i
click
h s Update Schedule. On the screen that follows, click
r t
( a jdeagain.use
OK. Click OK
j d er
A
d imir
Vla
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
h. Click the View Schedulehbutton. The tuscreen that appears shows you the scheduling
y a lineisis S
information. The horizontal VERY hard to see. Click OK to close the schedule.
Close the tabs:
@ e th tab and Scenario Scheduling.
erOracleDIAgent1
( a j d u s
j d er
A
d imir
Vla
to
e n se
b. Expand: Agent > OracleDIAgent1 > PRD_CREATE_POPULATE_TABLE, and view
e l ic
the execution results for the PRD-create-populate-table procedure. Note
r
execution time of this scenario. That is the time that you scheduled with a bl Agent.
ODI
the
s fe
You have now successfully scheduled a scenario with an agentnscheduler.
n - tra
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ra ns
Practices o
for
n -tLesson 17:
Using a n Plans
Load
a uide s ฺ
) h
o mChapter
n t G
17
ฺ c
o tud e
h o
@ ya his S
j d er se t
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Background
When ODI is used to populate very large data warehouses, it is common to have thousands of
tables being populated by using hundreds of scenarios. The execution of these scenarios has to
be organized in such a way that the data throughput from the sources to the target is the most
efficient within the batch window. Load Plans help organize the execution of scenarios in a
hierarchy of sequential and parallel steps for these types of use cases.
e to
Load Plans are objects that organize the execution of packages and scenarios at a high level.
Load Plans provide features for parallel, sequential, and conditional scenario execution, lic ens
restartability, and exception handling. b l e
In this practice, you will use the load plan editor to create a very simple load plan with a set of f e ra
steps running in parallel, followed by a set of steps running sequentially. ans
First, define a load plan.
o n -tr
a n
Then, add a node for independent steps to run in parallel. Create two procedures for loading
a s ideฺ
dimensions, and add them as steps to execute in parallel.
h
m ) t Gu
Next, add a node for interdependent steps to run in a specific sequence. Add several of your
o
ฺc den
previously defined objects as steps to run in the following order:
o o
ah is Stu
1. DELETE_TARGET procedure, which deletes records from the TRG_SALES, TRG_CUSTOMER,
y
er@ th
TRG_CITY, TRG_REGION, and TRG_COUNTRY tables
2. MAP_8-1, which
a j dadds s e
records
u to the TRG_COUNTRY table
3.
(
er which adds records to the TRG_REGION table
A j d
MAP_8-2,
4.
m irMAP_8-3, which adds records to the TRG_CITY table
e to
lic ens
b l e
f e ra
ans
c. -tr
The load plan editor opens with the root step node. Click Add Step (the green plus),
o n
and select Parallel Step.
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
d. The Parallel step node appears under the root step. You will define two new
procedures and place them under the parallel node so they will execute in parallel.
Note that the default restart type for Parallel steps is “Restart all children,” and the
restart type for root_step is “Restart from failure.” Click Save to save your load plan.
e to
lic ens
b l e
f e ra
ans
b. n -tr
Enter Load_PRODUCT_dimension in the name field. Do not enter any other
o
a n
information, because this will be a nonfunctioning skeletal procedure that you create
a s ideฺ
solely for the purpose of seeing how load plans work. Later, when you execute the load
h
) t Gu
plan, this procedure will run, but do nothing. Click Save and close the
m
o
ฺc den
Load_PRODUCT_dimension editing tab.
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a
e to
d. Return to the Data Warehouse Load Plan editor. With the Parallel step highlighted, lic ens
b l e
click Add Step (green plus) and select Run Scenario Step.
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m e. A load plan uses scenarios in its steps. You can select an existing scenario for a step,
V l a or choose other objects (packages, interfaces, variables, and procedures), for which
ODI will automatically generate a scenario to run the step.
You now add the two procedures that you just defined, Load_PRODUCT_dimension
and Load_TIME_dimension, as steps under the Parallel node of the load plan.
In the Add Run Scenario Step screen, click Lookup Scenario (magnifying glass).
e to
lic ens
b l e
f e ra
g. In the New Scenario window, accept the name LOAD_PRODUCT_DIMENSION as the
tra
name of the scenario that ODI will create to run this procedure, and click OK.
ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
r@ e thScenario Step window.
h. ODI returnsdtoethe AddsRun
( a j u
Note:r LOAD_PRODUCT_DIMENSION
j d e for the procedure, as well asisthe
generate
the name of the new scenario that ODI will
name for the step that you are adding to the
r A
d imi load plan. Click Finish.
Vla
j. Click the Parallel node of the Steps Hierarchy, and click Add Step (green plus) again.
Select Run Scenario Step.
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o tuother new procedure, Load_TIME_dimension,
k. Repeat steps e through
y ahhto add
s S
your
r @of the
to the Parallel node
e e t hi Hierarchy. The result should look similar to the
Steps
( a jd
following screenshot.
u s
j d er
A
d imir
Vla
e to
b. The Serial node appears in the Steps Hierarchy. With Serial node selected, click Add lic ens
Step and select Run Scenario Step. b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
e
jIndthe
c.
ir A Add Run Scenario Step window, click Lookup Scenario .
dim
Vla
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
e.
er@AddseRunthScenario Step window. Click Finish.
ODI returns to the
j d
r ( a u
Ajde
i m ir
d
Vla
e to
ens
g. Click Lookup Scenario and select Mappings.
lic
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
i. Repeat steps f through h to add them ) t three
remaining G u mappings: MAP_8-2, MAP_8-3,
and MAP_9-1. Your results should o n to the following screen. Note the default
ฺc lookdsimilar
e
o o
ah itypes
restart values for the different
y s Stofusteps. Click Save to save your load plan.
j d er@ se th
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
b. Open the Operator Navigator, click oRefresh,
ฺc load plane nappear
and examine the results of executing the
load plan. The seven stepsoinothe u d as a grouping of seven executions
within seconds of each h
a is S
other. For t
each load plan step, ODI generated a scenario for
y
execution.
d e r@ e th
j
First, theaprocedures
( u s loading the TIME and PRODUCT dimensions ran in parallel.
for
j d er the DELETE_TARGET procedure and the four mappings ran in the serial
Then,
i r A sequence that you defined.
d im
Vla
e to
lic ens
b l e
f e ra
ra ns
Practices o
for
n -tLesson 18:
a
Enforcingn Data Quality with
h a s ideฺ
ODI
) Gu
ฺ c omChapter
e nt18
h o
o Stu d
a
y his
e r @ e t
j d u s
e r (a
A jd
m i r
l a di
V
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Background
In the previous practices, you learned how to create ODI mappings, which transform data from
one or more relational tables in the source to a relational table in the target and to export data
from a flat file to a relational table. In this practice, you perform data quality control for the
mapping created in Practice 10-1.
1. First, for a certain datastore, you verify that the primary key constraint is marked static, and
two columns are marked mandatory with static control.
e to
2. You then create a mapping by using that datastore as a target.
lic ens
3. On the mapping’s Physical tab, you set STATIC_CONTROL to True. On the Controls tab, e
b l
you ensure that the knowledge module is set to CKM SQL (a knowledge module that you
f e ra
will import) and you set maximum allowed errors to 5.
ans
are generated if these columns are not loaded. o n -tr
4. For two columns in the target datastore, you select Check Not Null so that control errors
a n
h a s ideฺ
5. You run the mapping with Flow Control set to FALSE. You verify that there are control
errors on three records, and that the three records with errors were loaded into the target
datastore. m ) t Gu
o
ฺc den
o
6. Finally, you rerun the mapping with Flow Control set to TRUE and verify that errors are
o
ah is Stu
excluded from the target datastore.
y
j d er@ se th
Note: Completing this practice is critical for all the following practice sessions.
r (a u
jd
Your Tasks e
i r A
1. Reset your practice environment.
di m a. Disconnect from the ODI repository (or just close ODI Studio).
V l a
b. In the Terminal window, execute the following reset commands:
When prompted, verify that you disconnected from the ODI repository, and then press
Enter. Wait until this script completely executes.
[oracle@hostname ~]$ cd ~/labs
[oracle@hostname labs]$ ./reset18.sh
Note: This process may take one minute or more to complete.
c. Restart ODI Studio.
d. Connect to Repository using the same wallet password of Welcome1 as you have in
the past.
e. Log in using the same Name: DEV_ODI_REPO and User: SUPERVISOR as you have in
the past.
e to
lic ens
b l e
f e ra
tra ns
n -
o click OK. Then Close the
a
b. In the File import directory field, select CKM SQLnand
Import Report window. Verify that CKM SQL
h awas
i d eฺ imported and is shown
s successfully
in the tree view.
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den > TRG_SALES_PERSON >
h o
c. On the Models tab, expandoOracle_RDBMS1
tu
Constraints, and then y s S
adouble-click TRG_SALES_PERSON_PK. Click the Control tab
r
and verify that Static
e hi
@ is eselected.
t
( a jd u s
j d er
A
d imir
Vla
e to
lic ens
b l e
f e ra
tra ns
n -
a no
a
e. Repeat the same step to enable Static control
h i d eฺ for the DATE_HIRED
sand Mandatory
m
column. Save your changes and close )the tabs.G u
o
ฺc den t
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
A
g.
dethe Logical tab, delete the filter for the SALES_PERSON_ID column, and preserve
jOn
m ir
l a di downstream expressions, as shown in the following screenshot. Click the Physical tab.
V
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
k. In Target Datastore, select
y Stu column, and then select Check Not Null.
ah theisLAST_NAME
j d er@ se th
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
m. Run your mapping . Click the o
ฺc Overview
e n> Execution tab of the MAP-EXP-FF-RT-
h o
QUALITY editor to view theoexecution tu d
results showing three errors, as shown in the
following screenshot.ya is S
r @ t h
( a de needutoseclick Refresh to view your last execution.
Note: Youjmay
j d er
A
d imir
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ra ns
Practices ofor
n -tLesson 19:
Workinga nwith Changed Data
h a s ideฺ
Capture
) Gu
ฺ c omChapter
e nt19
h o
o Stu d
a
y his
e r @ e t
j d u s
e r (a
A jd
m i r
l a di
V
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Background
A common task that is performed by using ODI is to implement Changed Data Capture. In this
practice, students implement Changed Data Capture to detect changes in the source
environment for the mapping that was created in Practice 8-1. You will capture data changes in
the SRC_CITY table in the Oracle Sales Application model. Then you modify the mapping to
process changed records only.
In this practice, you perform changed data capture in a mapping, using the JKM Oracle Simple
e to
knowledge module.
1. First, you import this knowledge module and create a model by using this journalizing lic ens
knowledge module. b l e
f e ra
2. Then you create a mapping by using the IKM Oracle Incremental Update knowledge
ans
3. Import the JKM Oracle Simple knowledge module. o n -tr
module, specifying capture of journalized (changed) data only.
a n
tab. h a s ideฺ
4. Create a model, Oracle_RDBMS2, specifying this knowledge module on the Journalizing
m ) t Gu
o
5. Reverse-engineer the model, verifying the resulting structure.
ฺc den
o o
ah is Stu
6. Add the model’s SRC_SALES_PERSON table to CDC and start the Journal by using the
y
default subscriber SUNOPSIS.
j d er@ se th
7. Use Data Viewer to change data in the table and verify in Journal Data that the data
r (a
change was captured. u
jd e
8. Create a mapping to process only changed data.
i r A
di m
V l a
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a d. In the Knowledge Module menu, confirm that knowledge module JKM Oracle
Simple.Procedure-CRT-TBL is selected, as shown in the following screenshot. Click
Save to save your model, and then close the tab.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc subscriber
c. In this practice, you use the default e n SUNOPSIS. Consequently, you do not
o o d
tuOK to confirm that your subscriber is SUNOPSIS.
y ahOK. Inisthe
have to add another subscriber.
In the Run window, click
Click
SInformation window, click OK again.
r @ t h
( a jde use
j d er
A
d imir
Vla
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
theuchanged data is captured.
) thatt G
4. View the data, change some data, and confirm
a. In Designer Navigator, click theฺc o m nRight-click the SRC_SALES_PERSON
o o d e
Models tab.
ah is Stu
datastore and select Data.
y
j d er@ se th
r ( a u
A jde
i m ir
Vl ad
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
This will(a
r u small clock on the left of the datastore:
display a very
de for ready
Ajyellow
mir green for running
a d i
Vl
Modules node. Right-click Integration (IKM) and select Import Knowledge Modules.
Import the new Knowledge Module: IKM Oracle Incremental Update. Close the
report.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o n Hive object as well (this is a known bug).
ฺc thedCKM
e
o
You may have accidentallyoimported
You can safely ignore
y ait. h is Stu
j d er@ se th
r ( a u
e
r Ajd
d i mi
Vl a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
d. Click Delete current row repeatedly to delete all the rows.
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e. Save changes of your rows (not the diskette icon) and close the tab.
to
g. Click the Models tab. In the tree view, expand the Oracle_RDBMS1 model. Drag the e n se
TRG_SALES_PERSON_CDC datastore from the tree view to the modeling zone. e l ic
Expand
a l the
bfrom
the Oracle_RDBMS2 model and drag the SRC_SALES_PERSON datastore
fe r
model tree to the modeling zone of your diagram. Drag a Distinctscomponent in
a n
between the two datastores.
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
ฺ o n Update.
k. On the Physical tab, click TRG_SALES_PERSON_CDC
c Incremental
e and set the Integration
Knowledge Module to IKM
h o
o Stu
Oracle d
a
y his
e r @ e t
( a j d u s
r
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
6. Verify the execution results.
o n -tr
n
a. Open Operator Navigator. Click Refresh. Expand the All Executions node and verify
a
h a s ideฺ
that your session, MAP_SALES_PERSON_CDC, executed successfully.
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ra ns
Practices o
for
n -tLesson 20:
a
Advanced n ODI Administration
a uide s ฺ
) h
o mChapter
n t G
20
ฺ c
o tud e
h o
@ ya his S
j d er se t
r (a u
jd e
i r A
di m
V l a
Java EE. You then use the Enterprise Manager and ODI Console to monitor and manage ODI
components, processes, and resources.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Background
Using the ODI Security Manager module, you can manage security in Oracle Data Integrator.
In this practice, you explore the security features of ODI Security Manager. You create a profile,
grant three methods (actions) to the profile, and create a new ODI user to whom you assign that
profile.
You then assign the profile to your new user and grant a specific method (View) for a specific e to
object (Scheduling) to your new user. You also define user parameters that enable specific
functionality for your new user. lic ens
b l e
Finally, you define password policies that control the case-sensitivity and length of user-defined
passwords. f e ra
tra
1. In ODI Security Navigator, expand the Profiles panel and duplicate the Repository
ns
n -
a no
Explorer profile, naming the new profile REVIEWER. You grant three methods to the
REVIEWER profile: “Compare with version,” “Duplicate,” and “Export from object Model.”
h a s ideฺ
Note: You may need to click the View menu and open Security Navigator.
2. Create a new ODI user, INT_PROJECT_REVIEWER.m ) t Gu
o
ฺcyour newly
e ncreated user. To connect to ODI Master
3. o
Assign the new profile REVIEWER o to d
y
and Work Repositories, assign Stuprofile, CONNECT, to the new user
ah theisbuilt-in
j d er@ se th
INT_PROJECT_REVIEWER.
4. (
Grant the View
r u the Scheduling object to the INT_PROJECT_REVIEWER user.
a method for
5. jdeuser preferences to enable specific functionality for INT_PROJECT_REVIEWER.
Define
A
6.
m irDefine password policies to enforce passwords to be uppercase and greater than eight
l a di characters.
V
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a
c. Enter the password (INTEGRATION), and then confirm this password. Do not select the
“Allow expiration date” check box. Click OK. Save this new user. The
INT_PROJECT_REVIEWER user is now displayed in the Users tree structure.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
b. In the Users panel, expand o o tu
h the INT_PROJECT REVIEWER > Profiles node and verify
y a s S
that the REVIEWER
e r @profile
e t hi assigned to this user.
was
( a jd u s
r
Ajde
i m ir
d
Vla
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
d
d. Verify that the r@ eandthREVIEWER profiles are added to your new user:
eCONNECT
( a j u s
j d er
A
d imir
Vla
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
c deobject
ฺScheduling n with the View method was added to
o
f. Verify that authorization to the
o
ah isuser,
the INT_PROJECT_REVIEWER
y Stuas shown in the following screenshot:
j d er@ se th
r ( a u
A jde
d imir
Vla
e to
c. Select DEV_ODI_REPO for the Login Name. Enter INT_PROJECT_REVIEWER as the lic ens
user and INTEGRATION as the password. b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jde
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
b. Confirm or edit the user parameters as shown in the following table. Click OK.
Parameter Value Functionality
Lock object when opening No Used for concurrent environments
e to
Used in conjunction with
s
n object
e“Lock
Display lock icons check
when opening” tole l i c
indicate it
b
radelay
Delay between two refresh e
Inter-refresh
f
(seconds)
2
t r a ns
Operator Display limit (0=no
n o Number
200
of elements displayed in a n-
limit)
s a eฺ branch of the Operator tree view
) ha uid
ฺ c om ent G
h o o tud
@ ya his S
j d er se t
r (a u
jde
i r A
di m
V l a
e to
lic ens
b l e
f e ra
Preferences > ODI > User Interface > Designer.
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
Preferences > ODI > User Interface > Operator.
c. Click the ODI menu and select Disconnect to close this user connection.
b. Connect to DEV_ODI_REPO with the SUPERVISOR user. Accept the stored password.
e to
lic ens
b l e
f e ra
tra ns
n -
a no
c. Select the Security Navigator tab. Click thea s icon, d ฺ then select Password
eand
policies. Click the Add a Policy icon. ) h u i
o m t G
o o ฺc den
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
e. Enter another rule: Length >= 8. Click OK. f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
a
g. It is possible that a new policy may causehan eฺ to no longer be valid (for
sexistingiduser
m ) letters).
G u
example, Welcome1 contains lowercase
o
ฺcYes. den t For purposes of this lab, click No. In
o
real life you would probably click
o
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
domain through this console, and administrators can have a global view of these components,
along with other Fusion Middleware components from a single administration console. John
decided to begin using this feature. He created the WebLogic Server (WLS) domain, ODI-
DOMAIN. Now John needs to deploy and configure the ODI Java EE Agent with the existing
WLS domain. He also needs to configure the ODI Enterprise Manager and ODI Console Plug-in
with WLS.
Background
e to
ens
In this practice, you perform the steps needed to deploy and configure the ODI Java EE Agent,
Enterprise Manager 12c, and ODI Console plug-in on an existing WLS domain. You use
lic
Enterprise Manager 12c and ODI Console to access your ODI objects.
b l e
1. Use RCU to prepare a new OPSS schema.
f e ra
2. Deploy and configure the ODI Java EE agent, Enterprise Manager, and ODI Console on ans
the existing WebLogic domain.
o n -tr
n
3. Connect to the WebLogic Server and managed server, ODI_server1.
a
h
4. Use Enterprise Manager to administer ODI.a s ideฺ
m ) t Gu
5. Use ODI Console to explore the ODI environment.
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
a. You will need to know your real IP address for several steps. To find out this number,
issue this command from a command prompt:
[oracle@hostname ~]$ more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
e to
10.216.4.217 hostname.us.oracle.com hostname
lic ens
[oracle@hostname ~]$ b l e
f e ra
The first line of the real IP addresses (not including the localhost or loopback) is
tra
probably your IP address. In this example, it is 10.216.4.217. Your number will be ns
n -
no
different. If in doubt, ask your instructor. Write down this number for later.
a
b.
it by pressing Ctrl + C. h a s ideฺ
If you have the standalone agent running in a terminal window from previous labs, stop
m G u
) t-NAME=OracleDIAgent1
o
[oracle@hostname bin]$ ./agent.sh
ฺc dNew e n data source:
o o tu
2014-03-04 13:49:47.017 NOTIFICATION
h
a S
[DEV_ODI_REPO/*******@jdbc:oracle:thin:@localhost:1521/ORCL.US.ORACLE.COM]
y s
r t hi AgentODI-1128
@ STANDALONE.
2014-03-07 13:49:49.280 NOTIFICATION
e e
Agent OracleDIAgent1 is
( a
20910. JMXjdPort: 21910.
starting. Container:
u s Version: 12.1.2 - 17/09/2013. Port:
i r A reachable. 13:49:58.254
2014-03-07 WARNING ODI-2010 Agent OracleDIAgent1 is not
Vla
success Ctrl+C
[oracle@hostname bin]$
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
d. In the Logical Architecture, create o
ฺc a newdLinkn agent with the same name as your
logical
e
o o
new physical agent, OracleDIAgent.
h tuas follows.
this logical agent to the physical agent
OracleDIAgent in y
i s S
allathree contexts, Save your logical agent definition.
@
er se t h
( a j d u
r
A jde
d imir
Vla
2. Create an OPSS Security schema using RCU for the new agent. (You can only have one
agent per OPSS schema.)
a. At a command prompt, start RCU from the Fusion Middleware Home.
[oracle@hostname ~]$ cd $FMW_HOME/oracle_common/bin
[oracle@ hostname bin]$ pwd
/u01/app/oracle/Middleware/Oracle_Home/oracle_common/bin
[oracle@ hostname bin]$ ./rcu
e to
c. On the Create Repository screen, click Next. lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
− Password: Welcome1
Click Next.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a e. Accept the Checking Prerequisites information by clicking OK.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
g. e the Checking Prerequisites information by clicking OK.
Accept
j d
r A
d i mi
Vl a
e to
lic ens
b l e
f e ra
ans
i. On the Map Tablespaces screen, click Next.
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
This step takes about two minutes.
e to
lic ens
b l e
f e ra
tra ns
n -
3. noODI agent application.
Extend the WebLogic server domain ODI-DOMAIN with the
a
h a s config.sh
a. To deploy and configure domains with WLS, start
i d eฺ from the ODI Home
Install directory:
m ) t Gu
o
o pwdtuden
[oracle@hostname ~]$ cdฺc$ODI_HOME/common/bin
[oracle@ hostname h o
bin]$
@ ya his S
/u01/app/oracle/Middleware/Oracle_Home/odi/common/bin
er sebin]$
[oracle@jdhostname
t ./config.sh
r ( a u
A jde
m ir
l a di
V
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
o the domain server. During
e. The wizard will set up the ODI repository connection a nwithin
a
the wizard configuration, the repository connection
h i d eฺ must be supplied.
s information
Change the Host Name to localhost. m G u Password field, enter
) In thet Schema
o
ฺc den
Welcome1.
o o tu and the values you entered, against the
Check the values filledainhby the wizard,
S
following table and y
@screen. hi s
d e r e t
Database
( a s (Master Repository)
jConnection
u
j d er
Parameter Value
A
d imir DEV2_STB (Make sure it is the
Vla
Schema Owner same as the dev prefix created in
the previous RCU step.)
Schema Password Welcome1
DBMS/Service orcl.us.oracle.com
Host Name localhost
Click Get RCU Configuration and then click Next.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o tu SUPERVISOR and Password: Welcome1.
h. y ah enter
On the Credentials screen, s S
Username:
e
Click Add, and r
on@the new
e t hi enter Key Name: ODI-DOMAIN, Username: weblogic,
line
a jd Welcome1.
and Password:
( u s On the Store Name drop-down list, select
A der
joracle.odi.credmap. Click Next.
i m ir
d
Vla
e to
j. The Managed Servers screen shows two managed servers: the pre-existing
my_ManagedServer_1, with whatever existing apps are already deployed to it, and lic ens
b l e
the newly created ODI_server1, probably dedicated to ODI (and maybe also EM).
f e ra
Change the Listen Address to your real IP address. (Do not use All Local Addresses.)
ans
o n -tr
Set Listen port to 8002 for ODI_server1. This matches the port setting that you used
when defining the OracleDIAgent physical agent. Click Next.
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
l. On the Coherence Clusters screen, click Next. lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
WLS machines are used for failover and load-balancing. b l e
f e ra
n. Select all the servers (Ctrl + A) and click > to assign them to my_UnixMachine_1.
ans
o n -tr
The WLS Administrator can sort them out later.
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
p. On the System Components screen, click Add, then enter a System Component name lic ens
b l e
of OracleDIAgent, and a Component Type of ODI. Click Next.
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a q. On the ODI Server Configuration screen, enter Server Listen Address of your real IP
address, Port: 8002, Username: SUPERVISOR, and Password: Welcome1. Click Next.
e to
l ic ens
s. Review the Configuration Summary. Click Update to extend the domain.
e
bl the
When
domain is configured, click Finish. fe r a
n s
n - tra
a no
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
It will linger at 0% for about a minute, that is normal.
f e ra
When it reaches 100%, it is still not quite done until the Next button becomes available.
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
[oracle]$ cd $FMW_HOME/user_projects/domains/ODI-DOMAIN/bin/
[oracle]$ pwd
/u01/app/oracle/Middleware/Oracle_Home/user_projects/domains/ODI-DOMAIN/bin
[oracle]$ ./startWebLogic.sh
(...many lines omitted for clarity...)
<Mar 3, 2014 5:25:14 PM UTC> <Notice> <WebLogicServer> <BEA-000365> <Server
state changed to STANDBY.>
<Mar 3, 2014 5:25:14 PM UTC> <Notice> <WebLogicServer> <BEA-000365> <Server
state changed to STARTING.>
e to
ens
(...many lines omitted for clarity...)
<Mar 3, 2014 5:26:17 PM UTC> <Notice> <WebLogicServer>
lic
<BEA-000365> <Server
state changed to RUNNING.>
l e
<Mar 3, 2014 5:26:17 PM UTC> <Notice> <WebLogicServer> rab <The
<BEA-000360>
f e
ans
server started in RUNNING mode.>
o n -tr
Minimize (but do not close) the admin server command window.
b. n
To start the ODI_server1 managed server, in a new terminal window or tab, change
a
h a s ideฺ
directory to $FMW_HOME/user_projects/domains/ODI-DOMAIN/bin, and use the
) t Gu
startManagedWebLogic.sh ODI_server1 command. For username, enter
m
o
weblogic. For password, enter Welcome1. The server takes about two minutes to
ฺc den
o o
start up and reach the RUNNING mode. Verify that your managed server is started in
RUNNING mode. y ah is Stu
[oracle]$ e cdr@ e th
$FMW_HOME/user_projects/domains/ODI-DOMAIN/bin/
( j d
a pwd u s
r
[oracle]$
de
A j/u01/app/oracle/Middleware/Oracle_Home/user_projects/domains/ODI-DOMAIN/bin
d imir [oracle]$ ./startManagedWebLogic.sh ODI_server1
Vla
(...many lines omitted for clarity...)
<Mar 3, 2014 7:39 PM> <Info> <Security> <BEA-090065> <Getting boot identity
from user.>
Enter username to boot WebLogic server:weblogic
Enter password to boot WebLogic server:Welcome1
(...many lines omitted for clarity...)
<Mar 3, 2014 7:39 PM> <Notice> <WebLogicServer> <BEA-000365> <Server state
changed to RUNNING.>
<Mar 3, 2014 7:39 PM> <Notice> <WebLogicServer> <BEA-000360> <The server
started in RUNNING mode.>
There may be messages after the RUNNING message. Minimize (but do not close) this
ODI_server1 command window.
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
The web browser requires Adobe Flash to see graphs.
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc den
h o o tu
c. In the left Target @ y a
Navigationh s S
i expand ODI > oraclediagent. Click the
panel,
e r e t
( a jd
oraclediagent (ODI_server1)
u s node to see the Java EE agent information.
j d er
A
d imir
Vla
e to
lic ens
b l e
f e ra
tra ns
n -
a no
h a s ideฺ
m ) t Gu
o
ฺc Timedtab.
b. In the left panel, click the Design e nExpand Projects, Models, and Topology.
o o
y ah is Stu
j d er@ se th
r ( a u
A jde
d imir
Vla
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
c link.
ฺFolder e n
o
Scroll down and click the First
o d
y ah is Stu
j d er@ se th
r ( a u
e
r Ajd
d i mi
Vl a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
r (a u
jd e
i r A
di m
V l a
e to
lic ens
b l e
f e ra
ans
o n -tr
a n
h a s ideฺ
m ) t Gu
o
ฺc den
o o
y ah is Stu
j d er@ se th
( a
scroll down…
r u
e
r Ajd
d i mi
Vl a
e to
lic ens
b l e
f e ra
tra ns
n -
a
When you have finished exploring, log out of ODI
no
Consoleฺ and close the browser.
) has uide
ฺ c om ent G
h o o tud
@ ya his S
j d er se t
r ( a u
e
r Ajd
d i mi
Vl a
[oracle]$ cd $FMW_HOME/user_projects/domains/ODI-DOMAIN/bin
[oracle]$ ./stopManagedWebLogic.sh ODI_server1
Stopping Weblogic Server...
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
tra
the-wire security, the SSL port or Admin port should be used instead.
n -
Shutting down the server ODI_server1 with force=false while connected to
AdminServer ...
a no
.
h a s ideฺ
Exiting WebLogic Scripting Tool.
m ) t Gu
Done
o
ฺc den
o o
ah is Stu
Stopping Derby Server...
y
Derby server stopped.
d e r@ bin]$
[oracle@hostname
e th
j
a WebLogic
b. To stop(the s
u server, execute the stopWebLogic command.
de r
A j[oracle@hostname bin]$ ./stopWebLogic.sh