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
Solved

Problem refreshing Materialized View

Posted on 2006-06-22
5
1,150 Views
Last Modified: 2008-01-09
I have two schemas A and B within one database.  I have private synonyms in schema B for all the tables in schema A.  I have procedure in schema B which creates the Materialized view with full referesh.  This materialized view uses these private synonyms.  It has five queries with union.   When I execute this procedure in schema B, it just hangs.  Also, my DBA does not see any activity on database level.  When the DBA runs it on the server, his session also hangs.  When I run these queries individually, it works fine.  

Any suggestions??
0
Comment
Question by:dnabatra
5 Comments
 
LVL 14

Expert Comment

by:sathyagiri
ID: 16965399
Please could you post the queries?
0
 
LVL 3

Accepted Solution

by:
aalapsharma earned 250 total points
ID: 16966438
Use the following parameters while creating the MV:

NOPARALLEL
NOLOGGING
BUILD DEFERRED

Example:

Create materialized view <MV_Name>
NOPARALLEL
NOLOGGING
BUILD DEFERRED
REFRESH COMPLETE
as
(
Your query goes here
);

This will create the MV without populating the data.

Then you can manually refresh the MV using the "dbms_mview.refresh" procedure

Regards,
Aalap
0
 
LVL 16

Assisted Solution

by:MohanKNair
MohanKNair earned 250 total points
ID: 16977476
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20294556
Forced accept.

Computer101
EE Admin
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.

790 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