ADVANCE REPLICATION Oracle Coretech Surabaya (OCS) One Day Seminar Surabaya, August 30 th 2008.

Slides:



Advertisements
Similar presentations
Oracle Materialized Views for Replication COUG Presentation, Feb 20, 2014 Jane Lamont,
Advertisements

Module 2: Database Architecture
Mecanismos de alta disponibilidad con Microsoft SQL Server 2008 Por: ISC Lenin López Fernández de Lara.
The State of the Art in Distributed Query Processing by Donald Kossmann Presented by Chris Gianfrancesco.
Distributed databases
High Availability Group 08: Võ Đức Vĩnh Nguyễn Quang Vũ
SQL Server Replication
Transaction.
Oracle Data Guard Ensuring Disaster Recovery for Enterprise Data
Chapter 13 (Web): Distributed Databases
Toolbox Mirror -Overview Effective Distributed Learning.
ABCSG - Distributed Database 1 Data Management Distributed Database Data Replication.
Data Replication with Materialized Views ISYS 650.
Overview Distributed vs. decentralized Why distributed databases
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.
EIM April 19, Robin Weaver 13 Years with IBM Prior to Assignment at UNC Charlotte Range of Database Development/Data Management Projects and Products.
Module 14: Scalability and High Availability. Overview Key high availability features available in Oracle and SQL Server Key scalability features available.
Distributed Databases
National Manager Database Services
SQL Server Replication By Karthick P.K Technical Lead, Microsoft SQL Server.
1 Distributed and Parallel Databases. 2 Distributed Databases Distributed Systems goal: –to offer local DB autonomy at geographically distributed locations.
IMS 4212: Distributed Databases 1 Dr. Lawrence West, Management Dept., University of Central Florida Distributed Databases Business needs.
Data Replication with Advanced Replication & Oracle Streams John Abrahams Technology Sales Consultant Oracle Nederland.
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
Sofia, Bulgaria | 9-10 October SQL Server 2005 High Availability for developers Vladimir Tchalkov Crossroad Ltd. Vladimir Tchalkov Crossroad Ltd.
CORE 2: Information systems and Databases CENTRALISED AND DISTRIBUTED DATABASES.
Windows 2000 Operating System -- Active Directory Service COSC 516 Yuan YAO 08/29/2000.
1 SQL Server 2000 Administration Kashef Mughal MSB.
Materialized Views Acknowledgement to Author: Willie Albino.
Massively Distributed Database Systems - Distributed DBS Spring 2014 Ki-Joune Li Pusan National University.
Module 11: Programming Across Multiple Servers. Overview Introducing Distributed Queries Setting Up a Linked Server Environment Working with Linked Servers.
Relational Databases. Database Large collection of data in an organised format to allow access and control DBMS Database Management System - Special software.
Module 11: Introducing Replication. Overview Introduction to Distributed Data Introduction to SQL Server Replication SQL Server Replication Agents SQL.
1 Configuring Advanced Replication Julian Dyke Independent Consultant Web Version - July 2009 juliandyke.com © 2009 Julian Dyke.
G063 - Distributed Databases. Learning Objectives: By the end of this topic you should be able to: explain how databases may be stored in more than one.
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
A Brief Documentation.  Provides basic information about connection, server, and client.
Chapter 15: Achieving High Availability Through Replication.
Distributed Databases
1 Distributed Databases BUAD/American University Distributed Databases.
Distributed database system
1 Principles of Database Systems With Internet and Java Applications Today’s Topic Chapter 15: Reliability and Security in Database Servers Instructor’s.
SQL Server 2005 Implementation and Maintenance Chapter 12: Achieving High Availability Through Replication.
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.
Enhancing Scalability and Availability of the Microsoft Application Platform Damir Bersinic Ruth Morton IT Pro Advisor Microsoft Canada
Introduction to Distributed Databases Yiwei Wu. Introduction A distributed database is a database in which portions of the database are stored on multiple.
Introduction to Active Directory
DATABASE REPLICATION DISTRIBUTED DATABASE. O VERVIEW Replication : process of copying and maintaining database object, in multiple database that make.
1 Active Directory Service in Windows 2000 Li Yang SID: November 2000.
 Distributed Database Concepts  Parallel Vs Distributed Technology  Advantages  Additional Functions  Distribution Database Design  Data Fragmentation.
SCALING AND PERFORMANCE CS 260 Database Systems. Overview  Increasing capacity  Database performance  Database indexes B+ Tree Index Bitmap Index 
Oracle9i Performance Tuning Chapter 11 Advanced Tuning Topics.
1 Chapters 21, 22, 23, 37  Ch. 21: SQL*Loader  Ch. 22: Database Links, Oracle Net  Ch. 23: Materialized Views (aka Snapshots)  Ch. 37: Data Dictionary.
14 Copyright © 2004, Oracle. All rights reserved. Using Materialized Views.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
3 Copyright © 2004, Oracle. All rights reserved. Database Architecture Comparison.
20 Copyright © 2006, Oracle. All rights reserved. Best Practices and Operational Considerations.
1 Copyright © 2005, Oracle. All rights reserved. Oracle Database Administration: Overview.
Chapter Name Replication and Mobile Databases Transparencies
Glasgow, SQL Server Meetup
Maximum Availability Architecture Enterprise Technology Centre.
A Technical Overview of Microsoft® SQL Server™ 2005 High Availability Beta 2 Matthew Stephen IT Pro Evangelist (SQL Server)
Distributed DBMS Concepts of Distributed DBMS
ADVANCE REPLICATION II
Introducing Scenario Network Data Editing and Enterprise GIS
Introducing Citilabs’ Scenario Based Master Network Data Model
Introduction.
06 | SQL Server and the Cloud
Presentation transcript:

ADVANCE REPLICATION Oracle Coretech Surabaya (OCS) One Day Seminar Surabaya, August 30 th 2008

AGENDA Introduction Master – View Replication Multimaster & Hybrid Case 1 (Master – View with subset) Case 2 (Full Schema & Cross OS & DB) Troubleshoot

Overview Of Replication User Transaction Site #1 Site #2 DatabaseReplica Database Replicate

Overview Of Replication Replication is the process of copying and maintaining database objects, such as tables,in multiple databases that make up a distributed database system.

Application Replication typically apply for multiple site enterpise application.  Central – remote site application  Autonomous remote sites  Data integration consistency

Advance Replication Benefit Oracle Advance Replication benefit:  Failover  Load Balancing (Site Autonomy)  Interoperability (Can replicate data beetween different platform)  Enable Data Subsetting

Oracle HA Road Map Integration 8i8i High Availability (HA) Oracle Streams Data Guard + SQL Apply (Logical Standby) Basic readable standby database (Physical Standby - Redo Apply) Data Guard + Fast-start failover + Reinstante Active Data Guard Basic Replication Advanced Replication 9i9i 10g 11g

Prerequites Knowledge Oracle Database Administrator (DBA) I : … 6. Database User Account : 7. Managing Schema Object : –Table –Index –View –…. 11. Configuring Oracle Network Env.

Materialized View (MV) View = stored select … query MView = View which is materialized from a single point of time = snapshot  table SNAPSHOT MATERIALIZED VIEW 9i10g11g7.0 – 7.38i8.0

Create Materialized View Updatable View : CREATE VIEW HR.V_COUNTRIES AS select * from hr.countries; Read Only MV : CREATE MATERIALIZED VIEW HR. MV_COUNTRIES AS select * from hr.countries;

Create Materialized View (2) Read Only View : CREATE VIEW HR.V_COUNTRIES2 AS select * from hr.countries WITH READ ONLY; Updatable MV : CREATE MATERIALIZED VIEW HR. MV_COUNTRIES2 FOR UPDATE AS select * from hr.countries;

View Vs MV SQL> Select TNAME, TAB from tab like '%COUNTRIES'; TNAME TAB ================ ===== COUNTRIES TABLE MV_COUNTRIES TABLE V_COUNTRIES VIEW SQL> select MVIEW_NAME, UPDATABLE from user_mviews; MVIEW_NAME U ==================== = MV_COUNTRIES N MV_COUNTRIES2 Y

Refresh Refresh Type  Complete  Fast  Force Refresh Method  Primary Key  Row ID

Refresh Refresh Interval  on demand  on commit  automatically on  never

Database Link Private & Fixed User CREATE DATABASE LINK hr.target_db CONNECT TO hr IDENTIFIED BY hr123 USING net_target; Public & Connected User CREATE DATABASE LINK PUBLIC target_db USING net_target; Current User CREATE DATABASE LINK target_db CONNECT TO CURRENT_USER USING net_target;

Materialized View Log CREATE MATERIALIZED VIEW LOG ON Hr.countries WITH PRIMARY KEY (country_id)

Refresh Group EXEC DBMS_REFRESH.MAKE ('group1', ‘mv_countries', SYSDATE, 'next_day(trunc(sysdate), '/*1:Hrs*/ sysdate + 1/24', FALSE, TRUE);

Advance Replication Type Materialized View Replication (Master – View ) Multimaster Replication Hybrid

Materialized View (Master – View) Master Site Materialized View Site

Multimaster peer-to-peer or n-way replication equally participating in an update-anywhere model Master Site Master Site Master Site Replication group Replication group Replication group tables orcl.site1 orcl.site2 prod.site3

Hybrid Master Site Master Site Master Site Mview Site

Master – View Master Site Materialized View Site tables mview Master Group mview log mview Group Database link

Step 1 Master Site Setup Create replication user adminitrator Create materialized view user administrator

Step 2 Master Site Group Create Master Site Group

Step 3 Materialized view Log Define tables to replicate then create materialized view log Add to Master Site Group

Step 4 Materialized View Site Setup Create materialized view user administrator Create Database link to master

Step 5 Materialized View Group Create Materialized View Group

Step 6 Materialized View Create Materialized View Add to Materialized View Group

Master – View using prebuilt table Master Site Materialized View Site tables Prebuilt tables Master Group mview log mview Group Database link

ADVANCE REPLICATION