Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

access data from Multiple Schema

4037831Dec 21 2024

hello

I am currently working with a Database with Multiple Schema's . Each schema represents a branch. Hence all objects are identical in name. So we have now close to 10 branches. when a new branch is opened we have another schema created. We have to consolidate the data from all these branches for different business requirements. for which there are views created accessing the branches

for example

customer_master_view will be like

select customer_no, customer_name, customer_add1 from branch1.customer

Union

select customer_no, customer_name, customer_add1 from branch2.customer

Union

select customer_no, customer_name, customer_add1 from branch3.customer

Union

select customer_no, customer_name, customer_add1 from branch3.customer

and so on ..

instead of this, is there a way where we can create this views dynamically

Need help and guidance on this

Thank you all

Saravanan

Comments
Post Details
Added on Dec 21 2024
3 comments
198 views