Showing posts with label Source Qualifier. Show all posts
Showing posts with label Source Qualifier. Show all posts

Saturday, 25 April 2015

Informatica Repository Query to Find All the Source and Target connections in Your Respository

The below Informatica repository query can be used to get the Source Connections, Target connections of all the instances used in the informatica.

Apart from that we have details of the Folder, mapping name ,session name , and the connection name as shown in Informatica.

SELECT DISTINCT 

C.SUBJECT_AREA FOLDER_NAME, 
C.MAPPING_NAME MAPPING_NAME, 
C.SESSION_NAME SESSION_NAME, 
E.READER_WRITER_TYPE, 
E.INSTANCE_NAME, 
E.CNX_NAME, 

CASE 
WHEN E.WIDGET_TYPE = 2 
THEN
'TARGET CONNECTION' 
ELSE 
CASE 
WHEN E.WIDGET_TYPE IN
(1, 3, 56, 45, 55, 84) 
THEN 
'SOURCE CONNECTION' 
ELSE 
NULL 
END 
END CNX_TYPE 

FROM INFA_REPO.REP_VERSION_PROPS A, 
     INFA_REPO.REP_USERS B, 
     INFA_REPO.REP_LOAD_SESSIONS C, 
     INFA_REPO.REP_REPOSIT_INFO D, 
     INFA_REPO.REP_SESS_WIDGET_CNXS E 

WHERE ( A.USER_ID = B.USER_ID 
AND C.SESSION_ID <> D.REPOSITORY_ID 
AND C.SESSION_ID = A.OBJECT_ID 
AND C.SUBJECT_ID = A.SUBJECT_ID 
AND A.OBJECT_TYPE = 68 
AND C.SESSION_ID = E.SESSION_ID 
AND C.SESSION_VERSION_NUMBER = 
E.SESSION_VERSION_NUMBER)

Tuesday, 14 August 2012

Can we use WITH Clause in Source Qualifier Transformation?

Yes we can use WITH clause in Source Qualifier; it will be validated in the Source Qualifier transformation without any errors. But normally we don’t use With clause in Source Qualifier

Source Qualifier Query is not working when I run the workflow?

Check the below things when you counter error in a Source Qualifier :
  •  Always validate the source query before saving it and running the session.There may be  syntax  error.
  •  Check that the database login in both source qualifier and the corresponding  session are the same.
  •  Test the SQL query in some client tools like SQL developer and confirm that the data is correct
  •  Check that all joins are proper in the Source Qualifier
  •  Also make sure that all the ports in select list from the Source Qualifier is taken into the next level
  •  The order in which the cols are given in Source Qualifier query should be in same order   as its in the Ports tab
  •  Review the session log file if you need further information.
Related Posts Plugin for WordPress, Blogger...

ShareThis