Reputation: 63
I would like to know if it's possible to create a temp table inside a mapping in ODI 12C.
Any suggestions would greatly be appreciated.
Upvotes: 1
Views: 4895
Reputation: 21
You can go to Oracle Data Integrator
you can go to the target command and write the below code
create global temporary table <%=odiRef.getTable( "L" , "TARG_NAME" , "A" )%>_gtbl (t1 number,t2 varchar2(100 char))
This code creates a temp table in target oracle database, the name of the table would be "_gtbl". For example, if you have an "ABC" table then your target temp table will be "ABC_gtbl".
Notice: Be careful, if you have the same schema for both tables (source and target) in a database LKM will not appear for you and you should use IKM instead of LKM.
Upvotes: 1