Unix Technical Forum

Updatable Materialized View and Master Table on same database

This is a discussion on Updatable Materialized View and Master Table on same database within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hi all, My first question - Is it possible to have an Updatable Materialized View and the associated Master ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 10:13 AM
cheeky
 
Posts: n/a
Default Updatable Materialized View and Master Table on same database

Hi all,
My first question - Is it possible to have an Updatable Materialized
View and the associated Master Table located on the same database?

This is the requirement scenario:
One unique database D exists.
A is a batch table. Only inserts are allowed on Table A.
M is an updatable materialized view on Table A (Master). Only updates
are allowed on M (no insert or delete).
Requirement is to push updates/changes from M to A periodically and
then get the new inserted records from A into M via a refresh.

Is this possible? What other approaches are applicable here?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 10:13 AM
DA Morgan
 
Posts: n/a
Default Re: Updatable Materialized View and Master Table on same database

cheeky wrote:
> Hi all,
> My first question - Is it possible to have an Updatable Materialized
> View and the associated Master Table located on the same database?


Yes.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 10:13 AM
cheeky
 
Posts: n/a
Default Re: Updatable Materialized View and Master Table on same database

DA Morgan wrote:
> Yes.
> --
> Daniel A. Morgan


Do I need to create Master Group and Materialized View Group to attain
this?

Thanks for your response(s)!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-08-2008, 10:14 AM
cheeky
 
Posts: n/a
Default Re: Updatable Materialized View and Master Table on same database

My question is related to the implementation and setup of the
environment as explained in the above example. How can I achieve this
considering that I have created an updatable m-view?

If possible, how do I push changes made to an updatable m-view back to
it's master table when/before I execute DBMS_MVIEW.REFRESH on the
m-view? What is the procedure to do this if both table and mview exist
on the same database? Do I need to create master groups, materialized
view refresh groups, etc.?

One more thing.. Is there a way to retain changes to the m-view during
refresh? In this case, only newly inserted/updated records in the
associated table would get inserted into m-view. Whereas changes made
to m-view records would stay as-is.

Hope my question is directed well. Thanks for your help.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com