Sometimes you have to make some changes in your physical model, because of changes in the underlying datamodel. This could be a lot of work. In this case UDML could come in handy. I am sure Andreas Nobbmann will agree.
Picture the following;
When you want to change the actual source of your physical table you realize that you should have used an alias instead of the actual physical table.
What to do?
With the following scripting you can change the physical table to an alias of a different physical table. This could also be used to change the source of an already existing alias or multiple aliases, or add columns etc.
For an example and reference of how to use udml to change a repository variable script-wise, please check Venkat’s ‘old’ blog.
Produce a UDML script of your source repository:
Look for the definition of your physical table in source.udml. The definition runs from “DECLARE TABLE” until “PRIVILEGE ( READ);”
Copy the statement to a seperate text-file:
Modify the statement and add new source to physical table:
In essence the physical table “DIM_TABLE_CONF_1” will become an alias which references a different physical table “DIM_TABLE_CONF_3”.
Save as update.udml
nqudmlexec -U Administrator -P Administrator -I C:\temp\udml\update_source.udml -B C:\oracle\bise1\bi\server\Repository\OBIBB.rpd -O C:\oracle\bise1\bi\server\Repository\updated_OBIBB.rpd
Check the result in the updated repository, in this case; updated_OBIBB.rpd