Hi,
We are migrating our databases from Oracle to DB2.
And we are in the process of reviewing the challenges in migration.
We have migrated the data structures. Now, I need to migrate the ETL code and make it DB2 compliant, especially wrt scripts and SQL transforms used.
The jobs that I am migrating involve a large no of workflows /dataflows.
I would like to know if there is any way in which I can count the no of scripts and SQL transforms in the jobs (which need to changed to DB2 format) without having to manually dig into the details.
Wish I knew how to be of more help, but I will offer this bit of advice. Since you are having to rewrite anyway, get rid of the SQL transforms. And as many of the script SQL() calls as you can. It will save you alot of trouble in the long run and generally improve performance.
Well, I still dont have a way to find out the no of SQL transforms. But I have one to find out all the transforms used in a job and where.
Select * from (
SELECT LEVEL,parent_obj, descen_OBJ, descen_OBJ_type FROM
(select * from ALVW_PARENT_CHILD where descen_obj_type not in ('Datastore', 'Table'))
START WITH descen_OBJ = 'WF_EDW_EXPENSE_MODULE' CONNECT BY PRIOR DESCEN_OBJ= PARENT_OBJ
order by level)
where descen_obj_type = 'Transform'
The above query not only gives the transforms used, but if you remove the outer query, it also gives a list of all objects used (except datastore and tables… which you can change in the where clause).