ODIExperts.com

The blog for Oracle Data Integrator ( ODI )

Creating Master and Work Repository

[ This tutorial explain how to create Master and Work Repository in Unix and windows environment with Oracle 11g with ODI_MASTER and ODI_WORK defined as Master and Work Repository .

Please change the parameter for your environment and database ]

Oracle recommends creating ‘snpm’ and ‘snpw’ for Master and Work Repository. I intend to use ODI_MASTER and ODI_WORK as it makes it easy and sense when any one looks into it.

After Oracle Data Integrator ( ODI) Installation, create these schemas as follows namely.

SCHEMA NAME PASSWORD DESCRIPTION
ODI_MASTER ODI_MASTER Schema to Install the Master Repository
ODI_WORK ODI_WORK Schema to Install the Work Repository
WORK_SCHEMA WORK_SCHEMA Schema to be used as Work schema for all the Oracle Connection
Use the following Codes to create the required schema, attached the required tablespace as per your requirement for home or testing environment dont worry about the Tablespace.
CREATE USER ODI_MASTER IDENTIFIED BY  ODI_MASTER;
GRANT CONNECT,RESOURCE TO ODI_MASTER;
CREATE USER ODI_WORK IDENTIFIED BY  ODI_WORK;
GRANT CONNECT,RESOURCE TO ODI_WORK;
CREATE USER WORK_SCHEMA IDENTIFIED BY WORK_SCHEMA;
GRANT CONNECT,RESOURCE TO WORK_SCHEMA;
CREATE USER ODI_MASTER IDENTIFIED BY  ODI_MASTER;
GRANT CONNECT,RESOURCE TO ODI_MASTER;
CREATE USER ODI_WORK IDENTIFIED BY  ODI_WORK;
GRANT CONNECT,RESOURCE TO ODI_WORK;
CREATE USER WORK_SCHEMA IDENTIFIED BY WORK_SCHEMA;
GRANT CONNECT,RESOURCE TO WORK_SCHEMA;

In UNIX environment please use the following environment variables to connect to the ODI Installed Folder

export ODI_HOME=/home/oracle/OraHome/oracledi

export ODI_JAVA_HOME=/home/oracle/OraHome/jre/1.4.2

export PATH=$PATH:$ODI_HOME/bin

cd /home/oracle/OraHome/oracledi/bin

[Note: Please change your HOME PATH i.e /home/oracle to your installed directory where ODI is installed ( as it is for me ) ]

Creating Master Repository

083109_0136_CreatingMas1.png

In Windows Go the Following path as shows in the above image or you can call the ” REPCREATE.BAT ” in windows from the cmd prompt or ” ./repcreate.sh ”
in UNIX environment from ‘ oracledi/bin ‘ folder


Enter the required information to create the Master Repository.

User – Username to connect to the database, for my example I am using “ODI_MASTER”

Pass – Password for the particular above mentioned user.

Id – Give any number from 0 -50

Password –for my example its ODI_MASTER

Technology – Use the technology you are using above to connect, for my example I am selecting Oracle.

Driver : Click and select your respective technology jdbc driver , for my example its ‘ oracle ‘ so I am using

Oracle.jdbc.driver.oracleDriver


You can learn about each driver in Description as you scroll through all the drives listed there .

URL : Enter the corresponding url for respective driver technology , for my example iam using ‘ localhost.localdomain:1521:orcl ‘

host address – localhost.localdomain

port – 1521

Sid – ORCL

Change your parameters depending on your environment.

To learn about url see Description in the image.


Final click on Test connection, if every parameter is correct it will show Successful message.


Click on and Master Repository will be created .

Logging into Topology Manager

Now type ‘ ./topology.sh ‘ or ‘ TOPOLOGY.BAT ‘ in the oracldi/bin directory or point to the icon of the Topology as show in the image.


To login into Topology Manager and you will see a similar screen , click on new shown below


Type in the required parameters , generally the parameters are same as above

For me (oracle ) its like this


For Oracle Data Integrator Connection

Give a login name i.e a name for your Repository, you can give any meaningful description eg development, testing etc.

USER – SUPERVISOR

PASSWORD – SUNOPSIS

[ ** Please use capital alphabets , they are case sensitive ***]

For Database Connection (Master Repository)

Use the same User and password that you have used while creating Master Repository as discussed above while creating master repository .

Finally click Test to test the connection .Click ok and type again ./topology.sh

After logging in, select your login name and click ok.


Now you will logged in the Topology Manager , go to fifth tab i.e Repositories and you will see Master and Work Repositories as shown below.


Creating Work Repository

Right Click on Work Repositories and click on “Insert Work Repository


You will see a Data Server , as shown below ,


Name : Name for your Work repository , it can be anything

Technology : Technology you are using to connect , for my example its Oracle

User : Username for the database ( ODI_WORK)

Password : Password for the particular above mentioned user

Let the other default parameters be as it is .

Go to Next Tab JDBC

Give the JDBC Driver and JDBC Url depending on your technology.


Click on Test to test the connection .


Click yes and if everything is correct you will see


Else connection failed , if failed please check your parameters.

Finally a window will pop up , enter the
ID
for the Work Repository and the meaningful Work Repository Name to it.


Finally you will see the Work Repository defined as shown below in the sample image.


Connecting to the Designer.

Now we are going to connect to the above Work repository and do our development.

Type in the terminal ./designer.sh
or
designer.bat


Click on New and type in the following parameters


Enter the same information and the only thing new is Repository Name type in the above work repository if you remember, else click on this icon under Work Repository box.

You will see a list of the Work Repository you created

Screenshot-Select repository

Select and click ok

Test the connection , if everything is fine you will have successful connection

083109_0136_CreatingMas21.png

Later select your new Login Repository creates above and automatically username and password will be entered.

Screenshot-Oracle Data Integrator Login

Click ok and you will log into the Designer to create your First interface.


Learn more about it from Getting Started guide from Oracle

http://www.oracle.com/technology/products/oracle-data-integrator/10.1.3/htdocs/documentation/oracledi_getting_started.pdf

7 Comments

Leave a Reply

Required fields are marked *.


This site uses Akismet to reduce spam. Learn how your comment data is processed.