List of filer transformations
SELECT SUBSTR(WIDGET_NAME,1,3), COUNT(WIDGET_NAME)
FROM REP_ALL_TRANSFORMS
WHERE WIDGET_TYPE_NAME = 'Filter'
GROUP BY SUBSTR(WIDGET_NAME,1,3)
List of Sequence transformations
SELECT DISTINCT SUBJECT_AREA,
PARENT_WIDGET_NAME FROM
REP_ALL_TRANSFORMS WHERE
WIDGET_TYPE_NAME ='Sequence' ORDER BY 1,2
List of tables used as lookups
SELECT DISTINCT
B.PARENT_SUBJECT_AREA
AS FOLDER_NAME,
C.ATTR_VALUE
AS TABLE_NAME,A.INSTANCE_NAME AS
TRANSFORMATION_NAME, A.WIDGET_TYPE_NAME AS TRANSFORMATION_TYPE,B.MAPPING_NAME
FROM
REP_WIDGET_INST A INNER JOIN REP_ALL_MAPPINGS B ON A.MAPPING_ID = B.MAPPING_ID INNER JOIN
REP_WIDGET_ATTR C ON A.WIDGET_ID = C.WIDGET_ID
WHERE
C.ATTR_DESCRIPTION
LIKE 'Lookup
source table'
ORDER BY 1,2,3,4,5
List of transformations using sql
overrides
SELECT DISTINCT
d.subject_area
AS Folder, d.mapping_name, a.widget_type_name AS
Transformation_Type,
a.instance_name
as Transformation_Name, b.attr_name, b.attr_value, c.session_name
FROM
REP_WIDGET_INST a,
REP_WIDGET_ATTR b,
REP_LOAD_SESSIONS c,
REP_ALL_MAPPINGS d
WHERE b.widget_id = a. widget_id
AND b.widget_type = a. widget_type
AND b.widget_type in (3, 11)
AND c.mapping_id = a.mapping_id
AND d.mapping_id = a.mapping_id
AND b.attr_id= 1
AND b.attr_datatype=2 and b.attr_type=3
ORDER BY d.subject_area, d.mapping_name
informatica |
List all transformations
SELECT DISTINCT version_subject.subject_area
"FOLDER_NAME", version_props.object_name "OBJECT_NAME",
CASE
WHEN version_props.object_type = 1 THEN 'Source Definition'
ELSE CASE
WHEN version_props.object_type = 2 THEN 'Target Definition'
ELSE CASE
WHEN version_props.object_type = 3 THEN 'Source Qualifier'
ELSE CASE
WHEN version_props.object_type = 4 THEN 'Update Strategy'
ELSE CASE
WHEN version_props.object_type = 5 THEN 'Expression'
ELSE CASE
WHEN version_props.object_type = 6 THEN 'Stored Procedure'
ELSE CASE
WHEN version_props.object_type = 7 THEN 'Sequence'
ELSE CASE
WHEN version_props.object_type = 8 THEN 'External Procedure'
ELSE CASE
WHEN version_props.object_type = 9 THEN 'Aggregator'
ELSE CASE
WHEN version_props.object_type = 10 THEN 'Filter'
ELSE CASE
WHEN version_props.object_type = 11 THEN 'Lookup Procedure'
ELSE CASE
WHEN version_props.object_type = 12 THEN 'Joiner'
ELSE CASE
WHEN version_props.object_type = 13 THEN 'Procedure'
ELSE CASE
WHEN version_props.object_type = 14 THEN 'Normalizer'
ELSE CASE
WHEN version_props.object_type = 16 THEN 'Merger'
ELSE CASE
WHEN version_props.object_type = 17 THEN 'Pivot'
ELSE CASE
WHEN version_props.object_type = 18 THEN 'Session Obsolete'
ELSE CASE
WHEN version_props.object_type = 19 THEN 'Batch'
ELSE CASE
WHEN version_props.object_type = 20 THEN 'Shortcut'
ELSE CASE
WHEN version_props.object_type = 21 THEN 'Mapping'
ELSE CASE
WHEN version_props.object_type = 26 THEN 'Rank'
ELSE CASE
WHEN version_props.object_type = 27 THEN 'Star Schema'
ELSE CASE
WHEN version_props.object_type = 28 THEN 'Folder Version'
ELSE CASE
WHEN version_props.object_type = 29 THEN 'Folder'
ELSE CASE
WHEN version_props.object_type = 30 THEN 'Cube'
ELSE CASE
WHEN version_props.object_type = 31 THEN 'Dimension'
ELSE CASE
WHEN version_props.object_type = 32 THEN 'Level'
ELSE CASE
WHEN version_props.object_type = 33 THEN 'Hierarchy'
ELSE CASE
WHEN version_props.object_type = 34 THEN 'Fact Table'
ELSE CASE
WHEN version_props.object_type = 35 THEN 'General Object'
ELSE CASE
WHEN version_props.object_type = 36 THEN 'FTP Object'
ELSE CASE
WHEN version_props.object_type = 37 THEN 'Oracle External Loader Object'
ELSE CASE
WHEN version_props.object_type = 38 THEN 'Informix External Loader Object'
ELSE CASE
WHEN version_props.object_type = 39 THEN 'Sybase IQ External Loader Object'
ELSE CASE
WHEN version_props.object_type = 54 THEN 'Sybase IQ 12 External Loader Object'
ELSE CASE
WHEN version_props.object_type = 53 THEN 'Tera Data External Loader Object'
ELSE CASE
WHEN version_props.object_type = 40 THEN 'File Object'
ELSE CASE
WHEN version_props.object_type = 41 THEN 'Server Object'
ELSE CASE
WHEN version_props.object_type = 42 THEN 'Database Object'
ELSE CASE
WHEN version_props.object_type = 43 THEN 'Repository'
ELSE CASE
WHEN version_props.object_type = 44 THEN 'Mapplet'
ELSE CASE
WHEN version_props.object_type = 45 THEN 'Application Source
Qualifier' ELSE CASE
WHEN version_props.object_type = 46 THEN 'Input Transformation'
ELSE CASE
WHEN version_props.object_type = 47 THEN 'Output Transformation'
ELSE CASE
WHEN version_props.object_type = 50 THEN 'Advanced External Procedure'
ELSE CASE
WHEN version_props.object_type = 48 THEN 'Business Component Framework'
ELSE CASE
WHEN version_props.object_type = 49 THEN 'Business Component'
ELSE CASE
WHEN version_props.object_type = 51 THEN 'SAP Structure'
ELSE CASE
WHEN version_props.object_type = 52 THEN 'SAP Function'
ELSE CASE
WHEN version_props.object_type = 15 THEN 'Router'
ELSE CASE
WHEN version_props.object_type = 55 THEN 'XML Source Qualifier'
ELSE CASE
WHEN version_props.object_type = 56 THEN 'MQ Source Qualifier'
ELSE CASE
WHEN version_props.object_type = 57 THEN 'MQ Connection Object'
ELSE CASE
WHEN version_props.object_type = 58 THEN 'Command'
ELSE CASE
WHEN version_props.object_type = 59 THEN 'Decision'
ELSE CASE
WHEN version_props.object_type = 60 THEN 'Event Wait'
ELSE CASE
WHEN version_props.object_type = 61 THEN 'Event Raise'
ELSE CASE
WHEN version_props.object_type = 62 THEN 'Start'
ELSE CASE
WHEN version_props.object_type = 63 THEN 'Abort'
ELSE CASE
WHEN version_props.object_type = 64 THEN 'Stop'
ELSE CASE
WHEN version_props.object_type = 65 THEN 'Email'
ELSE CASE
WHEN version_props.object_type = 66 THEN 'Timer'
ELSE CASE
WHEN version_props.object_type = 67 THEN 'Assignment'
ELSE CASE
WHEN version_props.object_type = 68 THEN 'Session'
ELSE CASE
WHEN version_props.object_type = 69 THEN 'Scheduler'
ELSE CASE
WHEN version_props.object_type = 70 THEN 'Worklet'
ELSE CASE
WHEN version_props.object_type = 71 THEN 'Workflow'
ELSE CASE
WHEN version_props.object_type = 72 THEN 'SessionConfig'
ELSE CASE
WHEN version_props.object_type = 73 THEN 'Relational'
ELSE CASE
WHEN version_props.object_type = 74 THEN 'Application'
ELSE CASE
WHEN version_props.object_type = 75 THEN 'FTP'
ELSE CASE
WHEN version_props.object_type = 76 THEN 'External Loader'
ELSE CASE
WHEN version_props.object_type = 77 THEN 'Queue'
ELSE CASE
WHEN version_props.object_type = 78 THEN 'Reader'
ELSE CASE
WHEN version_props.object_type = 79 THEN 'Writer'
ELSE CASE
WHEN version_props.object_type = 80 THEN 'Sorter'
ELSE CASE
WHEN version_props.object_type = 81 THEN 'Vendor'
ELSE CASE
WHEN version_props.object_type = 84 THEN 'App Multi-Group Source Qualifier'
ELSE CASE
WHEN version_props.object_type = 91 THEN 'Control'
ELSE CASE
WHEN version_props.object_type = 92 THEN 'Transaction Control'
ELSE CASE
WHEN version_props.object_type = 97 THEN 'Custom Transformation'
ELSE CASE
WHEN version_props.object_type = 93 THEN 'Query'
ELSE CASE
WHEN version_props.object_type = 94 THEN 'Deployment Group'
ELSE CASE
WHEN version_props.object_type = 95 THEN 'Label'
ELSE CASE
WHEN version_props.object_type = 96 THEN 'Deployed Deployment Group'
ELSE CASE
WHEN version_props.object_type = 98 THEN 'Server Grid'
ELSE CASE
WHEN version_props.object_type = 99 THEN 'Profiling Ruleset'
ELSE CASE
WHEN version_props.object_type = 100 THEN 'Template Extension'
ELSE CASE
WHEN version_props.object_type = 101 THEN 'Global Profile Resource'
ELSE CASE
WHEN version_props.object_type = 102 THEN 'Web Services Hub'
ELSE CASE
WHEN version_props.object_type = 103 THEN 'Lookup Extension'
ELSE CASE
WHEN version_props.object_type = 105 THEN 'Service Level'
ELSE CASE
WHEN version_props.object_type = 106 THEN 'User Defined Function' ELSE 'Shortcut'
END
END
END
END
END
END
END
END
END
END
END
END
END
END END
END
END
END
END
END END END
END
END
END
END
END
END END
END
END
END
END
END
END
END
END
END
END
END END END END
END
END
END
END
END
END
END
END
END
END
END
END
END END
END
END
END END END
END
END
END
END
END
END
END
END END
END
END
END
END
END
END
END
END
END END END
END
END END
END
END
END
END
END
END
END
END "OBJECT_TYPE"
FROM rep_users version_users,
rep_version_props version_props,
rep_reposit_info version_reposit_info,
rep_subject version_subject
WHERE (version_props.user_id
= version_users.user_id
AND version_props.object_id <> version_reposit_info.repository_id
AND version_props.subject_id = version_subject.subject_id
)
ORDER BY 3, 1
List all Expression transformations
using ‘concat’ function
SELECT DISTINCT REP_ALL_MAPPINGS.SUBJECT_AREA, REP_ALL_MAPPINGS.MAPPING_NAME,
REP_WIDGET_INST.WIDGET_TYPE_NAME
AS TRANSFORMATION_TYPE,
REP_WIDGET_INST.INSTANCE_NAME
AS TRANSFORMATION_NAME,
REP_WIDGET_FIELD.FIELD_NAME
AS PORT_NAME,
CASE
WHEN
REP_WIDGET_FIELD.PORTTYPE
= 1 THEN 'I'
WHEN
REP_WIDGET_FIELD.PORTTYPE
= 2 THEN 'O'
WHEN
REP_WIDGET_FIELD.PORTTYPE
= 3 THEN 'IO'
WHEN
REP_WIDGET_FIELD.PORTTYPE
= 32 THEN 'V'
END AS PORT_TYPE,
REP_WIDGET_FIELD.EXPRESSION
FROM REP_WIDGET_INST, REP_WIDGET_FIELD, REP_ALL_MAPPINGS
WHERE REP_WIDGET_INST.WIDGET_ID = REP_WIDGET_FIELD.WIDGET_ID
AND REP_WIDGET_INST.MAPPING_ID = REP_ALL_MAPPINGS.MAPPING_ID
AND REP_WIDGET_INST.WIDGET_TYPE = 5
AND REP_WIDGET_FIELD.EXPRESSION LIKE '%CONCAT%'
ORDER BY 1
List of all port details of an
Expression transformations
SELECT S.SUBJ_NAME, W.WIDGET_NAME, F.FIELD_ID,F.FIELD_NAME,E.VERSION_NUMBER, E.EXPRESSION FROM OPB_WIDGET W, OPB_SUBJECT S, OPB_WIDGET_FIELD F, OPB_WIDGET_EXPR R, OPB_EXPRESSION E
WHERE W.SUBJECT_ID=S.SUBJ_ID AND W.WIDGET_ID=F.WIDGET_ID
AND W.WIDGET_ID=R.WIDGET_ID AND F.FIELD_ID=R.OUTPUT_FIELD_ID
AND W.WIDGET_ID=E.WIDGET_ID AND R.EXPR_ID=E.EXPR_ID
AND W.VERSION_NUMBER = F.VERSION_NUMBER
AND F.VERSION_NUMBER = R.VERSION_NUMBER
AND R.VERSION_NUMBER = E.VERSION_NUMBER
AND W.IS_VISIBLE = 1
AND W.WIDGET_NAME LIKE 'EXP_%'
ORDER BY 1,2,3
List of all Expression transformation
port links
SELECT DISTINCT S.SUBJ_NAME, WF.INSTANCE_NAME ||'.'|| F.FIELD_NAME
FROM_NAME, F.FIELD_ORDER AS EXP_PORT_ORDER,
WT.INSTANCE_NAME
||'.'|| T.FIELD_NAME TO_NAME,
T.FIELD_ORDER
FROM OPB_WIDGET Z, OPB_WIDGET_INST WF, OPB_WIDGET_INST WT,
OPB_WIDGET_FIELD F, OPB_WIDGET_FIELD T, OPB_WIDGET_DEP D, OPB_SUBJECT S
WHERE Z.SUBJECT_ID = S.SUBJ_ID
AND Z.IS_VISIBLE = 1
AND Z.WIDGET_ID = F.WIDGET_ID
AND Z.WIDGET_ID = WF.WIDGET_ID
AND Z.RU_VERSION_NUMBER = WF.VERSION_NUMBER
AND WF.REF_VERSION_NUMBER = F.VERSION_NUMBER
AND WF.VERSION_NUMBER = D.VERSION_NUMBER
AND WF.MAPPING_ID = D.MAPPING_ID
AND WF.INSTANCE_ID = D.FROM_INSTANCE_ID
AND F.FIELD_ID = D.FROM_FIELD_ID
AND D.TO_INSTANCE_ID = WT.INSTANCE_ID
AND D.TO_FIELD_ID = T.FIELD_ID
AND D.MAPPING_ID = WT.MAPPING_ID
AND D.VERSION_NUMBER = WT.VERSION_NUMBER
AND WT.WIDGET_ID = T.WIDGET_ID
AND WT.REF_VERSION_NUMBER = T.VERSION_NUMBER
--AND Z.WIDGET_NAME LIKE 'EXP_%'
AND S.SUBJ_NAME = :FOLDER_NAME
AND WF.INSTANCE_NAME = :EXP_NAME
ORDER BY 1,2,3
List of LKP transformation port
links used in all mappings
SELECT DISTINCT OPB_SUBJECT.SUBJ_NAME,OPB_MAPPING.MAPPING_NAME,
OPB_WIDGET_FIELD.FIELD_NAME FIELD_NAME,
OPB_EXPRESSION.EXPRESSION EXPRESSION
FROM OPB_WIDGET_EXPR, OPB_EXPRESSION, OPB_WIDGET_FIELD, REP_FLD_DATATYPE, OPB_WIDGET, OPB_SUBJECT,OPB_WIDGET_INST,OPB_MAPPING
WHERE
OPB_WIDGET_FIELD.WIDGET_ID = OPB_WIDGET.WIDGET_ID
AND OPB_WIDGET.SUBJECT_ID = OPB_SUBJECT.SUBJ_ID
AND OPB_WIDGET_INST.WIDGET_ID = OPB_WIDGET.WIDGET_ID
AND OPB_MAPPING.MAPPING_ID = OPB_WIDGET_INST.MAPPING_ID
AND OPB_WIDGET_FIELD.VERSION_NUMBER = OPB_WIDGET.VERSION_NUMBER
AND OPB_WIDGET.IS_VISIBLE = 1
AND OPB_WIDGET_FIELD.WIDGET_ID= OPB_WIDGET_EXPR.WIDGET_ID
AND OPB_WIDGET_FIELD.FIELD_ID= OPB_WIDGET_EXPR.OUTPUT_FIELD_ID
AND OPB_WIDGET_EXPR.WIDGET_ID=OPB_EXPRESSION.WIDGET_ID
AND OPB_WIDGET_EXPR.EXPR_ID=OPB_EXPRESSION.EXPR_ID
AND OPB_EXPRESSION.LINE_NO = 1
AND OPB_WIDGET_EXPR.VERSION_NUMBER = OPB_EXPRESSION.VERSION_NUMBER
AND OPB_WIDGET_EXPR.VERSION_NUMBER = OPB_WIDGET_FIELD.VERSION_NUMBER
--AND
OPB_SUBJECT.SUBJ_NAME = 'FOLDER_NAME'
--AND
OPB_MAPPING.MAPPING_NAME = 'MAPPING_NAME'
AND UPPER(EXPRESSION) LIKE '%LKP_ACCT_B%'
ORDER BY 1,2
Comments
Post a Comment