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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Materialized View Update

Status
Not open for further replies.

THoey

IS-IT--Management
Jun 21, 2000
2,142
US
Hi all,

Just need to check to see if I did something right. I have created a Materialized View on a local instance of a table from a distant database instance. I want this MView to refresh every hour. I created the view and the log file with the following code:
Code:
-- CREATE MATERIALIZED VIEW LOG ON TABLE ON MASTER DATABASE:

CREATE MATERIALIZED VIEW LOG ON CFG_GROUP 
PCTFREE 5 TABLESPACE CME2TS01 
STORAGE (INITIAL 10K NEXT 10K); 

-- CREATE MATERIALIZED VIEW ON TABLE ON SLAVE DATABASE:

CREATE MATERIALIZED VIEW MV_CFG_GROUP
PCTFREE 5 PCTUSED 60 
TABLESPACE DM_DAT 
STORAGE (INITIAL 50K NEXT 50K) 
USING INDEX STORAGE (INITIAL 25K NEXT 25K)
REFRESH FAST 
START WITH ROUND(SYSDATE) + 06/24 
NEXT SYSDATE + 01/24 
AS SELECT * FROM CFG_GROUP@CCT1;
I can see the view as a local table and it is filled with data. The question I have is whether the view is setup right to refresh every hour. I do not own the distant end source table, so I cannot change it to test it.

Does this look right?

Thanks in advance.

Terry
**************************
* General Disclaimer - Please read *
**************************
Please make sure your post is in the CORRECT forum, has a descriptive title, gives as much detail to the problem as possible, and has examples of expected results. This will enable me and others to help you faster...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top