Informatica expression transformation

10
Expression Transformation Start ETL by selecting powercenter designer 8.6 from start buttonall programsinformatica pc 8.6.0clientpcd, then it opens pcd as follows Connect to the repository named mano by double click on mano, then enter user name and password as mano_2011

Transcript of Informatica expression transformation

Page 1: Informatica expression transformation

Expression Transformation

Start ETL by selecting powercenter designer 8.6 from start buttonall programsinformatica pc 8.6.0clientpcd, then it opens pcd as follows

Connect to the repository named mano by double click on mano, then enter user name and password as mano_2011

Page 2: Informatica expression transformation

In oracle create two databases as source (UN&PWD:src_2012) and target (UN&PWD: tgt_2012) and create two tables src_empl and tgt_empl respectively.

Then in informatica choose Tools Source analyzer, then choose sources import from database and Create the ODBC connections for source and target databases as follows;

Page 3: Informatica expression transformation
Page 4: Informatica expression transformation

(Similarly for target DB)

Enter the password as src_2012 and click on connect, then it displays the tables of source database as

Select the table src_empl and click on OK. Then the table will be imported to source analyzer workspace.

Page 5: Informatica expression transformation

Similarly click on target analyzer and import the target table from the database as

Then choose mapping designer and drag and drop source table and target table into the mapping workspace. Then create ex_total_salary expression transformation by choosing transformations menu and click create, then displays as follows

Click on create and drag the fields from source qualifier to expression transformer and add a new port and set the options as follows; new port=TOTAL_SALARY, datatype=decimal,disable input checkbox and in expression type the formula as SAL+COMM.

Page 6: Informatica expression transformation

Click on validate and it displays as expression parsed successfully.

Then click on repository menu and click on save option to save the mapping.

Then click on workflow manager to create session task and workflow for the mapping. The workflow manager opens in a new window as follows;

Page 7: Informatica expression transformation

Then choose tools menu and select task developer, then create the relational connections first….to do this choose connections menu and select relational, then select new option and enter the information as follows for source and target databases.

Page 8: Informatica expression transformation

Then choose tasks menu and click on create and select task type as Session and give a name for it and click on create button.

Then double click on the task and choose mappings tab and set the options as follows for sources and targets.

Page 9: Informatica expression transformation

For the target table tgt_empl set relational connection value=tgt_conn_2012, target load type = Bulk. Then click apply and click on OK button.

Then choose workflows menu and click create and give the name for it as wf_s_m_ex_tgt_empl and click on OK button then it will creates a start Icon on the workspace, then drag the session on to the work space, then choose tasks and select link task and draw a link between start icon and the session as

Page 10: Informatica expression transformation

Then right click on workflow and choose start workflow and it executes the mapping and shows the output window as follows;

If execution completes successfully then shows status as succeeded, otherwise it shows status as failed.

Then right click on session and choose Get session log, then it displays detailed information about the execution.