top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

find the list of mapping and workflow affecting the particular table in informatica

0 votes
1,549 views

Can anyone tell me how to find the list of mapping and the workflow that are using a particular table say X either as a source or target table?

posted Jan 13, 2015 by Amit Sharma

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Informatica metadata repository stores and maintains information about all the objects in Informatica.So , you have to write an external query to find this :
SELECT SUBJECT_AREA , MAPPING_NAME
FROM REP_ALL_MAPPINGS
where MAPPING_NAME in (
SELECT MAPPING_NAME FROM REP_SRC_MAPPING
where SOURCE_NAME ='X')

And to find workflows :

 select REP_WORKFLOWS.SUBJECT_AREA, REP_WORKFLOWS.WORKFLOW_NAME
 from dbo.REP_WORKFLOWS
 join dbo.REP_WFLOW_RUN
 on REP_WORKFLOWS.WORKFLOW_ID = REP_WFLOW_RUN.WORKFLOW_ID
 where REP_WORKFLOWS.SUBJECT_AREA  in 
 (SELECT   SUBJECT_AREA 
  FROM REP_ALL_MAPPINGS
  where MAPPING_NAME in (SELECT MAPPING_NAME FROM REP_SRC_MAPPING
  where SOURCE_NAME ='X'));
answer Jan 16, 2015 by Shweta Singh
Similar Questions
0 votes

For cleaning up unused IPC-Sources I need a Repository Query for getting Workflow, Session, Mapping and Source/Target of Mapping.I have startet by joining REP_LOAD_SESSIONS and REP_TBL_MAPPING on mapping_id but only a fraction of mappings seem to be present in the joined output. I can't find the right tables to join to get the job done. Any help will be greatly appreciated!

+2 votes

Is there any environment variable which holds the value of task ran ?

+2 votes

My question is very similar to the one below, but on a informatica environment:

Retrieving the index of an inserted row

Here is a brief summary of the issue: I'm trying to figure out how I can insert a row into a table and then find out what the value of the auto_incremented id column was set to so that I can insert additional data into another table. Our target is SQL server 2008. We have a table which has to be populated by informatica ETLs and the application is also using the same table - so, we can't use informatica sequence generator.

In the past when I have used Oracle database, there was a Oracle sequence generator transformation available in Informatica - but for SQL server, I am not sure.

Any solutions please?

0 votes

Suppose if we have duplicate records in a table temp_n. Now I want to pass unique values to t1 and duplicate values to t2 in single mapping? How can we achieve?

+1 vote

I'm not exactly sure if it will cause an issue or not. But in our environment whenever selecting from large tables we need to include WITH(nolock) otherwise we get deadlocks between select statements and Informatica real time replication trying to populate those tables. Currently we are looking to use SQL jobs to purge old records from tables. Most tables will have less than 1000 rows deleted once a week. During initial purge process there will be several tables that will have millions of records deleted.

Not sure if it would be better to pause real time replication for duration of the purge or just to try to resolve conflicts once those arise.

I don't have a good way to test this in Dev environment because don't have same volume of people hitting server with request, real time updates and everything else that makes up normal load in production. In production this will be running once a week during slow hours that should minimize total load but still don't want to crash Informatica every time this is running.

Note: this question is NOT about how to write delete statements in SQL or breaking delete in small chunks but rather how to avoid conflicts with real time replication with Informatica product.

Database - SQL Server 2012
Replication - Informatica 9.0.1

...