Sunteți pe pagina 1din 13

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 ODI_MASTER ODI_WORK WORK_SCHEMA PASSWORD ODI_MASTER ODI_WORK WORK_SCHEMA DESCRIPTION Schema to Install the Master Repository Schema to Install the Work Repository 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

PREPARED BY RAVI KUMAR LANKE

Page 1

[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

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

PREPARED BY RAVI KUMAR LANKE

Page 2

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

PREPARED BY RAVI KUMAR LANKE

Page 3

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 .

PREPARED BY RAVI KUMAR LANKE

Page 4

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

PREPARED BY RAVI KUMAR LANKE

Page 5

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.

PREPARED BY RAVI KUMAR LANKE

Page 6

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.

PREPARED BY RAVI KUMAR LANKE

Page 7

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 .

PREPARED BY RAVI KUMAR LANKE

Page 8

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.

PREPARED BY RAVI KUMAR LANKE

Page 9

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

PREPARED BY RAVI KUMAR LANKE

Page 10

PREPARED BY RAVI KUMAR LANKE

Page 11

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

PREPARED BY RAVI KUMAR LANKE

Page 12

Select and click ok Test the connection , if everything is fine you will have successful connection

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

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

PREPARED BY RAVI KUMAR LANKE

Page 13

S-ar putea să vă placă și