INFORMATICA LAB 1

    BUSINESS REQUIREMENT

Suppose a bank has come up with a new scheme where the customers will be provided with extra interest rate . For this the bank requires the customer details from the customer reference table. We will map the customer reference table into the new scheme table so as to get all the required details of the customers.

For this all the data has to be loaded into the new empty table of the scheme.

  SOLUTION

STEP 1:

  • Go to Start->All Programs and search for PowerCenter Designer.
  • Right click on the PowerCenter Designer and click on Open as administrator.1

STEP 2:

  • A pop up window appears asking whether the program can make changes to the computer.
  • Click on Yes and proceed further.

STEP 3:

  •       This will open the Designer Screen which looks as follows.

NEW

  • NAVIGATOR:  The Navigator is indicated by the symbol 1 on the screen. It consists of the Repositories and the folders under it. We can connect to a particular Repository and also connect to its folder. It helps in using existing components.
  • WORKSPACE:  It is the space where the actual work is done. We can edit different repository objects in this space. It consists of different tabs such as Source Analyzer,Target Designer,Transformation Developer,Mapplet Designer and Mapping Designer.
  • TOOLBAR:  It consists of different tools which are used in the Designer Window.
  • STATUS BAR:  It gives the status of the current operation  that is being executed.

STEP 4:

  • Right click on the Repository that you want to connect to.

new1

 

  • A Connect To Repository window appears on the screen.
  • Enter the Username and Password and click on Connect.

5

STEP 5:

  • The Repository along with its folders appears on the Designer Screen which looks as follows

6

STEP 6: 

  • Go to Folder option and click on Create.

9

STEP 7:

  •  A Create Folder dialog box appears on the screen. Give a folder name for eg. X_NEW and Click on OK.

10

  • A window pops showing the successful creation of the new folder X_NEW.
  • Click on OK.

12

  •  We find our new created folder in the Navigator under the Repository which is connected.

13

  •     If the New Folder does not appear under the Repository then disconnect the Repository and reconnect it.

new3

  •   This appears on the left hand side of the window in the toolbar.
  • R stands for Repository Manager.
  • D stands for Designer.
  • W stands for Workflow Manager.
  • M stands for Workflow Monitor.

STEP 8:

  • Go to the X_NEW  Folder which has been created.
  • Right Click on it and click on Connect.

14

  • This will open all the tools menu under the new folder X_NEW.

15

  STEP 9:

  • Open Toad For Oracle.
  • Connect to the target database and also connect to the source database by entering the username and password.
  • Go to the source database editor  and write the sql code : grant connect,resource,dba to targetdatabasename;
  • Run the code.

16

STEP 10:

  • Go to the source database.
  • Go to Database and click on Schema Browser. This will open the Schema Browser.

17

  •  The page looks as follows. Now double click on the table which consist of the customer account reference details and which is to be mapped into the target table.
  • Click on the Script tab.

19

 

STEP 11:

  • Copy the Create Table code of the CUST_ACCT_XREF  by selecting and right clicking and selecting Copy.

20

  STEP 12:

  • Now open the target table editor and paste the code there.
  • Change the table name to CUST_ACCT_XREF as CUST_ACCT_XREF_T  as the source table name cannot be same as the target table name.
  • Run the code.
  • This will create a table with same number of columns as in CUST_ACCT_XREF.

21

  • This creates the table CUST_ACCT_XREF_T.
  • Open the schema browser of the target database.
  • We see that the table with the name CUST_ACCT_XREF_T is created.

22

 STEP 13:

  • Click on the Data tab.

23

  • We see that all the columns of the table are created and there is no data.

24

  STEP 14:

  • Return back to the Design Window in Informatica.
  • In Design Window , click on SourceAnalyzer under the Tools option.

25

  STEP 15:

  • Go to Sources and click on Import from Database.

26

  • Import Tables window appears on the screen.

27

  • Select the ODBC Datasource for source by browsing and enter the username,owner name and password.
  • Then click on Connect.

     STEP 15:

  •      Expand the Source Table that appears on the Import Tables window.
  •      Select the table  ie the CUST_ACCT_XREF that you want to map and click on OK.

28

  • We see that the CUST_ACCT_XREF  table appears on the screen.

29

  STEP 16:

  • Go to Target Designer and click on it.

30

  • In the Target Designer window ,go to Targets and click on Import from Database.

31

  • Select the ODBC Data Source for target.
  • Enter the required username,owner name and password .
  • Then click on Connect.

 

 

32

  STEP 17:

  • Now expand the tables in target database and select the table to which the source table is to be mapped.
  • Select CUST_ACCT_XREF_T.
  • Then click on OK.

32

  STEP 18:

  • Go to the Mapping Designer window by selecting the Mapping Designer.

34

  • Expand the Sources Folder.
  • Drag the source table  CUST_ACCT_XREF  from the source folder into the workspace.
  • This will ask for a new mapping name.

35

  • Give the mapping name as cust_ref_s.
  • Then click on OK.
  • The Mapping Designer window looks like this.

36

  • The source definition along with the source qualifier appears on the screen.

     STEP 19:

  • Expand the Targets folder and drop the target table CUST_ACCT_XREF_T  on the Mapping Designer window.

37

  STEP 20:

  • Select all the columns in the Source qualifier.
  • Go to Layout and click on Autolink by Name.

38

  • Drag the selected columns from the Source qualifier to the Target Table.
  • We find that all the columns from the Source qualifier are mapped to the Target Definition.

39

  • Now press Ctrl+S to save the changes made.

     STEP 21:

  • Now expand the Mappings Folder on the left.
  • Right click on the cust_ref_s and then click on Versioning.
  • Then click on Check In.

40

  • The Check In dialog box appears on the screen.
  • Give comment as V1 and then click on Apply to all.

41

  • After this no changes can be made.

        STEP 22:

  • Right click on the cust_ref_s under the Mappings Folder.
  • Click on Generate Workflow.

42

  • The Workflow Generation window appears on the screen.
  • Click on Next.

43

  • Now change the Connection Object of the source and target
  • Then Click Next.

44

  • Again click Next.

45

  • Then click on Finish.

46

     STEP 23:

  • Go to Workflow Manager by clicking on its icon.

47

  • Expand the Workflows Folder on the left hand side under the X_NEW Folder.
  • Drag the workflow and drop it on the workspace.

48

 STEP 24:

  •  Right click the workflow on screen and click on Edit.

49

  • The Edit Tasks dialog box appears on the screen.
  • Click on the Properties tab.

50

  • Change the Source connection value and Target connection value by browsing.
  • Go the Mapping tab.
  • Click on Targets Folder and change the Target load type to Normal.

52

  • Check the Truncate target table option.

53

  • Click on Apply.

54

 

     STEP 25:

  • Now right click on the wf_cust_ref_s.
  • Click on Start Workflow.

55

  • A window appears showing that the workflow is succeeded or not.

56

  • This completes the process of mapping the source table into target table .

 

 

 

 

 

 

 

 

 

Leave A Reply

Your email address will not be published. Required fields are marked *