How to compare file header with ODI datastore structure in Oracle Data Integrator ?
Every time when I have to process the file then I need to make sure that File Column Names and Sequence is correct or not as I have made in ODI Datastore ? If sequence is incorrect then I have to fail the job and notify that File is incorrect.
By using below query I am able to get ODI Datastore information in an ODI Variable (i.e C1,C2,C3,C4 etc)
SELECT TABLE_NAME,
RTRIM (XMLAGG (XMLELEMENT (E, COL_NAME
|| ',')).EXTRACT ('//text()'), ',') COL_NAMES
FROM
(SELECT T.TABLE_NAME,
C.COL_NAME,
C.POS