📜 ⬆️ ⬇️

Life hacks for developers: efficient use of SQ (Source Qualifier) ​​in the Informatica Power Center

Hello to all Habroresidents!

We open the blog of RDTEX company with the first post with life hacks for developers. We hope that some of the readers will take advantage of them.

Life hacks were invented in the course of work on a project to transfer data from one system to another for the subsequent construction of reports in one of the leading banks in the Russian Federation.
')
Used technologies:

System Data Source - Oracle RDBMS (version 11.2.0.4.0)
Data Receiver System - Oracle RDBMS (Version 11.2.0.4.0)
Integration bus - Informatica (version 10.1.1)

During the implementation of a major integration project, we encountered the following problems:

1. Inefficient use of SQ [Source Qualifier] in the Informatica Power Center

When using the SQ [Source Qualifier] in the Informatica Power Center, a limit on the number of characters entered was revealed. The maximum number of characters allowed is 32767. An example of inappropriate use of the Source Qualifier is shown in the figure below:


Figure 1 Screenshot from SQ Informatica Power Center

This screenshot shows that spaces eat up character space, as a result of which complex SQL queries do not fully fit (i.e., they are truncated when inserted into Source Qualifier).

The figure below shows the correct use of Source Qualifier (changes are highlighted with a red marker):


Figure 2 Screenshot from SQ Informatica Power Center with a modified query

Moving to the next line and alignment was worth the Nth number of characters, removing which we could fit all the SQL code.

2. Incorrect conversion of infinitely large numbers

Infinitely large numbers were loaded into the Oracle database in the following format:

1267650600228230000000000000000

And should have been loaded in the format:

1267650600228229401496703205376
Those. values ​​were rounded, starting with a certain digit of the number.

We offer the following solution:

During the development of mappings in Informatica Power Center, the format of the field (for example, string) is immediately entered at a certain stage for values ​​that will definitely come large, while:


If we summarize the use of the tool, we can distinguish the following advantages :

  1. the tool is convenient for transferring large amounts of data, calculated by terabytes (for example, up to 25-30 tb), especially if you need to transfer them with a minimum number of conversions (almost one-to-one);
  2. the ability to automatically "pull" attributes (option Propagate Attributes), as well as the "backlight" inside the mapping (from where and where data is pulled);
  3. the ability to select the operation mode of both the ETL instrument and the ELT instrument (depending on the specific IT project).

And a few drawbacks for the objectivity of the picture:

  1. lack of "complex" data transformation logic;
  2. from the point of view of support of the tool itself and understanding of the logic of the operation of individual transformations, it is inferior to some competitors (for example, Oracle Data Integrator).

Source: https://habr.com/ru/post/433880/


All Articles