Professional Documents
Culture Documents
Informatica Training - Presentation Transcript
Informatica Training - Presentation Transcript
Client overhead for Repository management is greatly reduced by the Repository Server
Repository Repository Server Repository Agent Server Repository Manager Repository
Server Administration Console
5. Design Process
o Create Source definition(s)
o Create Target definition(s)
o Create a Mapping
o Create a Session Task
o Create a Workflow from Task components
o Run the Workflow and verify the results
6. Methods of Analyzing Sources
o Import from Database
o Import from File
o Import from Cobol File
o Import from XML file
o Create manually
Repository Relational Flat file COBOL file XML file Source Analyzer
Table View Synonym Warehouse Designer Database DEF Repository Repository Server
Repository Agent TCP/IP native DEF ODBC
9. Transformation Types
o Source Qualifier: reads data from Flat File and Relational Sources
o XML Source Qualifier: reads XML data
o Normalizer: reorganizes records from VSAM, Relational and Flat File
o Expression: performs row-level calculations
o Aggregator: performs aggregate calculations
o Filter: drops rows conditionally
o Router: splits rows conditionally
o Sorter: sorts data
11.
o Active Transformation
o Connected
o Ports
All input / output
o Specify a Filter condition
o Usage
Filter rows from flat file sources
Single pass source(s) into multiple targets
Best Practice is to copy these files in case a rerun of data is ever required. Reinitialize
when no longer needed, e.g. – at the beginning new month processing Example: When
triggered, PowerCenter Server will save new MTD totals. Upon next run (new totals),
Server will subtract old totals; difference will be passed forward MTD calculation
Performs heterogeneous joins on records from different databases or flat file sources
17. Sequence Generator Transformation Generates unique keys for any port on a row
o Passive Transformation
o Connected
o Ports
Two predefined output ports,
NEXTVAL and
CURRVAL
No input ports allowed
o Usage
Generate sequence numbers
Shareable across mappings
18. Lookup Transformation Looks up values in a database table and provides data to other
components in a Mapping
o Passive Transformation
o Connected / Unconnected
o Ports
o Mixed
o “L” denotes Lookup port
o “R” denotes port used as a return value (unconnected Lookup only)
o Specify the Lookup Condition
o Usage
o Get related values
o Verify if records exists or if data has changed
19. To Cache or not to Cache?
o Caching can significantly impact performance
o Cached
Lookup table data is cached locally on the Server
Mapping rows are looked up against the cache
Only one SQL SELECT is needed
o Uncached
Each Mapping row needs one SQL SELECT
o Rule Of Thumb : Cache if the number (and size) of records in the Lookup table is
small relative to the number of mapping rows requiring lookup
20. Update Strategy Transformation Used to specify how each individual row will be used to
update target tables (insert, update, delete, reject)
o Active Transformation
o Connected
o Ports
o All input / output
o Specify the Update Strategy Expression
o Usage
o Updating Slowly Changing Dimensions
o IIF or DECODE logic determines how to handle the record
21. Router Transformation Rows sent to multiple filter conditions
o Active Transformation
o Connected
o Ports
o All input/output
o Specify filter conditions for each Group
o Usage
o Link source data in one pass to multiple filter conditions
22. Router Groups
o Input group (always one)
o User-defined groups
o Each group has one condition
o ALL group conditions are evaluated for EACH row
o One row can pass multiple conditions
o Unlinked Group outputs are ignored
o Default group (always one) can capture rows that fail all Group conditions
23. Mappings
o By the end of this section you will be familiar with:
o Mapping components
o Source Qualifier transformation
o Mapplets
o Mapping validation
o Data flow rules
o System Variables
o Mapping Parameters and Variables
24. Mapplet Advantages
o Useful for repetitive tasks / logic
o Represents a set of transformations
o Mapplets are reusable
o Use an ‘instance’ of a Mapplet in a Mapping
o Changes to a Mapplet are inherited by all instances
o Server expands the Mapplet at runtime
25. Unsupported Transformations
o Use any transformation in a Mapplet except:
o XML Source definitions
o COBOL Source definitions
o Normalizer
o Pre- and Post-Session stored procedures
o Target definitions
o Other Mapplets
26. Object Sharing
o Reuse existing objects
o Enforces consistency
o Decreases development time
o Share objects by using copies and shortcuts
o Required security settings for sharing objects:
Repository Privilege: Use Designer
Originating Folder Permission: Read
Destination Folder Permissions: Read/Write
Created from a shared folder Copy from shared or unshared folder Preserves space
Duplicates space Dynamically reflects changes to original object Changes to original
object not captured Link to an object in another folder Copy object to another folder
SHORTCUT COPY
Example holds true with Normalizer in lieu of Source Qualifier. Exceptions are: Mapplet
Input and Joiner transformations DISALLOWED T T Active ALLOWED T Passive T
SYSDATE
Declare Variables and Parameters in the Designer Mappings menu Set the appropriate
aggregation type Set optional Initial Value User-defined names
45. Mapping Parameters and Variables Apply Parameter / Variable in formula
46. Functions to Set Mapping Variables
o SetCountVariable -- Counts the number of evaluated rows and increments or
decrements a mapping variable for each row
o SetMaxVariable -- Evaluates the value of a mapping variable to the higher of two
values
o SetMinVariable -- Evaluates the value of a mapping variable to the lower of two
values
o SetVariable -- Sets the value of a mapping variable to a specified value
47. Error Handling (Row Level)
o Reject files on Server store data rejected by the Writer and/or target database
o Conditions causing data to be rejected include:
Target database constraint violations, out-of-space errors, log space errors,
null values not accepted
Data-driven records, containing value ‘3’ or DD_REJECT
Target table properties ‘reject truncated/overflowed rows’
48.
o Thank you !