Data Distribution & Replication



Similar documents
Navicat Premium è uno strumento di amministrazione per database con connessioni-multiple, consente di connettersi

Oracle Database Links Part 2 - Distributed Transactions Written and presented by Joel Goodman October 15th 2009

MyOra 3.5. User Guide. SQL Tool for Oracle. Kris Murthy

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC

Database Extensions Visual Walkthrough. PowerSchool Student Information System

IBM Academic Initiative

Introduction to Oracle PL/SQL Programming V2.1 - Lessons 11-End

ArcSDE Configuration and Tuning Guide for Oracle. ArcGIS 8.3

Intelligent Motorola Portable Radio Energy System

Migrate Topaz databases from One Server to Another

Maximizing Materialized Views

Incremental Replication from SQL Server to Oracle. Kane McKenzie Liberty University

Virtuoso Replication and Synchronization Services

Oracle 11g DBA Online Course - Smart Mind Online Training, Hyderabad. Oracle 11g DBA Online Training Course Content

Module 14: Scalability and High Availability

Dictionary (catálogo)

Best Practices for Oracle Databases Hardening Oracle /

Oracle Easy Connect Naming. An Oracle White Paper October 2007

When an organization is geographically dispersed, it. Distributed Databases. Chapter 13-1 LEARNING OBJECTIVES INTRODUCTION

Distributed Databases

Oracle and Sybase, Concepts and Contrasts

How To Lock A File In A Microsoft Microsoft System

Distributed Database Guide Version: 00.01

Elenco Porte TCP/UDP

Main Points. File layout Directory layout

Oracle. Brief Course Content This course can be done in modular form as per the detail below. ORA-1 Oracle Database 10g: SQL 4 Weeks 4000/-

Developing SQL and PL/SQL with JDeveloper

ANTAREX. AutoTuning and Adaptivity approach for Energy efficient exascale HPC systems. Type of action: H2020: Research & Innovation Actions (RIA)

DBMS Questions. 3.) For which two constraints are indexes created when the constraint is added?

Source code security testing

DTI / Titolo principale della presentazione IPHONE ENCRYPTION. Litiano Piccin. 11 ottobre 2014

Accessing SQL Server Data from Oracle on Linux. for FREE!

CA ERwin Mart Server. Release Notes. Release 9.6.1

USING SAS WITH ORACLE PRODUCTS FOR DATABASE MANAGEMENT AND REPORTING

Topics Advanced PL/SQL, Integration with PROIV SuperLayer and use within Glovia

Institutional Data Integration Using ODBC with Oracle Heterogeneous ous Services. Mingguang Xu.

Setting up the Oracle Warehouse Builder Project. Topics. Overview. Purpose

Distributed Data Management

C.S.E. Nodi Tipici Parametrizzati al /04/2015 Copyright (c) Castalia srl

CA DataMinder. Database Guide. Release th Edition

22/11/ :08:30 Pag. 1/10

D B M G Data Base and Data Mining Group of Politecnico di Torino

Oracle Database Security

Database Assessment. Vulnerability Assessment Course

1 Changes in this release

Getting Dedicated with Shared Servers, and how not to.

Cloud Services: cosa sono e quali vantaggi portano alle aziende manifatturiere

Distributed Databases

Geo-Platform Introduction

Misurazione performance. Processing time. Performance. Throughput. Francesco Marchioni Mastertheboss.com Javaday IV Roma 30 gennaio 2010

Monitoring Audit Trails Using Enterprise Manager

VoiSmart Fax Server. Administrator and User Manual Versione 1.0.0

Lesson 201: Use of il quale

Dall Information Security alla Cyber Security, e ritorno

KofaxReporting. Administrator's Guide

Lezione 10 Introduzione a OPNET

Oracle DBA Course Contents

ROS Robot Operating System. Sistemi RealTime Prof. Davide Brugali Università degli Studi di Bergamo

New York Oracle Users Group (NYOUG) Long Island SIG. Oracle Data Integrator (ODI) Best Practices Do You Know How Flexible ODI Is?

OBIEE Cloning. Cloning the OBIEE 11g database migration to a new host. Ashok Thiyagarajan ADVANS MARLBOROUGH, MA AND CHENNAI, INDIA

Scenario. Roadmap. ! The simplified architecture! The complete architecture Pre-authentication Delegation. Realms

- ProFTPd: - ftp://ftp.proftpd.org/distrib/source/proftpd tar.gz

ipratico POS Quick Start Guide v. 1.0

SQL Server Replication Guide

System Copy GT Manual 1.8 Last update: 2015/07/13 Basis Technologies

MyOra 4.5. User Guide. SQL Tool for Oracle. Kris Murthy

CA Asset Portfolio Management

Querying Databases Using the DB Query and JDBC Query Nodes

SQL Server to Oracle A Database Migration Roadmap

In This Lecture. Security and Integrity. Database Security. DBMS Security Support. Privileges in SQL. Permissions and Privilege.

Technical Data Sheet: imc SEARCH 3.1. Topology

Intellicus Enterprise Reporting and BI Platform

news from Tom Bacon about Monday's lecture

Configuring and Integrating Oracle

Big Data, Big True. IDC Big Data Conference II, Bologna 19 novembre Fabio Rizzotto IT Research&Consulting Director, IDC Italy

Come utilizzare il servizio di audioconferenza

Exemplar. Novembre Cosima Fiaschi Fabrizio Trentini

Oracle IVR Integrator

Introduction to Triggers using SQL

Laboratorio di Sistemi Digitali M A.A. 2010/11

Sistemi di supporto alla cooperazione. Sistemi di supporto alla collaborazione, condivisione dell informazione

Cisco di Torino

Linas Virbalas Continuent, Inc.

SISTEMI vasca - lavabo / system bathtub - washbasin

Data Integration and ETL with Oracle Warehouse Builder: Part 1

PUBLIC INTERNATIONAL LAW

Tecnologie e Protocolli per Internet 1 Introduzione al NAT Network Address Translation

Intellicus Cluster and Load Balancing (Windows) Version: 7.3

Facebook: Cassandra. Smruti R. Sarangi. Department of Computer Science Indian Institute of Technology New Delhi, India. Overview Design Evaluation

ORACLE 9I / 10G / 11G / PL/SQL COURSE CONTENT

Programming with SQL

Programma corso di formazione J2EE

Transcription:

Distributed Databases Definitions Data Distribution & Replication A single logical database thatis spread physically across computers in multiple locations thatare connected by a data communications link. Decentralized Database. A collection of independent databases: Homogeneous - Same DBMS at each node. Autonomous - Independent DBMSs. Non-autonomous - Central, coordinating DBMS. Heterogeneous - Different DBMSs at different nodes. Oracle Client Server Sincrona - Asincrona Client / Server - Server / Server $HOME/network/ admin/tnsnames.ora ALIAS = (DESCRIPTION = (ADDRESS = (PROTOCOL= TCP (Host= xxx.yyy.zzz.www (Port= 1526 (CONNECT_DATA = (SID = O920 $HOME/network/ admin/listener.ora Tnsnames.ora Server 1 usr1 / pwd1 T1 TNS - TCP/IP connect system/manager; grant create database link to usr1; grant create synonym to usr1; Listener.ora Server 2 usr2 / pwd2 T2 Alias del tnsnames della macchina server 1 Processo Listener Processo Server x Connessione Dedicata connect usr1/pwd1; create database link dbms2 connect to usr2 identified by pwd2 using alias2 ; create synonym S2 for T2@dbms2; $HOME/network/ admin/sqlnet.ora

Two-Phase Commit Case Study Data Distribution Prepare Phase Coordinator receives a commit request Coordinator instructs all resource managers to get ready to go either way on the transaction. Each resource manager writes all updates from that transaction to its own physical log. Coordinator receives replies from all resource managers. If all are ok, it writes commit to its own log; if not then it writes rollback to its log. Commit Phase Coordinator then informs each resource manager of its decision and broadcasts a message to either commit or rollback (abort. If the message is commit, then each resource manager transfers the update from its log to its database. A failure during the commit phase puts a transaction in limbo. Oracle Offers Rows Filter Where SnapShot Read Only Fields Filter Select SnapShot WriteAble Multi Master Site SnapShot UpDateAble CREATE SNAPSHOT snap_unito TABLESPACE tablespace_unito PCTFREE n STORAGE (INITIAL n NEXT n PCTINCREASE 0 MINEXTENTS 1 MAXEXTENTS 121 WITH [ PRIMARY KEY ROWID ] REFRESH [ FAST COMPLETE FORCE ] START WITH date NEXT date AS subquery;

Sempre applicabile - Nessun vincolo architetturale REFRESH [ FAST COMPLETE FORCE ] Se possibile adotta tecnica Fast altrimenti Complete Applicabile solo: 1 Se la select è definibile semplice ovvero: a appoggia su un solo oggetto di tipologia tabellare b è priva di costrutti quali group by, order by e subquery 2 Esiste lato Master un Log 3 Il Log esiste da tempo utile per supportare il nuovo refresh CREATE SNAPSHOT snap_unito TABLESPACE tablespace_unito PCTFREE n STORAGE (INITIAL n NEXT n PCTINCREASE 0 MINEXTENTS 1 MAXEXTENTS 121 WITH [ PRIMARY KEY ROWID ] REFRESH [ FAST COMPLETE FORCE ] START WITH date NEXT date FOR UP AS subquery; Note Base: Modifiche in aggiornamento mono direzionale (da Master verso Slave Modifiche perse al successivo refresh Applicazioni in ambiti prevalentemente di simulazione SnapShot View SnapShot View Master Table SnapShot Base Table Master Table SnapShot Base Table Refresh Operation Refresh Operation SnapShot Log View of Changed SnapShot Log View of Changed Log of Change

SNP Background Processes Job Schedulati Job Ready Job List Job ReadyList Next? Caso di Failure 1 Tentativo dopo 1 Minuto 2 Tentativo dopo 2 Minuti 3 Tentativo dopo 4 Minuti n Tentativo dopo 2^(n-1 Minuti con 3<n<17 Compatibile con l intervallo di ri-programmazione del Job DBMS_JOB Package To schedule and manage jobs in the job queue, use the procedures in the DBMS_JOB package. There are no database privileges associated with using job queues. Any user who can execute the job queue procedures can use the job queue. Submitting a Job to the Job Queue To submit a new job to the job queue, use the SUBMIT procedure in the DBMS_JOB package: DBMS_JOB.SUBMIT ( job OUT BINARY_INTEGER, what IN VARCHAR2, next_date IN DEFAULT SYS, interval IN VARCHAR2 DEFAULT null, no_parse IN BOOLEAN DEFAULT FALSE declare jobno number; begin DBMS_JOB.SUBMIT (jobno, begin procedura_unito01(1, X ; end;, SYS, SYS + 1 ; commit; end; DBMS_JOB Package Broken Jobs A job is labeled as either broken or not broken. Oracle does not attempt to run broken jobs. However, you can force a broken job to run by calling the procedure DBMS_JOB.RUN. There are two ways a job can break: * Oracle has failed to successfully execute the job after 16 attempts. * You have marked the job as broken, using the procedure DBMS_JOB.BROKEN. DBMS_JOB.BROKEN ( job IN BINARY_INTEGER, broken IN BOOLEAN, next_date IN DEFAULT SYS Once a job has been marked as broken, Oracle will not attempt to execute the job until you either mark the job as not broken, or force the job to be executed by calling the procedure DBMS_JOB.RUN.

DBMS_JOB Package In conclusione citiamo le viste del dizionario dati che consentono un monitoring della schedulazione: USER_JOBS DBA_JOBS DBMS_JOB.CHANGE (job IN binary_integer, what IN varchar2, next_date IN date, interval IN varchar2 ; DBMS_JOB.REMOVE (job IN binary_integer, ; JOB LOG_USER PRIV_USER SCHEMA_USER LAST_ LAST_SEC THIS_ THIS_SEC NEXT_ NEXT_SEC TOTAL_TIME BROKEN INTERVAL FAILURES WHAT CURRENT_SESSION_LABEL CLEARANCE_HI CLEARANCE_LO NLS_ENV MISC_ENV NOT NULL NOT NULL VARCHAR2(1 NOT NULL VARCHAR2(200 VARCHAR2(2000 VARCHAR2(2000 RAW(32 DBA_JOBS_RUNNING SID JOB FAILURES LAST_ LAST_SEC THIS_ THIS_SEC Conflict Resolution In modalità Asincrona possono verificarsi conflitti che possono minare la consistenza e l integrità dei dati. Sono prevalentemente di tre tipologie: Update Uniqueness Delete Oracle offre sistemi di Definizione & Risoluzione Automatica dei Conflitti time stamp minimum value maximum value highest priority site highest priority value average. custom solution