14 Copyright © 2004, Oracle. All rights reserved. Using Materialized Views.

Slides:



Advertisements
Similar presentations
Refreshing Materialized Views
Advertisements

Oracle Materialized Views for Replication COUG Presentation, Feb 20, 2014 Jane Lamont,
17 Copyright © 2005, Oracle. All rights reserved. Performing Flashback.
ISOM Distributed Databases Arijit Sengupta. ISOM Learning Objectives Understand the concept and necessity of distributed databases Understand the types.
9 Copyright © 2004, Oracle. All rights reserved. Managing Data.
SQL Server Replication
Chapter 13 (Web): Distributed Databases
Data Replication with Materialized Views ISYS 650.
8 Copyright © Oracle Corporation, All rights reserved. Manipulating Data.
Hands-On Microsoft Windows Server 2003 Networking Chapter 7 Windows Internet Naming Service.
10 Copyright © 2009, Oracle. All rights reserved. Managing Undo Data.
Materialized views1 Materialized views (snapshot tables) Using Oracle.
Definition of terms Definition of terms Explain business conditions driving distributed databases Explain business conditions driving distributed databases.
CS 603 Data Replication in Oracle February 27, 2002.
Module 14: Scalability and High Availability. Overview Key high availability features available in Oracle and SQL Server Key scalability features available.
ADVANCE REPLICATION Oracle Coretech Surabaya (OCS) One Day Seminar Surabaya, August 30 th 2008.
17 Copyright © 2004, Oracle. All rights reserved. Automating Tasks with the Scheduler.
15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
Materialized Views Acknowledgement to Author: Willie Albino.
9 Copyright © 2004, Oracle. All rights reserved. Flashback Database.
18 Copyright © Oracle Corporation, All rights reserved. Workshop.
5 Copyright © 2004, Oracle. All rights reserved. Creating a Master-Detail Form.
1 Copyright © 2004, Oracle. All rights reserved. Introduction.
Module 1: Exploring Replication. Overview Understanding SQL Server Replication Setting Up Replication Understanding Agents in Replication Securing Replication.
Understanding SQL Server 2008 Change Data Capture Bret Stateham Training Manager Vortex Learning Solutions blogs.netconnex.com.
Copyright  Oracle Corporation, All rights reserved. 4 Accessing a Database Using JBCL.
16 Copyright © 2004, Oracle. All rights reserved. Undo Management.
LiveDist: Real-Time Distribution of Databases, with High-Volume of Updates Dynamic and selective distribution of a central or distributed database, to.
Views In some cases, it is not desirable for all users to see the entire logical model (that is, all the actual relations stored in the database.) In some.
Chapter 15: Achieving High Availability Through Replication.
Transportation: Loading Warehouse Data Chapter 12.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
14 Copyright © 2006, Oracle. All rights reserved. Automating Tasks with the Scheduler.
 Replication is the process of copying database information  Replication is used for:  Backing up your database  Migrating to a new server  Mirroring.
1 Chapter Overview Defining Operators Creating Jobs Configuring Alerts Creating a Database Maintenance Plan Creating Multiserver Jobs.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
Ing. Erick López Ch. M.R.I. Replicación Oracle. What is Replication  Replication is the process of copying and maintaining schema objects in multiple.
3 Copyright © 2006, Oracle. All rights reserved. Using Recovery Manager.
Managing Schema Objects
DATABASE REPLICATION DISTRIBUTED DATABASE. O VERVIEW Replication : process of copying and maintaining database object, in multiple database that make.
20 Copyright © 2008, Oracle. All rights reserved. Cache Management.
2 Copyright © 2007, Oracle. All rights reserved. Configuring for Recoverability.
Ch 12. Replication. Replication Place copies of data to a different location Use: Reduce locking conflict when multiple sites want to work on same set.
Materialized views (snapshot tables)
30 Copyright © 2009, Oracle. All rights reserved. Using Oracle Business Intelligence Delivers.
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
9 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Scheduling and Bursting Reports.
C Copyright © 2006, Oracle. All rights reserved. Integrating with Oracle Streams.
8 Copyright © 2005, Oracle. All rights reserved. Managing Schema Objects.
1 Copyright © 2006, Oracle. All rights reserved. Introduction.
20 Copyright © 2006, Oracle. All rights reserved. Best Practices and Operational Considerations.
Maintaining and Updating Windows Server 2008 Lesson 8.
17 Copyright © 2006, Oracle. All rights reserved. Information Publisher.
3 Copyright © 2006, Oracle. All rights reserved. Designing and Developing for Performance.
Distributed Databases
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
5 Copyright © 2005, Oracle. All rights reserved. Managing the Oracle Instance.
1 Copyright © 2005, Oracle. All rights reserved. Oracle Database Administration: Overview.
9 Copyright © 2006, Oracle. All rights reserved. Summary Management.
2 Copyright © 2008, Oracle. All rights reserved. Building the Physical Layer of a Repository.
11 Copyright © 2009, Oracle. All rights reserved. Enhancing ETL Performance.
9 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
10 Copyright © 2007, Oracle. All rights reserved. Managing Undo Data.
Distributed Database Management Systems
Performing Database Recovery
Presentation transcript:

14 Copyright © 2004, Oracle. All rights reserved. Using Materialized Views

14-2 Copyright © 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to: Use materialized views to access remote data using local queries Configure fast refresh for a materialized view

14-3 Copyright © 2004, Oracle. All rights reserved. Materialized Views Materialized views can be created to: –Replicate data to remote databases –Cache expensive queries in data warehouse environments A materialized view is a copy of a table or query result set from a single point in time. You can select data from a materialized view as you would from a table or view. The data in a materialized view can be synchronized with the source tables either manually or automatically at scheduled intervals.

14-4 Copyright © 2004, Oracle. All rights reserved. Refreshing Materialized Views To keep a materialized view up to date, it needs to be refreshed. There are three different ways to refresh a materialized view: –Complete –Fast –Force Pittsburgh Detroit

14-5 Copyright © 2004, Oracle. All rights reserved.

14-6 Copyright © 2004, Oracle. All rights reserved. Materialized View Logs Materialized view logs are used to support fast refresh for different types of materialized views. Materialized views which cannot fast refresh are called complex.

14-7 Copyright © 2004, Oracle. All rights reserved. Primary Key Materialized Views Uses the primary key of the source table to identify changed rows Default type of materialized view Requires an enabled primary key constraint on the source table CREATE MATERIALIZED VIEW job_mv REFRESH FAST START WITH sysdate NEXT sysdate + 1 WITH PRIMARY KEY AS SELECT * FROM

14-8 Copyright © 2004, Oracle. All rights reserved. Creating Materialized Views

14-9 Copyright © 2004, Oracle. All rights reserved. Updatable Materialized Views Updatable materialized views allow changes made at both the source site and the materialized view site to be synchronized: Materialized view changes are pushed up to the source site during refreshing. Changes to the source site are pulled down from source site during refreshing. Detroit Pull Push Pittsburgh

14-10 Copyright © 2004, Oracle. All rights reserved. Monitoring Materialized View Refresh Check the Database page for alerts: View materialized view details:

14-11 Copyright © 2004, Oracle. All rights reserved. Refresh Job Errors

14-12 Copyright © 2004, Oracle. All rights reserved. Monitoring Refresh Operations SELECT owner, mview_name, last_refresh_date FROM DBA_MVIEWS; OWN MVIEW_NAME LAST_REFRESH_DATE SH CAL_MONTH_SALES_MV 21-JAN :48 HR SITE1_JOBS 07-FEB :53 SELECT job, what, next_date, broken, failures FROM DBA_JOBS WHERE schema_user='HR'; JOB WHAT NEXT_DATE BROKEN FAILURES dbms_refresh.refresh('"HR"."SITE1_JOBS"'); 07-FEB-04 N 1

14-13 Copyright © 2004, Oracle. All rights reserved. Additional Distributed Data Technologies Oracle Change Data Capture Oracle Advanced Queuing Oracle Streams Gateway products and Generic Connectivity

14-14 Copyright © 2004, Oracle. All rights reserved.

14-15 Copyright © 2004, Oracle. All rights reserved. Summary In this lesson, you should have learned about: Using materialized views to access remote data using local queries Configuring fast refresh for a materialized view

14-16 Copyright © 2004, Oracle. All rights reserved.