Designer Purpose Designer is used to create mappings and mapplets to specify how to move and transform data between source and targets Designer helps create the source definitions, target definitions and transformations to build mappings.
Designer Tools Source Analyzer – Import or create source definitions Warehouse Designer – Import or create target definitions Transformation Developer – Used to create reusable transformations Mapplet Designer – To create reusable Mapplets Mapping Designer – To create Mappings and non- reusable transformations
Transformations A transformation is an object that performs a specific function in a mapping, such as looking up data or performing calculation or aggregation.
Mappings Mappings represents data flow between source and targets. Mapping is used by Informatica server to read, transform and load data at the time of execution of an ETL task.
MappletsIt contains a set of transformations andallows you to reuse the transformation logicin multiple mappings. Mapplet can includesource definition also.
Designer WindowsNavigator WorkspaceStatus Bar Output
Designer Windows Navigator. Use to connect to and work in multiple repositories and folders. You can also copy and delete objects and create shortcuts using the Navigator. Workspace. Use to view or edit sources, targets, mapplets, transformations, and mappings. You can work with a single tool at a time in the workspace. You can use the workspace in default or workbook format. Status bar. Displays the status of the operation you perform. Output. Provides details when you perform certain tasks, such as saving your work or validating a mapping. Right-click the Output window to access window options, such as printing output text, saving text to file, and changing the font size.
Using Business DocumentationBusiness documentation provides details about arepository object or transformation expression.The Designer allows you to create and edit links tobusiness documentation that you have developed forrepository objects.The documentation must reside on a local machine,network server, or company intranet or internet website in a Windows environment.
Document Formats You can develop business documentation in HTML, PDF, or any text format, for the following repository objects: Sources and targets Transformations Mapplets Mappings
Specify Document path (Click on linkto open the document)
Designer TasksAdd a Repository In order to access information stored in a repository, Repository definition must be added to the designer. Once repository is added, the repository should be connected in order to access the information in it.
Open and Close Folder Once connected, the folders in repository become available in the left pane of designer window. Once in the folder, the designer tools can be used. Folder can be opened by double clicking it. Folder can be close by selecting it and disconnecting using the disconnect button.
SourcesSources can be created in source analyzer from: Relational tables, views or synonyms Cobol files Flat Files – Fixed width/delimited XML Sources Web Service ProviderSource definition is usually imported and notcreated as it should match exactly with source.
Updating source definitions Designer propagates the changes to mappings when the source definition changes. Mappings may become invalid in some cases like deleting a column used in mapping. Mappings need to be edited and revalidated in such cases.
TargetsTargets can be created using WarehouseDesigner: Relational Flat File XML
Target Creation Import target definition Create based on source definition by dragging source definition to Warehouse analyzer Manually create Target Definition Design several related targets and their relationship as a ‘Schema’. This is also used to create Cubes and Dimensions using wizards.
Create Target Tables In case of manual creation/editing of targets, Designer generates DDL and executes it to create target tables. This includes creation of new targets, dropping and creating changed targets or dropping and creation of indexes.
Exercise Compare Customer Relational target with customer flat file. Preview Source/Target Data
MappingMapping is an ETL Program.Every mapping must contain the following: Source Definition Transformation Target Definition Connectors It may also contain ‘Mapplets’
Creating a Mapping Create Source, Target and Reusable Objects Add Source and Targets (Drag in to Mapping) Add Transformation and Transform Logic Connect the Mapping Validate the Mapping Save the Mapping
Default Source Transformations ina MappingSources always need Transformations thatdetermine how the data is read andextracted based on its type Source Qualifier – Relational and Flat File Normalizer – Cobol Source Application Source Qualifier – Application Source XML Source Qualifier – XML Sources
Transformation Transformation is a repository object It generates, modifies and passes data Transform logic is defined in a transformation Informatica provides pre-built transforms Each transform has certain rules that apply to it Transforms can be created for reuse in multiple mappings
Ports Input Ports – Receive Data Output Ports – Pass Data Input/Output Ports – Receive data and pass it unchanged
Component Ports Sources - Only Output ports Targets - Only Input Ports Mapplets - Input/output ports Transformations – Depends on the transformation and its application
Linking Ports Manual Linking Autolinking – By Name – By Position
Source Qualifier Transformation By Default created for Relational and flat file sources Source qualifier qualifies a relational or flat file source definition in a mapping Source qualifier represents the rows that Informatica server reads when it executes a session Source qualifier displays transformation data types. These determine how the source database binds data when server reads it. Do not alter data types in Source qualifier
Validating Mapping Port Connection Validation – Required Ports are connected – All connections are valid Expression Validation Object Validation – Objects and their instances
Copying Objects Copy objects across folders Copy objects within folder
Creating shortcuts Shortcuts can be created by dragging objects into the destination shared folder or into mapping. Shortcuts can not be created in non-shared folders
Dependencies Designer allows developer to view dependencies to see the impact of changes being made. Dependencies can be viewed for source, target, transformation, mapplet and mappings. Example: primary key-foreign key dependency
Mapping Exercise Add Customer Source View Source Qualifier Properties Add Customer Target Manually Link Few Ports Auto link rest of the ports Validate and see validation result/Save Create Copy/Shortcuts View dependencies
Debugger Designer provides debugger to execute the mapping to determine the errors and data condition at multiple developer defined break points. Debugger uses a session on Informatica server
Debug Process Create Breakpoints Configure the Debugger Run the debugger Monitor the debugger – Debug Log – Target Window – Instance Window Modify Data and Break points
Configure Break Points Error – No Ports can be specified – Specify no. of errors before stopping Data – Global Specify no. of rows to skip before stopping “Any Port” set to IsNull or IsDefault No Port condition (Stops at defined row count) – Transformation Specify no. of rows to skip before stopping Specify Multiple Port Conditions for one Breakpoint Specify Multiple breakpoints
Transformation Conditions Data condition can be applied to following port parameters – Port Value – Row Type (Insert/Update/delete/reject) – Rowid – Any Port (IsNull/IsDefault)
Session Session object defines run time properties of a Mapping. – Connection details – Log file Names – DML operation – Etc. Session Types – Workflow Session – Debug Session
Debugger Session TypesIf Informatica server has executed the mapping already Existing non reusable session Existing reusable sessionIf it’s a new execution on the server New debug session
Configuring The Debugger Informatica Server and Session Types Session Information Session Configuration Target Options
Continuing the Debugger Continue to next break – Continues until encounters a breakpoint Continue to next instance – Continues until reaches next transformation or encounters a breakpoint Step to a specified instance – Continues until reaches the user selected transformation or encounters a breakpoint – Can not step to sources, targets, unconnected transformations
Modify Data When debugger pauses, current instance displays in instance window. Users can – Modify output data – Change Null data to Not Null Data – Change Not Null to Null – Modify Row Types (Insert/Update etc.)