Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Materailized view

This is a discussion on Materailized view within the Oracle forums, part of the Databases category; What is the use of a materialized view? I created a materialized view as follows Create materialized view xxx tablespace sagar_test refresh complete start with sysdate next sysdate+1 enable query ...

Go Back   Geeks Talk > Databases > Oracle
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Oracle Oracle 9i & Oracle 10g Knowledge Base Learn and Share Oracle Technology related articles, white papers, tutorials / study materials, example codes, FAQ's, Tips and Tricks.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-26-2007
Expert Member
 
Join Date: Sep 2007
Posts: 738
Thanks: 22
Thanked 67 Times in 65 Posts
krishnaindia2007 is on a distinguished road
Materailized view

What is the use of a materialized view?

I created a materialized view as follows

Create materialized view xxx
tablespace sagar_test
refresh complete
start with sysdate
next sysdate+1
enable query rewrite
as
select *
from ab


Then I inserted two records in the table ab. But these two records are not updated in view xxx. How to update these two records ?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-26-2007
Expert Member
 
Join Date: Apr 2007
Location: Bangalore
Posts: 517
Thanks: 30
Thanked 63 Times in 61 Posts
susarlasireesha will become famous soon enough
Re: Materailized view

A materialized view is a database object that contains the results of a query. They are local copies of data located remotely, or are used to create summary tables based on aggregations of a table's data. Materialized views, which store data based on remote tables are also, know as snapshots.

A materialized view can query tables, views, and other materialized views. Collectively these are called master tables (a replication term) or detail tables (a data warehouse term).

For replication purposes, materialized views allow you to maintain copies of remote data on your local node. These copies are read-only. If you want to update the local copies, you have to use the Advanced Replication feature. You can select data from a materialized view as you would from a table or view.

For fast refresh use

create materialized view log on emp

Create materialized view empmview
tablespace tspa
parallel
build immediate
refresh fast on commit
as
select *
from emp
note :for fast refresh option Materialized view log is created on base table
Reply With Quote
  #3 (permalink)  
Old 11-26-2007
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,853
Thanks: 9
Thanked 168 Times in 142 Posts
debasisdas has a spectacular aura aboutdebasisdas has a spectacular aura about
Re: Materailized view

A materialized view is mainly used for replication purpose.
Reply With Quote
Reply

  Geeks Talk > Databases > Oracle

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
How to view constraints? Bhuvana07 Oracle 6 02-13-2009 07:27 PM
Insert values in view amaravadi.krishna81 OOPS 3 05-28-2008 08:00 AM
Normal View, Materialised View and Bitmap Index Geek_Guest Oracle 3 05-28-2008 12:59 AM
Not able to view the script Geek_Guest LoadRunner 5 01-23-2008 08:15 PM
A View Doubt krishnaindia2007 Oracle 5 11-13-2007 08:59 AM


All times are GMT -4. The time now is 08:49 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved