Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

how do I create multiple materialized views using the same table from database link connection

Posted on 2014-03-31
2
Medium Priority
?
1,072 Views
Last Modified: 2014-04-09
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?
0
Comment
Question by:sikyala
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
Wasim Akram Shaik earned 2000 total points
ID: 39967366
you may be creating it with the same name which already exists in the database.. try to recreate it with a different name and use a synonym to point it to the created object.
0
 

Author Closing Comment

by:sikyala
ID: 39989353
You were absolutely right. There was a table with the exact same name. I deleted it and I was able to create the materialized view.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question