DBA Meeting December 2006 1 Supporting the MINOS MySQL Database at FNAL Nick West.

Slides:



Advertisements
Similar presentations
Connecting to Databases. connecting to DB DB server typically a standalone application Server runs on localhost for smaller sites –i.e. Same machine as.
Advertisements

Connecting to Databases. relational databases tables and relations accessed using SQL database -specific functionality –transaction processing commit.
Trnsport Test Suite Project Tony Compton, Texas DOT Charles Engelke, Info Tech.
QDV 7 Overview A powerful estimating tool designed to match up with your own specific methodologies.
SOFTWARE MAINTENANCE 24 March 2013 William W. McMillan.
The Ultimate Backup Solution.
Distributed DBMSs A distributed database is a single logical database that is physically distributed to computers on a network. Homogeneous DDBMS has the.
DISTRIBUTED DATABASE. Centralized & Distributed Database  Single site database – centralized database –A database is located at a single site or distributed.
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
Oxford Jan 2005 RAL Computing 1 RAL Computing Implementing the computing model: SAM and the Grid Nick West.
1 Foundations of Software Design Lecture 27: Java Database Programming Marti Hearst Fall 2002.
Database Infrastructure Major Current Projects –CDF Connection Metering, codegen rewrite, hep w/ TRGSim++ – Dennis –CDF DB Client Monitor Server and MySQL.
Confidential ODBC May 7, Features What is ODBC? Why Create an ODBC Driver for Rochade? How do we Expose Rochade as Relational Transformation.
Backup & Recovery Concepts for Oracle Database
Phil Brewster  One of the first steps – identify the proper data types  Decide how data (in columns) should be stored and used.
MIT Libraries’ FileMaker Use Policy as an example local DLC policy.
Transactions and Reliability. File system components Disk management Naming Reliability  What are the reliability issues in file systems? Security.
Version Control with Subversion. What is Version Control Good For? Maintaining project/file history - so you don’t have to worry about it Managing collaboration.
10/26/00Splitting Access Databases...1 Preparing for Access 2000 Windows 2000/Office 2000 Roll-out.
FireRMS SQL Audit, Archiving & Purging Presented by Laura Small FireRMS Quality Assurance.
CSC2012 Database Technology & CSC2513 Database Systems.
1. When things go wrong: how to find SQL error Sveta Smirnova Principle Technical Support Engineer, Oracle.
Multiplicity – Progress Data Replication Methodologies.
Chapter 7 PHP Interacts with Ms. Access (Open DataBase Connectivity (ODBC))
CD Databases & Systems Services & Lessons Learned Btev Workshop June 23, 2004 Updated July 2005 J.Trumbo Core Support Services, Database Systems Group.
An Investigation of Oracle and SQL Server with respect to Integrity, and SQL Language standards Presented by: Paul Tarwireyi Supervisor: John Ebden Date:
Database Technical Session By: Prof. Adarsh Patel.
Sofia, Bulgaria | 9-10 October SQL Server 2005 High Availability for developers Vladimir Tchalkov Crossroad Ltd. Vladimir Tchalkov Crossroad Ltd.
University of Maryland Bug Driven Bug Finding Chadd Williams.
Error reports as a source for SPI Tor Stålhane Jingyue Li, Jan M.N. Kristiansen IDI / NTNU.
End HomeWelcome! The Software Development Process.
MySQL. Dept. of Computing Science, University of Aberdeen2 In this lecture you will learn The main subsystems in MySQL architecture The different storage.
Irina Sourikova Brookhaven National Laboratory for the PHENIX collaboration Migrating PHENIX databases from object to relational model.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
© Blackboard, Inc. All rights reserved. Deploying a complex building block Andre Koehorst Learning Lab Universiteit Maastricht, the Netherlands July 18.
Putting it all together Dynamic Data Base Access Norman White Stern School of Business.
Copyright 2002, Jeremy Zawodny MySQL Backup & Recovery O’Reilly Open Source Convention Jeremy Zawodny Yahoo! Finance July 24th, 2002.
11 3 / 12 CHAPTER Databases MIS105 Lec15 Irfan Ahmed Ilyas.
Module 6: Implementing SQL Server Replication in an Enterprise Environment.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
Chapter 5 MYSQL Database. Introduction to MYSQL MySQL is the world's most popular open-source database. Open source means that the source code, the programming.
Chapter 1 Introduction to Databases. 1-2 Chapter Outline   Common uses of database systems   Meaning of basic terms   Database Applications  
ALMA Archive Operations Impact on the ARC Facilities.
Kjell Orsborn UU - DIS - UDBL DATABASE SYSTEMS - 10p Course No. 2AD235 Spring 2002 A second course on development of database systems Kjell.
02/09/2010 Industrial Project Course (234313) Virtualization-aware database engine Final Presentation Industrial Project Course (234313) Virtualization-aware.
Week 7 : Chapter 7 Agenda SQL 710 Maintenance Plan:
INTRODUCTION TO DBS Database: a collection of data describing the activities of one or more related organizations DBMS: software designed to assist in.
Oracle Warehouse Builder - Beta 1 New Features Jean-Pierre Dijcks.
PMT and HPD Databases University of Iowa HEP Eric Berry
NUMI MINOS GDM meeting 9 August 2005 MINOS Database Software Support Requirements MINOS Database Software Support Requirements D. Box, E. Buckley-Geer,
Database Issues Peter Chochula 7 th DCS Workshop, June 16, 2003.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
OPERATING SYSTEMS (OS) By the end of this lesson you will be able to explain: 1. What an OS is 2. The relationship between the OS & application programs.
Database recovery contd…
DEPTT. OF COMP. SC & APPLICATIONS
Integrating Disk into Backup for Faster Restores
How to Contribute to System Testing and Extract Results
Server Upgrade HA/DR Integration
Relational Database Management System
SQL and SQL*Plus Interaction
What, When, Why, Where and How SCC maintains your Oracle database
Popular Operating Systems
1Z0-320 Dumps
Introduction of Week 6 Assignment Discussion
Chapter 2: The Linux System Part 1
Lecture 1: Multi-tier Architecture Overview
Purge-it! USP's, pre-sales process & helping the customer to decide
Backup to Basics Tom Fox
Chapter 11 Managing Databases with SQL Server 2000
System Reengineering Restructuring or rewriting part or all of a system without changing its functionality Applicable when some (but not all) subsystems.
Presentation transcript:

DBA Meeting December Supporting the MINOS MySQL Database at FNAL Nick West

DBA Meeting December Outline Why are we asking? –We asked for, and get, ORACLE support. –Why isn’t that good enough? What are we asking for? –It terms of routine maintenance and recovery.

DBA Meeting December Why are we asking? A history lesson: A strategic plan that failed Original review – We get told: You Must use a proprietary db e.g. Oracle, not freeware e.g. MySQL as ultimate repository. Our Plan –Don't want all sites connecting to FNAL. –So need local site DBs replicated from FNAL. –Cannot afford ORACLE everywhere so use MySQL. –Need interface that works to both. –Implies ODBC type interface. –ROOT had work in progress: RDBC (ROOT's ODBC) that was to replace a primitive SQL interface. –Choose this and get community support. The plan begins –In January 2001 start work to implement early work directly to MySQL –Release of first working version in Feb –In May 2001 interface to RDBC with Valeriy Onuchin working directly to develop RDBC within MINOS.

DBA Meeting December History lesson: The plan fails! Plan failed both strategically & technically in two areas:- –Support –Running under oracle Support –To understand our support problems you have to understand the complex library structure:- TSQL Almost pure ABC implemented by... ODBC An adapter to... odbc++ That interfaces to... unixODBC The UNIX ODBC adapter to... backend ODBC client –Support failed in two areas:- Although promised, RDBC development was never accepted into ROOT and remained within our own code. odbc++ was essentially unsupported so we had to absorb it into our own code. Moreover its very heavy use of cpp macro making it hard to debug The result –We are now supporting 4 layers of code beyond our own!

DBA Meeting December History lesson: Oracle Support A long and miserable experience! –Start work in early 2004 and although eventually working at some level it has never made it into production! –Lesson: Oracle may be “industrial strength” but not when run on linux via freeware ODBC! Examples of the sorts of problems:- –Multiple server problems:- Running out of table space (multiple times) Crashing after applying security patches. Priming table Oracle wrongly reported duplicate rows (but inserted them and failed to insert others) –Multiple SQL translation issues including:- Date format Bitwise operators Table creation –Data types, Constraints, Synonyms … –Multiple problems in odbc++ layer:- Meta-data reporting problem in which char came back as varchar. Loosing error exceptions. Loosing floating point precision. Weird behaviour handling unsigned data in a cascade with MySQL.

DBA Meeting December ROOT SQL: The Second Coming! New developments in ROOT –The primitive SQL interface takes on new life! –In early 2005 ORACLE interface added. –By early 2006 major improvements across the module –It starts to look like a credible replacement for our DB layers In April 2006 –We decide to actively investigate. –Conclude: Looks feasible: –Functionality and performance look O.K. –Support looks good Requires a major re-write of our DatabaseInterface layer In July 2006 –Agreedwe will go for full reimplementation followed by migration so long as functionality and performance maintained. Will this be the end of our Oracle problem?

DBA Meeting December Oracle misery continues! Choice of 2 back-end –Oracle occi But locks us in to selected platforms. The future would be uncertain. We decide against it. –via ODBC to either freeware or Oracle supplied driver But have problems with –meta-data – in part because Oracle world view is “differently wired” –Double precision floating has limited exponent Just discovered –Oracle (against SQL standard?) treats an empty char string as a NULL –That breaks our hardware DB. Enough is enough! –MINOS is well into exploitation without ever using Oracle –Why are we still haemorrhaging effort into this project? –Why not give support to MySQL that has worked almost flawlessly?

DBA Meeting December So what do we want for MySQL support? Routine maintenance:- –Of the Software Moving the server on to new versions –So far we have moved once (or possibly twice) –So every ~ 18 months or so –Of the data All we need are regular (nightly) backups of the database files Recovery – when things go wrong –Of the Software Applying patches in cases of security incidents –Of the data Broken tables by repair if reasonable or restore of backup if not –So far Liz has had to fix tables once or twice. Our system has built-in recovery –It’s worth pointing out that we run a validated distribution system. –It sends out updates to all our critical tables in mysql1to multiple slave sites within an hour of receiving them. –So we can recover all critical tables from off-site databases if necessary.