Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rollback seg materialized view

Status
Not open for further replies.
May 28, 2003
1
US
is it possible to assign a materialized view to use a specified rollback segment?
 
Yes, Shelley, you can assign a specific rollback segment for any transaction (regardless of what you plan on doing in the transaction) with the following code:
Code:
commit;
Set transaction use rollback segment <rbs-name>;
the "commit" prior to the set is just to ensure that your "set transaction" statement is the first statement in the transaction.

Let us know if this produces the effect that you wanted.


[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[ Providing low-cost remote Database Admin services]
Click here to join Utah Oracle Users Group on Tek-Tips if you use Oracle in Utah USA.
 
Specify the rollback segment in the refresh clause of your create statement, like:
Code:
CREATE MATERIALIZED VIEW mv_demo
 REFRESH COMPLETE USING ROLLBACK SEGMENT yourRBS
 AS 
 SELECT * 
   FROM yourTable;
(unverified, as I don't have any DB still using rbs)

Stefan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top