I have developed some analytic views that use tables in a specific schema "SCHEMA_A" which has other table for stored procedures etc. However, I want to improve the performance of the views and need to remove a large portion of rows from those tables. I can't modify the tables in SCHEMA_A directly because they are also used by other things like procedures. Therefore, I was thinking to create a new schema called "SCHEMA_B", copy tables used in the views there, and delete rows from them. However, to make this work, I need to change the schema in the views from "SCHEMA_A" to "SCHEMA_B" but I couldn't find a way to do that. The table metadata is the same just the size is different. It looks like I have to rebuild all views to switch to another schema which doesn't make sense to me. Is there any trick to get around this? Maybe manually "search and replace" the schema name in the exported DU will work? Has anyone done this before?
Thanks,
Larry