ADVANCE REPLICATION II

Slides:



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

Prligence Empowering Intelligence 1 Painless Master Table Alter In Replication Paper # 524 Arup Nanda prligence Empowering Intelligence.
SQL Server Replication
On Replication July 2006 Yin Chen. What is? Why need? Types? Investigation of existing technologies –IBM SQL replication –Sybase replication –Oracle replication.
Data Replication with Materialized Views ISYS 650.
Harvard University Oracle Database Administration Session 2 System Level.
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.
1 Introducing Scenario Network Data Editing and Enterprise GIS January 27, 2010 Minhua Wang, Ph.D. Citilabs, Inc.
ADVANCE REPLICATION Oracle Coretech Surabaya (OCS) One Day Seminar Surabaya, August 30 th 2008.
The powerhouse PL/SQL upgrade option: Edition-Based Redefinition (EBR)
Getting Started with Oracle11g Abeer bin humaid. Create database user You should create at least one database user that you will use to create database.
Module 7: Implementing Sites to Manage Active Directory Replication.
CHAPTER 6 Users and Basic Security. Progression of Steps for Creating a Database Environment 1. Install Oracle database binaries (Chapter 1) 2. Create.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 6 Virtual Private Databases.
CSIS 4310 – Advanced Databases Virtual Private Databases.
Security David Frommer Principal Architect Business Intelligence Microsoft Partner of the Year 2005 & 2007.
IS 221: DATABASE ADMINISTRATION Lecture 6:Create Users & Manage Users. Information Systems Department 1.
7 Copyright © 2004, Oracle. All rights reserved. Administering Users.
9 Copyright © 2007, Oracle. All rights reserved. Managing Data and Concurrency.
Oracle Dependencies Analyzer ODA Over time, in large companies we see many Legacy systems that work with several Databases, this.
1 Configuring Advanced Replication Julian Dyke Independent Consultant Web Version - July 2009 juliandyke.com © 2009 Julian Dyke.
Roles & privileges privilege A user privilege is a right to execute a particular type of SQL statement, or a right to access another user's object. The.
Dale Roberts 1 Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
1 All Powder Board and Ski Oracle 9i Workbook Chapter 10: Distributed Databases Jerry Post Copyright © 2003.
8 Copyright © 2005, Oracle. All rights reserved. Managing Data.
Controlling User Access Fresher Learning Program January, 2012.
COSC 3480 Projects, Christoph F. Eick 1 Lab COSC 3480 Fall 2000.
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.
MGA Duplica Replication Tool. 1. High Availability and Avoidance of Data Loss  Replicate to alternate databases 2. Split activities across databases.
Chapter 5 : Integrity And Security  Domain Constraints  Referential Integrity  Security  Triggers  Authorization  Authorization in SQL  Views 
IST 318 Database Administration Lecture 9 Database Security.
DATABASE REPLICATION DISTRIBUTED DATABASE. O VERVIEW Replication : process of copying and maintaining database object, in multiple database that make.
Chapter 6 Virtual Private Databases
Oracle9i Performance Tuning Chapter 11 Advanced Tuning Topics.
Materialized views (snapshot tables)
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.
11 GLOBAL CATALOG AND FLEXIBLE SINGLE MASTER OPERATIONS (FSMO) ROLES Chapter 4.
Status of tests in the LCG 3D database testbed Eva Dafonte Pérez LCG Database Deployment and Persistency Workshop.
SQL SERVER AUDITING. Jean Joseph DBA/Consultant Contact Info: Blog:
14 Copyright © 2004, Oracle. All rights reserved. Using Materialized Views.
8 Copyright © 2005, Oracle. All rights reserved. Managing Schema Objects.
20 Copyright © 2006, Oracle. All rights reserved. Best Practices and Operational Considerations.
Slide 1 © 2016, Lera Technologies. All Rights Reserved. Oracle Data Integrator By Lera Technologies.
Client Warehouse Builder Your Chance to Learn! Why Would I Use It? Have some custom tables you want to warehouse and report off of Have additional reporting.
HR Training - new features, new reports and how to use them, questions
Welcome POS Synchronize Concept 08 Sept 2015.
Controlling User Access
Controlling User Access
Oracle structures on database applications development
Controlling User Access
Controlling User Access
Managing Privileges.
Automating with Job Streams
Antonio Abalos Castillo
IS221: Database Management
The powerhouse PL/SQL upgrade option: Edition-Based Redefinition (EBR)
OER- UNIT 3 Authorization
Global Catalog and Flexible Single Master Operations (FSMO) Roles
Ch 3 Synonym.
Ch 3 Synonym.
Chapter 2 Views.
Cloud Data Replication with SQL Data Sync
Chapter 2 Views.
Ch 3 Synonym.
Chapter 1 Introduction.
Introducing Scenario Network Data Editing and Enterprise GIS
Chapter 3 Synonym.
Presentation transcript:

ADVANCE REPLICATION II Oracle Coretech Surabaya (OCS) One Day Seminar by Bukhari Yahya

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

Data Subsetting with MView Reasons : Reduce Network Traffic Secure Sensitive Data Reduce Resource Requirements Improve Refresh Times Types : Object Column Row CREATE MATERIALIZED VIEW hr.employees REFRESH FAST AS SELECT * FROM hr.employees@jaya WHERE where department_id=50;

Materialized View Row Subset with Subquery CREATE MATERIALIZED VIEW oe.orders REFRESH FAST FOR UPDATE AS SELECT * FROM oe.orders@orc1.world o WHERE EXISTS (SELECT * FROM oe.customers@orc1.world c WHERE o.customer_id = c.customer_id AND c.credit_limit > 10000);

Materialized view Union query CREATE MATERIALIZED VIEW hr.employees REFRESH FAST AS SELECT * FROM hr.employees@jaya UNION SELECT * FROM hr.employees@jaka

Multimaster Jayapura Master Site Master Master Site Site Jakarta Surabaya

Replication Object Tables Indexes Procedures, Fucntions, Triggers & Packages Synonyms

Step 1 Master Site Setup Create replication user administrator at every master sites Create database link Grant a permission to replicated schema Schedule

Step 2 Master Group Create Master Group

Step 3 Master Replication Object Create Materialized View Log Create Master Replication Object Generate Replication object Depedency table!!!

Step 4 Add Master Site Add Master Site

Multimaster Topology

Hybrid Master Site Master Site Master Site Mview Site

Hybrid Topology

Another Hybrid Example

Multitier Materialized View

Multitier Materialized View

Multimaster Vs Materialized View MView Supported Object Tables, Index, PL/SQL Tables Two ways replicat. Yes Data subsetting Object Object, Column, Row Network Loads More Less

Designing for Survivability Advance Replication or RAC?

Case 1 (Replication :1 Headquarter site, 4 branch site with subset data) Hq Site Site 1 Site 4 Site 2 Site 3

Materialized View Replication with subset Hq Site Master Site Site 1 Site 4 Site 2 Site 3 Mview Site Mview Site Mview Site Mview Site

Materialized View with subset Updatable Materialized view using subset criteria query at each branch site : Create Materialized View … for update as select ... from … where site_id =

Case 2 : Replication Full Schema Cross OS Master Site Windows Master Site

Full Schema Cross OS & DB Mview Site Windows Master Site

Conflict Resolution Conflict Types : Update Uniqueness Delete 8 prebuilt update conflict resolution methods timestamp and the overwrite conflict resolution methods are the most commonly use

Troubleshoot Troubleshooting Replication Problem : Database Link Mview Site Troubleshooting Replication Problem : Database Link Refresh Job Master Site Master Site

Broken Database Link Causes : Network outage Database Link Target unaccesable BEGIN ALTER SESSION CLOSE DATABASE LINK remote_db; SELECT table_name INTO i FROM all_tables@remote_db WHERE rownum = 1; EXCEPTION WHEN OTHERS THEN RAISE_APPLICATION_ERROR(-20999, 'No Connection'); END;

Broken Job Prompt entries in the job queue Prompt replication Status: select job, last_date, last_sec, next_date, next_sec, broken, failures,what from sys.dba_jobs where schema_user = 'REPADMIN'; Prompt replication Status: select sname, master, status from sys.dba_repcat;

Resolve replication Resolve replication alternative : Re-run related job dbms_job.run(5); Re-run related refresh dbms_refresh.refresh(‘grp1’); Resume for Master Site : DBMS_REPCAT.RESUME_MASTER_ACTIVITY('REP_TEST_SETS',true);

Oracle Coretech Surabaya (OCS) One Day Seminar ADVANCE REPLICATION Oracle Coretech Surabaya (OCS) One Day Seminar by Bukhari Yahya Thank You