Page 1JSOC Review – 17 March 2005 Database Maintenance Karen Tian

Slides:



Advertisements
Similar presentations
Introduction to Oracle
Advertisements

Best Practices for Backing Up Your System
 Management has become a multi-faceted complex task involving:  Storage Management  Content Management  Document Management  Quota Management.
DataBase Administration Scheduling jobs Backing up and restoring Performing basic defragmentation and index rebuilding Using alerts Archiving.
SQL Server Best Practices Keep Your Database In Top Performance Shape and Maintain Effective Backups September, 2007 Richard Kokoski.
Monday, 08 June 2015Dr. Mohamed Osman1 What is Database Administration A high level function (technical Function) that is responsible for ► physical DB.
Page 1JSOC Review – 17 March 2005 Database Servers Challenges A very large database on the order of a few TB -- We can't copy the whole database in real.
Keith Burns Microsoft UK Mission Critical Database.
Backup The flip side of recovery. Types of Failures Transaction failure –Transaction must be aborted System failure –Hardware or software problem resulting.
Page 1JSOC Review – 17 March 2005 DRMS Core System Karen Tian
CS27510 Commercial Database Applications. Maintenance Maintenance Disaster Recovery Disaster Recovery.
Database Backup and Recovery
Agenda  Overview  Configuring the database for basic Backup and Recovery  Backing up your database  Restore and Recovery Operations  Managing your.
Chapter 9 Overview  Reasons to monitor SQL Server  Performance Monitoring and Tuning  Tools for Monitoring SQL Server  Common Monitoring and Tuning.
Presented by Joseph Galvan & Stacy Kemp BACKUPS.  Using database backups, a database administrator (DBA’s) can restore from the last backup or to a specific.
Transaction log grows unexpectedly
Oracle backup and recovery strategy
Oracle Database High Availability Brandon Kuschel Jian Liu Source: Oracle Database 11g Release 2 High Availability An Oracle White Paper November 2010.
Backup & Recovery Concepts for Oracle Database
MOVE-4: Upgrading Your Database to OpenEdge® 10 Gus Björklund Wizard, Vice President Technology.
Administration etc.. What is this ? This section is devoted to those bits that I could not find another home for… Again these may be useless, but humour.
Building Highly Available Systems with SQL Server™ 2005 Vineet Gupta Evangelist – Data and Integration Microsoft Corp.
SQL Server 2008 Implementation and Maintenance Chapter 7: Performing Backups and Restores.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
IT The Relational DBMS Section 06. Relational Database Theory Physical Database Design.
1 Chapter 12 File Management Systems. 2 Systems Architecture Chapter 12.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Sofia, Bulgaria | 9-10 October SQL Server 2005 High Availability for developers Vladimir Tchalkov Crossroad Ltd. Vladimir Tchalkov Crossroad Ltd.
TEMPDB Capacity Planning. Indexing Advantages – Increases performance – SQL server do not have to search all the rows. – Performance, Concurrency, Required.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
Mark A. Magumba Storage Management. What is storage An electronic place where computer may store data and instructions for retrieval The objective of.
Module 16: Performing Ongoing Database Maintenance
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
Week 7 : Chapter 7 Agenda SQL 710 Maintenance Plan:
Database structure and space Management. Segments The level of logical database storage above an extent is called a segment. A segment is a set of extents.
1618Tb SDDS storage BE-CO-IN. Proposal Upgrade operational LHC_DATA to 1.1 Tbytes with the same operational level : – New faster technology (SAS disks.
IT Database Administration Section 09. Backup and Recovery Backup: The available options Full Consistent (cold) Backup Database shutdown, all files.
Connect with life Vinod Kumar Technology Evangelist - Microsoft
Learningcomputer.com SQL Server 2008 – Backup and Restore Database.
3 Copyright © 2005, Oracle. All rights reserved. Creating an Oracle Database.
2 Copyright © 2007, Oracle. All rights reserved. Configuring for Recoverability.
Maintenance Practices. Goal  Automate the necessary DBA chores to put organizations on the path of having healthier, consistent and more trustworthy.
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
CNAF Database Service Barbara Martelli CNAF-INFN Elisabetta Vilucchi CNAF-INFN Simone Dalla Fina INFN-Padua.
Praveen Srivatsa Director| AstrhaSoft Consulting blogs.asthrasoft.com/praveens |
You Inherited a Database Now What? What you should immediately check and start monitoring for. Tim Radney, Senior DBA for a top 40 US Bank President of.
Jeremy Kingry, eBECS | ADVANCED SQL SERVER FOR ADMINS AND ANALYSTS.
Oracle Standby Implementation Tantra Invedy. Standby Database Introduction Fail over Solution Disaster Recovery Solution if remote Ease of implementation.
Vacuum ● Records deleted or obsoloted by an update are not reclaimed as free space and cannot be reused ● Vacuum claims that space for the system to reuse,
ProgressBook Suite Maintenance
Oracle Database High Availability
Database recovery contd…
Planning for Application Recovery
Database Administration
You Inherited a Database Now What?
Archiving and Document Transfer Utilities
Client/Server Databases and the Oracle 10g Relational Database
Database structure and space Management
AlwaysOn Mirroring, Clustering
A Technical Overview of Microsoft® SQL Server™ 2005 High Availability Beta 2 Matthew Stephen IT Pro Evangelist (SQL Server)
Oracle Database High Availability
Introduction of Week 6 Assignment Discussion
Introduction of Week 3 Assignment Discussion
Your Data Any Place, Any Time
Database Backup and recovery
You Inherited a Database Now What?
ISYS366, Oracle Disk Internals
February 11-13, 2019 Raleigh, NC.
Database Backup and Recovery
Presentation transcript:

Page 1JSOC Review – 17 March 2005 Database Maintenance Karen Tian

Page 2JSOC Review – 17 March 2005 Overview Q: How long can we keep running? Our goal is to minimize downtime –Do maintenance while running Challenges –Very large database: a few TB –Transaction intensive applications Currently we have SUMS and DRMS tables in the same DB –SUMS tables: insert, update, and delete Must vacuum to reclaim disk space –DRMS tables: tables insert only, no update or delete, except for transient records Static tables, need to vacuum to prevent XID wraparound

Page 3JSOC Review – 17 March 2005 Routine database maintenance tasks Base backup and WAL file backup Vacuum Reindex PostgreSQL upgrade

Page 4JSOC Review – 17 March 2005 Base backup and WAL file backup Base backup: pg_start_backup() file system snapshot pg_stop_backup() snapshot dump to tape Plan on weekly base backup –The longer the interval between base backups, the longer it takes to process xlog to catch up –These base backup along with appropriate WAL files can make a consistent DB snapshot, perhaps useful for other purpose. Archive WAL files Clean up WAL files after a base backup

Page 5JSOC Review – 17 March 2005 Vacuum Purpose –Recovering disk space –Updating planner statistics –Preventing transaction ID wraparound failures Obstacle –Long running transaction prevents vacuum from deleting dead rows Currently SUMS and DRMS tables reside in the same DB. DRMS module may start long running transaction that prevents vacuum from removed dead rows in SUMS tables. Plans –Switch to warm stand-by and perform vacuum on the primary –Separate SUMS from DRMS, i.e., run them off different PostgreSQL server instances.

Page 6JSOC Review – 17 March 2005 Reindex Why? –Index might become corrupted –Index might become bloated –A freshly-constructed index is faster because logically adjacent pages are usually also physically adjacent in a newly built index Impact –Locks out writes but not reads of the index's parent table –Takes an exclusive lock on the specific index being processed, which will block reads that attempt to use that index

Page 7JSOC Review – 17 March 2005 PostgreSQL upgrade The internal data storage format is subject to change between major releases –Require backing up data and restore it on the new server –Must take the DB server down and switch to stand-by