Part of a reporting toolkit we use for our development is configured to always use the same schema (say XYZZY
).
However, certain customers have stored their data in a different schema PLUGH
. Is there any way within DB2/z to alias the entire schema XYZZY
to refer to the objects in schema PLUGH
?
The reporting toolkit runs on top of ODBC using the DB2 Connect Enterprise Edition or Personal Edition 9.1 drivers.
I know I can set up individual aliases for tables and views but we have many hundreds of these database objects and it will be a serious pain to do the lot. It would be far easier to simply have DB2 auto-magically translate the whole schema.
Keep in mind we're not looking for being able to run with multiple schemas, we just want a way to redirect all requests for database objects to a single, differently named, schema.
Of course, if there's a way to get multiple schemas on a per-connection basis, that would be good as well. But I'm not helpful.