Вы находитесь на странице: 1из 6

Lesson 9: Working with Informatica Workflow Manager

Practice 9-1: Adding Sessions and Workflows


Goals To create sessions and workflows in the Custom folder of the Informatica repository that use the SDE and SIL mappings you created in previous labs You have built the mappings to perform the ETL processes necessary to load data into the WC_RVF_F fact table in the Oracle Business Analytics Warehouse. Now you must create sessions and workflows in Informatica Workflow Manager that can be used to run the mappings. DAC is used to run ETL, whereas Informatica client tools are used for testing. Therefore, you will test the mappings, workflows, and sessions you have created using Informatica Workflow Manager. For the purposes of this lab, you are using test source (ETL_LAB_OLTP) and target (ETL_LAB_DW) databases. Note that the test source and target databases do not contain internal tables used in ETL management by DAC. You will have sessions and workflows associated with the SDE and SIL mappings and will have loaded the WC_RVF_F fact table. 2030 minutes

Scenario

Outcome

Time

Instructions:
1. Select Start > Programs > Administrative Tools > Services and verify that the Informatica Repository Server and Informatica services are started. 2. If necessary, start the Informatica Workflow Manager tool and connect to the Oracle Informatica repository: a. Select Start > Programs > Informatica PowerCenter 7.1.4 > Informatica PowerCenter 7.1.4 OEM for Siebel - Client > Workflow Manager. b. Double-click Oracle_BI_DW_Base. c. In the Connect to Repository dialog box, enter the following:
Username Password Administrator Administrator

d. Click Connect. 3. Add the ETL_LAB_DW database connection to be used in the sessions. This is the connection to the test target database you will be using. a. Select Connections > Relational to open the Relational Connection Browser. b. Click New. c. In the Select Subtype dialog box, select Oracle and click OK. d. In the Connection Object Definition dialog box, enter the following values:
Name ETL_LAB_DW Oracle BI Applications 7.9: Develop a Data Warehouse 51

Module 8: Working with Informatica Workflow Manager

User Name Password Connect String

ETL_LAB_DW ETL_LAB_DW ORCL

e. Click OK to return to the Relational Connection Browser. 4. Add the ETL_LAB_OLTP database connection to be used in the sessions. This is the connection to the test source database you will be using. a. Click New in the Relational Connection Browser. b. In the Select Subtype dialog box, select Oracle and click OK. c. In the Connection Object Definition dialog box, enter the following values:
Name User Name Password Connect String ETL_LAB_OLTP ETL_LAB_OLTP ETL_LAB_OLTP ORCL

d. Click OK to return to the Relational Connection Browser. e. Click Close to close the Relational Connection Browser. 5. Create the workflow s_SDE_C_RevenueFact in the Custom folder for the Source Dependent Extract mapping you created. This workflow contains instructions on how to execute the session task for the mapping SDE_C_RevenueFact that extracts and moves the data from the source table S_REVN to the target fact staging table WC_RVF_FS. a. Double-click Custom to expand the folder. b. Select Tools > Workflow Designer. c. Select Workflows > Create. d. In the Create Workflow dialog box, enter the name s_SDE_C_RevenueFact. Note that the C in the name indicates that this is a custom workflow. e. Click OK. f. Select Tasks > Create to add a session to the workflow. g. In the Create Task dialog box, select Session type task. h. Enter the name s_SDE_C_RevenueFact. i. Click Create. j. In the Mappings dialog box, select the SDE_C_RevenueFact mapping and click OK. k. Click Done. l. In the Workflow Designer window, drag the session off of the Start task. m. Select Tasks > Link Task, then click the Start task, and drag the link to the s_SDE_C_RevenueFact session. n. Edit the session properties. i. Double-click the s_SDE_C_RevenueFact session. ii. Click the Properties tab of the Edit Tasks dialog box. iii. In the $Source connection value attribute, click the down arrow to open the Connection Browser. iv. In the Connection Browser, select ETL_LAB_OLTP and click OK.

52

Oracle BI Applications 7.9: Develop a Data Warehouse

Lesson 9: Working with Informatica Workflow Manager

In the $Target connection value attribute, click the down arrow to open the Connection Browser. vi. In the Connection Browser, select ETL_LAB_DW and click OK. Note: As you will see in subsequent practices, in production you would use a connection variable that is generated when designating session sources and targets. Because you are in a test environment, you are using relational connections in this practice. vii. Click the Config Object tab of the Edit Tasks dialog box. viii. Under the Error handling section, for the Stop on errors attribute, enter a value of 1. ix. Click the Mapping tab. x. In the left pane, select the Sources node and then the SQ_S_REVN source. xi. In the Connection settings on the right pane for the SQ_S_REVN instance, click the down-arrow button in the Value property to edit its source connection. xii. In the Relational Connection Browser, select ETL_LAB_OLTP, and then click OK. xiii. In the left pane, select Targets node and then the WC_RVF_FS target. xiv. In the Connection settings on the right pane for the WC_RVF_FS instance, click the down-arrow button in the Value property to edit its target connection. xv. In the Relational Connection Browser, select ETL_LAB_DW, and then click OK. xvi. Change the Target load type attribute from Bulk to Normal. xvii. Select Truncate target table option. xviii.Click Apply. xix. Click OK. o. Select Repository > Save. p. Verify that the s_SDE_C_RevenueFact workflow is valid in the output window. 6. Before running the workflow, query the WC_RVF_FS target table to confirm there is no data. WC_RVF_FS is the staging table in the ETL_LAB_DW database that will be populated by running the s_SDE_C_RevenueFact workflow you just created. a. Select Start > Programs > Oracle OraDb10g_home1 > Application Development > SQL Plus. b. In the Log On dialog box, enter the following and click OK:
Login name Password ETL_LAB_DW ETL_LAB_DW

v.

c. Query to determine whether the staging table contains data. i. In the Query window, enter the following:
SELECT COUNT(*) FROM WC_RVF_FS;

ii. Verify that there is no data in WC_RVF_FS. d. Leave SQL*Plus open. 7. Execute the workflow s_SDE_C_RevenueFact from the Informatica Workflow Manager to load the data. a. Select Custom > Workflows > s_SDE_C_RevenueFact. b. Right-click s_SDE_C_RevenueFact and select Start Workflow. c. Monitor the progress of the session in the Workflow Monitor.
Oracle BI Applications 7.9: Develop a Data Warehouse 53

Module 8: Working with Informatica Workflow Manager

i. ii. iii. iv.

If necessary, double-click the Workflow Monitor icon in the Task Tray. Select the Task View tab in the bottom. Monitor the progress and verify that the workflow and the session have a status of Succeeded before continuing. When the session has completed, close the Workflow Monitor.

8. Query the WC_RVF_FS table to verify that the revenue data has been loaded. a. In SQL*Plus, query to determine whether the staging table contains data. i. In the Query window, enter the following:
SELECT COUNT(*) FROM WC_RVF_FS;

ii.

You should see five rows of data.

9. Examine the session log file for s_SDE_C_RevenueFact.log in E:\Informatica PowerCenter 7.1.4\Server\SessLogs and verify that the session completed successfully. The Informatica Server creates a session log file for each session it runs in a directory specified for the server variable $PMSessionLogDir in the Informatica Server registration. The name of the session log file is <session_name>.log. This log file contains the load details of this session. If the session did not complete successfully, or you did not see five rows of data, you will need to troubleshoot the SDE_C_RevenueFact mapping you created in a previous practice. Ask your instructor for assistance. Do not move on to the next step until the session has completed successfully and the data is loaded in WC_RVF_FS. 10. Using Workflow Manager, create the workflow s_SIL_C_RevenueFact in the Custom folder for the Source Independent Load mapping you created. This workflow contains instructions on how to execute session task for the mapping SIL_C_RevenueFact that extracts, transforms and moves the data from the staging table WC_RVF_FS to the target fact table WC_RVF_F. a. Select Workflows > Create. b. Click Yes to close the SDE workflow. c. In the Create Workflow dialog box, enter the name s_SIL_C_RevenueFact. d. Click OK. e. Select Tasks > Create to add a session to the workflow. f. In the Create Task dialog box, select Session type task. g. Enter the name s_SIL_C_RevenueFact. h. Click Create. i. In the Mappings dialog box, select the SIL_C_RevenueFact mapping and click OK. j. Click Done. k. In the Workflow Designer window, drag the session off of the Start task. l. Select Tasks > Link Task, then click the Start task, and drag the link to the s_SIL_C_RevenueFact session. m. Edit the session properties. i. Double-click the s_SIL_C_RevenueFact session. ii. Click the Properties tab of the Edit Tasks dialog box. iii. In the $Source connection value attribute, click the down arrow to open the Connection Browser. iv. In the Connection Browser, select ETL_LAB_DW and click OK.
54 Oracle BI Applications 7.9: Develop a Data Warehouse

Lesson 9: Working with Informatica Workflow Manager

In the $Target connection value attribute, click the down arrow to open the Connection Browser. vi. In the Connection Browser, select ETL_LAB_DW and click OK. vii. Click the Config Object tab of the Edit Tasks dialog box. viii. Under the Error handling section, for the Stop on errors attribute, enter a value of 1. ix. Click the Mapping tab. x. In the left pane, select the Sources node and then the SQ_WC_RVF_FS source. xi. In the Connection settings on the right pane for the SQ_WC_RVF_FS instance, click the down-arrow button in the Value property to edit its source connection. xii. In the Relational Connection Browser, select ETL_LAB_DW, and then click OK. xiii. In the left pane, select Targets node and then the WC_RVF_F target. xiv. In the Connection settings on the right pane for the WC_RVF_F instance, click the down-arrow button in the Value property to edit its target connection. xv. In the Relational Connection Browser, select ETL_LAB_DW, and then click OK. xvi. Change the Target load type attribute from Bulk to Normal. xvii. Click Apply. xviii.Click OK. n. Select Repository > Save. o. Verify that the s_SIL_C_RevenueFact workflow is valid in the output window. 11. Before running the workflow, query the WC_RVF_F target table to confirm that there is no data. WC_RVF_F is the target fact table in the ETL_LAB_DW database that will be populated by running the s_SIL_C_RevenueFact workflow you just created. a. In SQL*Plus, query to determine whether the fact table contains data. i. In the Query window, enter the following:
SELECT COUNT(*) FROM WC_RVF_F;

v.

ii. Verify that there is no data in WC_RVF_F. b. Leave SQL*Plus open. 12. Execute the workflow from the Informatica Workflow Manager to load the data. a. Select Custom > Workflows > s_SIL_C_RevenueFact. b. Right-click s_SIL_C_RevenueFact and select Start Workflow. c. Monitor the progress of the session. i. ii. iii. iv. in the Task Tray. If necessary, double-click the Workflow Monitor icon Select the Task View tab. Monitor the progress and verify that the workflow and the session have a status of Succeeded before continuing. When the session has completed, close the Workflow Monitor.

13. Query the WC_RVF_F table to verify that the revenue data has been loaded. a. In SQL*Plus, query to determine whether the fact table contains data. i. In the Query window, enter the following:
SELECT COUNT(*) FROM WC_RVF_F;

ii.

Verify that there is no data in WC_RVF_F.


Oracle BI Applications 7.9: Develop a Data Warehouse 55

Module 8: Working with Informatica Workflow Manager

b. You should see five rows of data. 14. Examine the session log file for s_SIL_C_RevenueFact.log in E:\Informatica PowerCenter 7.1.4\Server\SessLogs and verify that the session completed successfully. If the session did not complete successfully, or you did not see five rows of data, you will need to troubleshoot the SIL_C_RevenueFact mapping you created in the previous lab. Ask your instructor for assistance.

56

Oracle BI Applications 7.9: Develop a Data Warehouse

Вам также может понравиться