"RUPD$" tables

Hi,

I am replicating some tables using Mviews. In Master DB some RUPD$ tables are generated.
May i know what they are?
ajaybeldeAsked:
Who is Participating?
 
AnuroopsunddConnect With a Mentor Commented:
This is a temporary updatable snapshot log created for Java RepAPI. When the user creates
a PK snapshot log on a master table, or does an 'alter snapshot log add primary key',  in
addition to  MLOG$_<tablename>, a temporary table by name RUPD$_<tablename> is also
automatically created.   When the user gives 'Drop snapshot log on tablename', the
snapshot log as well as the temporary snapshot log are dropped.


http://asktom.oracle.com/pls/asktom/f?p=100:11:::::P11_QUESTION_ID:1300401907681
0
 
sdstuberCommented:
they should be temporary tables, so they'll appear empty most of the time unless your session happens to be doing an update on the mview.

and they only exist for updateable mviews, they are used internally by Oracle to manage the updates
0
 
ajaybeldeAuthor Commented:
I heared that rupd$ tables will be there when the mv log tables have primary keys. Is that true?
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
sdstuberCommented:
yes only mv's with primary keys will get those, and only for snapshots with fast refreshes, not complete
0
 
ajaybeldeAuthor Commented:
Ok Thanks!

So they will be dropped by themselves when i drop mview logs or i need to remove them manually while disabling replication between master & slave DBs?
0
 
sdstuberCommented:
yes, if you drop the mv logs, the rupd$ table should go with them
0
 
ajaybeldeAuthor Commented:
Thanks..My doubt is clear & i am closing this question.

Thanks Again!
0
 
sdstuberCommented:
on last thing,  in my first post ...

>>> an update on the mview.
>>> and they only exist for updateable mviews,

this was poor phrasing on my part

the rpud$ temp tables exist to manage the the updates on the source table INTO the mv
they exist whether the mv itself is updatable or not

sorry for any confusion
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.