Materialized views1 Materialized views (snapshot tables) Using Oracle.

Slides:



Advertisements
Similar presentations
Day 9. SELECT INSERT UPDATE DELETE » The standard UPDATE statement. UPDATE table SET field1=val1, field2=val2 WHERE condition » Multiple table UPDATE.
Advertisements

Active database concepts
Basic SQL Introduction Presented by: Madhuri Bhogadi.
SQL Views Chapter 3A. Appendix Objectives Learn basic SQL statements for creating views Learn basic SQL statements for using views Learn basic SQL statements.
On Replication July 2006 Yin Chen. What is? Why need? Types? Investigation of existing technologies –IBM SQL replication –Sybase replication –Oracle replication.
Revision of course For examination purposes. Outline of Examination Question 1 is compulsory and is worth 40%. There are five other questions, of which.
The SQL Query Language DML1 The SQL Query Language DML Odds and Ends.
Data Replication with Materialized Views ISYS 650.
View Sen Zhang. Views are very common in business systems users view of data is simplified a form of security - user sees only the data he/she needs to.
View and Materialized view. What is a view? Logically represents subset of data from one or more table. In sql, a view is a virtual relation based on.
INTEGRITY Enforcing integrity in Oracle. Oracle Tables mrobbert owner granted access.
CS 603 Data Replication in Oracle February 27, 2002.
Jennifer Widom SQL Data Modification Statements. Jennifer Widom Insert Into Table Values(A 1,A 2,…,A n ) SQL: Modifications Inserting new data (2 methods)
ADVANCE REPLICATION Oracle Coretech Surabaya (OCS) One Day Seminar Surabaya, August 30 th 2008.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 7-1 David M. Kroenke’s Chapter Seven: SQL for Database Construction and.
9 Chapter Nine Extracting and Transforming Data with SQL Server 2000.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Database Management Systems, 2 nd Edition. R. Ramakrishnan and J. Gehrke1 Data Warehousing and Decision Support Chapter 25, Part B.
Database Project Team 4 Group c v Menna Hamza Mohamad Hesham Mona Abdel Mageed Yasmine Shaker.
Materialized Views Acknowledgement to Author: Willie Albino.
Administration and Monitoring the Database Oracle 10g.
Part Two: - The use of views. 1. Topics What is a View? Why Views are useful in Data Warehousing? Understand Materialised Views Understand View Maintenance.
Stored procedures1 Stored procedures and functions Procedures and functions stored in the database.
Using Special Operators (LIKE and IN)
DBMS Implementation Chapter 6.4 V3.0 Napier University Dr Gordon Russell.
MySQL Database Connection
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 13 Subqueries and Views Part C. SQL Copyright 2005 Radian Publishing Co.
CpSc 3220 The Language of SQL The Language of SQL Chapters
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
Information Building and Retrieval Using MySQL Track 3 : Basic Course in Database.
SQL Basic. What is SQL? SQL (pronounced "ess-que-el") stands for Structured Query Language. SQL is used to communicate with a database.
Persistance Android. Adding Persistance SQL Refresher Understand how to create and migrate SQLLite database with android APIs. – Get all tasks – Add a.
Course FAQ’s I do not have any knowledge on SQL concepts or Database Testing. Will this course helps me to get through all the concepts? What kind of.
Database Management Systems II, Hyunja Lee1 Transaction Support in SQL.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
Database Design And Implementation. Done so far… Started a design of your own data model In Software Engineering, recognised the processes that occur.
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.
Chapter 13 Views Oracle 10g: SQL. Oracle 10g: SQL2 Objectives Create a view, using CREATE VIEW command or the CREATE OR REPLACE VIEW command Employ the.
MBA 664 Database Management Systems Dave Salisbury ( )
Assoc. Prof. Dr. Ahmet Turan ÖZCERİT.  Basic SQL syntax  Data retrieve  Data query  Data conditions  Arithmetic operations on data  Data transactions.
(SQL - Structured Query Language)
1 Announcements Reading for next week: Chapter 4 Your first homework will be assigned as soon as your database accounts have been set up.  Expect an .
DATABASE REPLICATION DISTRIBUTED DATABASE. O VERVIEW Replication : process of copying and maintaining database object, in multiple database that make.
A Guide to SQL, Eighth Edition Chapter Six Updating Data.
Advanced Databases More Advanced PL/SQL Programing 1.
SCALING AND PERFORMANCE CS 260 Database Systems. Overview  Increasing capacity  Database performance  Database indexes B+ Tree Index Bitmap Index 
Chapter 1 Database Access from Client Applications.
Materialized views (snapshot tables)
Oracle & SQL. Oracle Data Types Character Data Types: Char(2) Varchar (20) Clob: large character string as long as 4GB Bolb and bfile: large amount of.
Oracle 10g Database Administrator: Implementation and Administration Chapter 10 Basic Data Management.
1 11g NEW FEATURES ByVIJAY. 2 AGENDA  RESULT CACHE  INVISIBLE INDEXES  READ ONLY TABLES  DDL WAIT OPTION  ADDING COLUMN TO A TABLE WITH DEFAULT VALUE.
14 Copyright © 2004, Oracle. All rights reserved. Using Materialized Views.
SQL Triggers, Functions & Stored Procedures Programming Operations.
CSED421 Database Systems Lab View. Page 2  Virtual or logical table which is defined as SELECT query with joins  Act as table but not real data, only.
Distributed Database Management Systems
Advanced Accounting Information Systems
© 2016, Mike Murach & Associates, Inc.
Database Systems: Design, Implementation, and Management Tenth Edition
Working in the Form Builder Environment
ITEC 313 Database Programming
SQL Data Modification Statements.
PL/SQL Programing : Triggers
Chapter 13 Subqueries and Views
Database Processing: David M. Kroenke’s Chapter Seven:
Chapter 8 Advanced SQL.
So What are Views and Triggers anyway?
Updating Databases With Open SQL
Database SQL.
Updating Databases With Open SQL
Presentation transcript:

Materialized views1 Materialized views (snapshot tables) Using Oracle

Ordinary views vs. materialized views Ordinary views Virtual table Named select statement Part of the SQL standard Syntax –CREATE VIEW viewName AS selectStatement Materialized views Physical table Replication of master data at a single point in time Not part of the SQL standard Syntax –CREATE MATERIALIZED VIEW viewName AS selectStatement Materialized views2

3 Why use materialized views? Replicate data to non-master sites –To save network traffic when data is used in transactions Cache expensive queries –Expensive in terms of time or memory –Example: Sum, average or other calculations on large amounts of data

Materialized views4 Refreshing a materialized view Refresh types –Complete refresh Recreates the materialized view –Fast refresh Only changed data is refreshed Initiating a refresh –Scheduled refresh –On-demand refresh execute DBMS_REFRESH.REFRESH('hr_refg')

Materialized views5 Different kinds of materialized views Read-only –Insert, update or delete NOT allowed Updateable –Insert, update and delete on the view is allowed –Changes made to the view are pushed back to the master tables at refresh –SQL syntax CREATE MATERIALIZED VIEW viewName FOR UPDATE AS aSelectStatement Writeable –Insert, update and delete on the view is allowed –Changes made to the view are NOT pushed back to the master tables at refresh –SQL syntax Same as updateable. The difference lies in the definitio of “refresh groups” …