I have created a VIEW using the CREATE OR REPLACE VIEW statement at the domain schema level.
create or replace VIEW SERV as
select loop.loop_serv serv, component.cmpnt_id,component.loop_id
from component,loop where component.loop_id = loop.loop_id
union select distinct ' ',0,0 from component,loop;
So if I login to the domain schema and run query - select * from domain1.SERV then I would get all the results as intended.
Now I have reuse the above create statement for all the domain schemas and if I want to see all the result in one go then I would use query with "union select" since as can be understood the view have the same format throughout.
select * from domain1.SERV union all
select * from domain2.SERV union all
select * from domain3.SERV union all
select * from domain4.SERV union all
select * from domain5.SERV union all
and so on until the last domain schema.
Now how could I create the same VIEW in the system level knowing that in the "all_object" table it will list my view (object_type='VIEW' and object_name='SERV') and the "owner" column would be all my domain schema list. The VIEW in this system level eg name say ALL_SERV where if I run query it would listed all the records from all the domain schemas.
So can you help?
I am not creating an object at all. I just want to create the same VIEW in the system level. The structure of the VIEW shall be the same of that I have created in the doamin level. I guess I have to create the VIEW pointing to each domain and that mean I have x number of views as the number of domain.
Any other simple way of doing this?