sikyala
asked on
how do I create multiple materialized views using the same table from database link connection
I have a test virtual environment that i am trying to develop in the same way that production is currently configured. In production there are 5 materialized views that query data from another database. I am not the creator of the virtual environment. It is an inheritance. The person before me only created 4 of the materialized views in the virtual environment. I used the ddl from production to try to create the missing materialized view in the virtual environment. I kept getting the error message ORA-01031: insufficient privileges. I could query the table referenced in the materialized view that I was trying to create. I checked the privileges in production against the virtual environment and they were the same. After much searching i just started testing adding privileges. When I granted the schema in the virtual environment global query rewrite I got a new error. ORA-00955: name is already used by an existing object.
There is no other materialized view name in virtual environment that is already being used. I did notice that the tables that are referenced in the materialized views exist in the schema in the virtual environment. The table I am referencing in the materialized view is also used in 2 of the 5 materialized views.
4 of the 5 materialized views are being refreshed using force in production and the virtual environment. The one that I am trying to create is a complete refresh.
How do I successfully create the materialized view that is missing in the virtual environment?
There is no other materialized view name in virtual environment that is already being used. I did notice that the tables that are referenced in the materialized views exist in the schema in the virtual environment. The table I am referencing in the materialized view is also used in 2 of the 5 materialized views.
4 of the 5 materialized views are being refreshed using force in production and the virtual environment. The one that I am trying to create is a complete refresh.
How do I successfully create the materialized view that is missing in the virtual environment?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER