0% found this document useful (0 votes)
59 views3 pages

Name of Solution:: Please Rate This Solution and Share Your Feedback On Website

This mapping demonstrates how to populate a custom audit table to track ETL load summaries in PowerCenter. It uses three pipelines - one pre-load to insert start time, one for the dimension load, and one post-load to update end time, row counts, and load status. The solution includes a workflow, source file, and script to create the necessary tables. Implementing the solution involves importing the workflow, resolving conflicts, specifying parameters, configuring sessions, and observing the results loaded to the audit table.

Uploaded by

dharmendard
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views3 pages

Name of Solution:: Please Rate This Solution and Share Your Feedback On Website

This mapping demonstrates how to populate a custom audit table to track ETL load summaries in PowerCenter. It uses three pipelines - one pre-load to insert start time, one for the dimension load, and one post-load to update end time, row counts, and load status. The solution includes a workflow, source file, and script to create the necessary tables. Implementing the solution involves importing the workflow, resolving conflicts, specifying parameters, configuring sessions, and observing the results loaded to the audit table.

Uploaded by

dharmendard
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Name of Solution:

Mapping: Load Audit Summary

Business Requirement:
This PowerCenter Mapping demonstrates how to populate the custom Audit table to track
ETL load summary.

Solution URL:
https://community.informatica.com/solutions/1883

Supported Versions:
PowerCenter 9.1 and 9.5

Description:
Informatica PowerCenter records session information like start time, end time, row statistics
in the repository which can be used for operations report. In some environments it may be
necessary to load custom audit tables as part of the session runs.
In this block a method to load a custom Audit table is implemented for a slowly changing
dimension load with 3 pipelines. For each mapping there is a Pre-load pipeline to insert the
start time. The second pipeline will perform the dimension load. The third pipeline will be
the Post-load mapping updating the status, end time and rows statistics (total source rows,
insert row count, update row count etc.)

Download file contents:


1. Workflow
2. Source File
3. Script

Steps to implement the solution:


1. Place source file in $PMSourceFileDir folder. Execute the script to create both the
target tables. Change the folder name in the parameter file param_scd_audit.txt.
2. Import workflow wf_SCD_Audit.XML using the Repository Manager. Select the
appropriate folder from the repository and resolve the conflicts by choosing suitable
option.
Note: The

core functionality of this solution is present

as a

mapplet in

wf_SCD_Audit_With_Mapplet. If you want to use this solution as a mapplet in any


of your mappings, just copy the mapplet after importing the contents in the export
file.

Please rate this solution and share your feedback on Marketplace Website.

3. In PowerCenter Designer, Mapping uses the following parameters

$$BATCH_ID (parameter) value is specified based on the session grouping, the other
parameters are provided to reinitialize the values of the mapping variables to 0
during each session run which is necessary for this mapping to work.
4. Please view the target load plan of the mapping as shown below.

5.

Please

note

that

the

expression

EXP_AUDIT_COUNT

in

the

main

SQ_Customer_Extract pipeline is used to count the rows and update the mapping
variables

6. Please note that the expression Exp_End_Info in the POST pipeline is used to
retrieve the counts from the mapping variables to be updated into the AUDIT_TABLE.

Please rate this solution and share your feedback on Marketplace Website.

7. Open the workflow in Workflow Manager. Assign the integration service in Workflow > Edit -> Integration Service.
8. Edit session and assign valid connection object for the source and target.
9. For more details of importing object please visit our YouTube link.
10. Execute the workflow and observe the target files. In particular, observe the results
in the AUDIT_TABLE target.

YouTube Video on Importing and Configuring Workflows:


http://www.youtube.com/playlist?list=PLLRreK2jjjgWBQ4NPfp0QWTxYDvlnEqSJ

Other Useful links:


Mapping Bundles
Workflow Bundles
Informatica Tools Bundles
Informatica for Social Media Bundles
Debugging Tools Bundles
Visio Templates Bundles
B2B Templates and Projects Bundles
Data Quality Packs and Plans Bundles
Script Bundles

Please rate this solution and share your feedback on Marketplace Website.

You might also like