By César Urdaneta.  Purpose ◦ Replicate records from different tables (for inserting / updating record), from a source database to a target one, keeping.

Slides:



Advertisements
Similar presentations
The User Interface Making life easier for the user.
Advertisements

Introducing DB-123 A New Approach to Database Management Systems Thomas Schneider February 2004.
ADABAS to RDBMS UsingNatQuery. The following session will provide a high-level overview of NatQuerys ability to automatically extract ADABAS data from.
4 Oracle Data Integrator First Project – Simple Transformations: One source, one target 3-1.
Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
Field Audit Trail Lawson Learning
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 8 Application Data Auditing.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 8 Application Data Auditing.
Data Extraction, Cleanup & Transformation Tools
TDPS Wireless v Enhancements E1 - Multi load E2 - Driver time scheduler.
DB2 Tools Pertemuan 3 Matakuliah: T0413 Tahun: 2009.
1Key – Report Creation with DB2. DB2 Databases Create Domain for DB2 Test Demo.
ERWin Template Overview By: Dave Wentzel. Agenda u Overview of Templates/Macros u Template editor u Available templates u Independent column browser u.
Accounting System Design
NMD202 Web Scripting Week5. What we will cover today PHPmyAdmin Debugging – using print_r Modifying Data PHP (cont.) 4D Methodology File and IO operations.
Administering Microsoft SQL Server 2012 Databases.
NMED 3850 A Advanced Online Design February 25, 2010 V. Mahadevan.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
Some Introductory Programming 1. Structured Query Language - used for queries. - a standard database product. 2. Visual Basic for Applications - use of.
AGENDA Tools used in SQL Server 2000 Graphical BOL Enterprise Manager Service Manager CLI Query Analyzer OSQL BCP.
Pro Exchange SPAM Filter An Exchange 2000 based spam filtering solution.
Event Viewer Was of getting to event viewer Go to –Start –Control Panel, –Administrative Tools –Event Viewer Go to –Start.
Adapted from Afyouni, Database Security and Auditing Database Application Auditing – Ch. 8.
ORACLE Using ORACLE 8 SQL using ORACLE 8 PL/SQL using ORACLE 8.
Copyright 2007– WinWare, Inc. Session: How to Utilize the Open Database Architecture of CribMaster Presenter: Phil Stenger.
Data-tier Application, Import, Refactoring, Publish, Schema Comparison, Database Unit Testing Borislav Statev Telerik Software Academy academy.telerik.com.
The University of Akron Dept of Business Technology Computer Information Systems DBMS Functions 2440: 180 Database Concepts Instructor: Enoch E. Damson.
Web Based Inventory Site Building Room Asset Number Category Type Description Serial Number Manufacturer Model Vendor Name Acquired Date P O Number Budget.
Concepts of Database Management, Fifth Edition
Converting COBOL Data to SQL Data: GDT-ETL Part 1.
Module 7: Data Entry (REDCap)
Eurotrace Hands-On The Eurotrace File System. 2 The Eurotrace file system Under MS ACCESS EUROTRACE generates several different files when you create.
1099 Why Use InterBase? Bill Todd The Database Group, Inc.
2010 USER FORUM In The Data – Keeping it going Jaime Cummings & John Bonney.
Module 5: Upgrading to SQL Server 7.0. Overview Planning an Upgrade Preparing to Upgrade Verifying the Upgrade Setting a Compatibility Level.
A Brief Documentation.  Provides basic information about connection, server, and client.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting MySQL – Inserting Data.
EXAM 1 NEXT TUESDAY…. EXAMPLE QUESTIONS 1.Why is the notion of a “state” important in relational database technology? What does it refer to? 2.What do.
37 Copyright © 2007, Oracle. All rights reserved. Module 37: Executing Workflow Processes Siebel 8.0 Essentials.
 Replication is the process of copying database information  Replication is used for:  Backing up your database  Migrating to a new server  Mirroring.
PowerBuilder Online Courses - by Prasad Bodepudi Database Painter Primary & Foreign Keys Extended Attributes PowerBuilder System Tables Database Profiles.
Chapter Fourteen Access Databases and SQL Programming with Microsoft Visual Basic th Edition.
Microsoft FrontPage 2003 Illustrated Complete Integrating a Database with a Web Site.
Windows 7 WampServer 2.1 MySQL PHP 5.3 Script Apache Server User Record or Select Media Upload to Internet Return URL Forward URL Create.
Distributed Time Series Database
Enterprise manager Using the Enterprise manager. Purpose of the Enterprise Manager To design tables To populate / update tables To draw diagrams of tables.
Commercial RDBMSs: Office Access and Oracle Pertemuan 13 Matakuliah: M0564 /Pengantar Sistem Basis Data Tahun : 2008.
Ennis-Cole, AC 2.01, CECS Maintaining A Database By: Dr. Ennis-Cole.
IMS 4212: Application Architecture and Intro to Stored Procedures 1 Dr. Lawrence West, Management Dept., University of Central Florida
SQL Query Analyzer. Graphical tool that allows you to:  Create queries and other SQL scripts and execute them against SQL Server databases. (Query window)
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. DATABASE.
IMS 4212: Constraints & Triggers 1 Dr. Lawrence West, Management Dept., University of Central Florida Stored Procedures in SQL Server.
Integrating Crystal Reports with SIGNZ (V3.59, July 2008) Integrating Crystal Reports with SIGNZ (V3.59, July 2008)
SQL SERVER AUDITING. Jean Joseph DBA/Consultant Contact Info: Blog:
SSMS SQL Server Management System. SQL Server Microsoft SQL Server is a Relational Database Management System (RDBMS) Relational Database Management System.
SQL Triggers, Functions & Stored Procedures Programming Operations.
Programming with Microsoft Visual Basic 2012 Chapter 14: Access Databases and SQL.
SQL Advanced Monitoring Using DMV, Extended Events and Service Broker Javier Villegas – DBA | MCP | MCTS.
Unit 9 Seminar. Starting Reporting Services Reporting Service Started.
Agenda for Today  DATABASE Definition What is DBMS? Types Of Database Most Popular Primary Database  SQL Definition What is SQL Server? Versions Of SQL.
DBMS Programs MS SQL Server & MySQL
Welcome POS Synchronize Concept 08 Sept 2015.
The System Catalog Describing the Data Copyright © Curt Hill
Free Braindumps - Pass Exam - Dumps4download
Genetics UDF and RBS - Uses in the Real World
Unit I-2.
Updating Databases With Open SQL
Updating Databases With Open SQL
Presentation transcript:

By César Urdaneta

 Purpose ◦ Replicate records from different tables (for inserting / updating record), from a source database to a target one, keeping updated data from different catalogs.  Specific Objectives ◦ Send records, as they are inserted or updated from the database master toward slaves different databases in order to maintain data of those catalog up to date. ◦ Avoid human errors and rework, as result of loading information in all databases. ◦ Controlling the syncs of distinct tables, logging incidents in case of failure in data replication process.

BD Slave 1 After Insert Event After Update Event BD Slave 2 After Insert Event After Update Event BD Slave N After Insert Event After Update Event BD - Master The several tables has 2 triggers. Those triggers are AFTER INSERT for record inserted and AFTER UPDATE for record updated. Both triggers invoke Stored Procedures; whose they have the logic, validation rules for inserting / updating record and save within a log-table in case the failure on validation and other errors. The log is structured with 2 tables, whose purposed are storing general info of the error (timestamp, user, host, description) and detail (key-field, value). The project has a configuration table to indicate slaves DB to be used during the replication process. There are CRUD Stored Procedure that validate DB-Name entry with sysobjects table.

 LOG_REPLICACION_FALLIDA (REPLICATION_FAILURE_LOG) is the header table that contains basic information of the error.  LOG_CAMPOS_FALLIDOS (FIELDS_FAILURE_LOG) is the details table that contains the name of the Unique / PK Indexed Fields and their respective value.

Assuming that there is a database called 'REPLICA_1', as shown in the drawing on the left, write the name of the SP, as shown in the SQL Server Management Studio and press F5, being as shown in the screen below.

 There’s a Stored Procedure that generate triggers script given a table name.  The Stored Procedure validates the existence of the table given as parameter.  In the result panel, we select the trigger; copy into the clipboard, open a new query windows and paste the result.