SlideShare ist ein Scribd-Unternehmen logo
1 von 32
Downloaden Sie, um offline zu lesen
In the beginning, 
there was the log 
Martin Hubel 
+ 1 905-764-7498 
martin@mhubel.com 
1
Agenda 
1. 
The role of the database recovery log 
2. 
How backups fit in 
3. 
Recovery scenarios 
4. 
Planning for recovery 
2
Disclaimer 
• 
Every attempt has been made to be accurate with product information. Trademarks are the property of their respective owners. 
• 
I work mainly on DB2, but have used and supported other products. 
• 
All DBMS mentioned in today’s webinar are commercial grade, used by hundreds of companies to manage their enterprises. No attempt is made here to compare DBMS products for functionality. Copyright©2014 Martin Hubel Consulting Inc. 3
Assumptions 
• 
This presentation is about OLTP applications 
• 
The need for backups is known 
• 
The need for recovery is also understood 
• 
Databases are enabled for recovery 
• 
BI / DW have different recovery requirements 
• 
Data is recovered / rebuilt / reload from another source 
Copyright©2014 Martin Hubel Consulting Inc. 4
The database recovery log 
• 
Log contains information necessary to: 
• 
Redo completed units of work 
• 
Undo incomplete units of work 
• 
Rebuild system status 
• 
Today’s presentation will deal mainly with units of work (transactions) and their effect on the recovery log 
Copyright©2014 Martin Hubel Consulting Inc. 5
A successful transaction 
• 
Single transaction can contain many update actions 
• 
All updates must complete 
• 
Then a commit makes changes permanent 
• 
Successful termination is recorded in the recovery log 
• 
Any failure rolls changes back to beginning 
• 
The DB is considered consistent before the transaction and after the commit 
Copyright©2014 Martin Hubel Consulting Inc. 6 
•Begin UR •End UR 
•INS A 
•UPD B 
•UPD C 
•INS A 
•DEL D 
•INS E 
• 
One Business Transaction
Unit of work 
• 
Updates performed in the subsystem between two points of consistency 
• 
Point of consistency (commit point) is a point where all recoverable data for an application is consistent with other data 
• 
Equivalent terms: Synchpoint, Logical Unit of Work or Unit of Recovery (UR) 
• 
Some environments require a 2 phase commit 
Copyright©2014 Martin Hubel Consulting Inc. 7
Batch transactions 
• 
Batch jobs handle transaction can contain many update actions 
• 
Many business transactions are included in a single unit of work 
• 
The commit makes changes permanent for all transactions 
• 
Any failure rolls changes back to beginning 
• 
Many tens, hundreds or even thousands of transactions are processed in a single UR 
Copyright©2014 Martin Hubel Consulting Inc. 8 
•Begin UR •End UR
Rollback 
Copyright©2014 Martin Hubel Consulting Inc. 9 
• During rollback, data changes are not removed 
•The log is read and the changes reversed 
•The data is returned to its last consistent state (last commit) 
• Some badly designed applications issue rollback statements following 
if validation fails 
•Can be a lot of log activity for nothing 
•Always complete all validation prior to performing first update 
•Begin UR 
• 
End UR 
•INS A 
•UPD B 
•UPD C 
•INS E 
•One Business Transaction 
•DEL E 
•UPD C` 
•UPD B` 
•DEL A 
• 
Failure
Performance of new application 
• 
A new financial application had a light transaction processing load 
• 
Transactions were complex and had a lot of validation and updates to perform 
• 
Users regularly had to correct input before the transaction was ready for processing 
• 
Performance was poor. Design showed: 
• 
After each validation check, the SQL updates to that point were performed 
• 
If a further check failed, the updates were reversed via rollback 
• 
This problem was found via a high volume of log activity 
• 
Much of it for no benefit 
Copyright©2014 Martin Hubel Consulting Inc. 10
Transaction Recovery/Backout 
• 
Some DBMS products default to this type of recovery (rollback of incomplete URs only) 
• 
Logging (log retain) in these products must be turned on for full recovery 
Copyright©2014 Martin Hubel Consulting Inc. 11 
TIMEOUTWorkRollbackWaitWorkRollbackDEADLOCKWorkWaitContinueabba
Log files 
• 
“In the beginning, there was the log” 
• 
DBMS writes to the active log file 
• 
May be dual logs or mirrored by DBMS 
 
May be on RAID devices at hardware level 
• 
Logs use buffered I/O 
 
For changes to data 
• 
Logs are written synchronously at commit time 
• 
In this way, the log is close to being correct if failure occurs 
• 
Design I/O system to avoid waits for log writes 
• 
DBMS must be able to write changes to the log 
Copyright©2014 Martin Hubel Consulting Inc. 12
Archiving logs 
• 
Current log is called the active log 
• 
Log files fill up and switch automatically to new files 
• 
Called archive logs 
• 
Archive files may remain in same directory for some period 
• 
May be automatically offloaded to some facility like TSM 
• 
Problems can occur in the archival process 
• 
If log file system fills, the DBMS stops! 
Active log 
Copyright©2014 Martin Hubel Consulting Inc. 13 
Other 
storage 
Archive logs
Batch, long running, and large transactions 
• 
Thousands (or more) updates can be performed, e.g. by: 
• 
A batch job 
• 
A single SQL statement 
• 
Long-running transactions cause problems: 
• 
Many locks taken during the updates 
• 
Many log records and log files written before a commit 
• 
Commit frequency must be managed 
• 
Rollback is also problematic 
• 
Requires log to be read, and to write the opposite action to reverse the change 
Copyright©2014 Martin Hubel Consulting Inc. 14
“The audit table is too big” 
• 
The new DBA/Linux sysadminnotices the size of the audit table is 30 million rows 
• 
Issues a DELETE FROM AUDIT_TABLE WHERE DATE < ‘60 days ago’ 
• 
10M rows will be deleted 
• 
The effect: 
• 
All users locked out of the application 
• 
No estimate of completion time 
Copyright©2014 Martin Hubel Consulting Inc. 15
“The audit table is too big” -2 
• 
After many complaints and about 2 hours, the DBA cancels the Delete 
• 
Rollback starts: 
• 
Rollback has to read the log to finds the updates and write the opposite 
• 
As such, rollback typically takes twice as long 
• 
The users continue to be unhappy and are now more vocal 
Copyright©2014 Martin Hubel Consulting Inc. 16
“The audit table is too big” -3 
• 
The DBA, using his sysadminkills, starts killing DB2 processes 
• 
Kill -9 has immediate effects to stop DB2 and the rollback 
• 
But now, the rollback is incomplete 
• 
At restart, DB2 must remove the effect of the incomplete rollback and start the full rollback afterwards 
• 
Estimated full recovery time is 24 hours 
• 
Some behind-the-scenes involvement reduces the outage to 8 hours on a 24x7 system 
• 
CIO asks: “What should we do with the DBA?” 
Copyright©2014 Martin Hubel Consulting Inc. 17
... And Now 
• 
A word from Embarcadero... 
Copyright©2014 Martin Hubel Consulting Inc. 18
Can the log be kept forever? 
• 
Hypothetically yes, the answer is no 
• 
Not practical 
• 
Recovery would take too long for one thing 
• 
Log retention would also be impractical 
• 
Backups taken within the DBMS are recorded and provide starting points for recovery 
• 
Once all databases or tables (tablespaces) have been copied, the oldest logs can be deleted 
Copyright©2014 Martin Hubel Consulting Inc. 19
Backup copies 
• 
Backups provide a starting point for the recovery process 
• 
Need at least one full backup 
• 
Two generations are safer 
• 
DBMS options for backups: 
• 
Database 
• 
Table or tablespace 
• 
Incremental or delta 
• 
Online or offline 
• 
Once all databases have a valid backup, the older log files can be deleted 
• 
Set generous retention periods 
Copyright©2014 Martin Hubel Consulting Inc. 20
Gaps in the log 
• 
A big recovery consideration is to ensure there are no gaps within the log range 
• 
A gap indicates that some log records are missing, and DBMS is unable to determine what those records might have contained 
• 
As such, forward log processing stops 
• 
It is advantageous to turn logging off for certain situations or operations 
• 
E.g, large loads 
Copyright©2014 Martin Hubel Consulting Inc. 21
Implications of turning off logging 
• 
Logging is not free 
• 
Significant performance impact for certain operations such as batch updates or load operations 
• 
Not logged operations affect the ability to forward recover objects using the log 
• 
DBMS does not know what or how data was changed 
• 
Therefore, DBMS requires a backup following not logged operations to re-establish a recovery point 
Copyright©2014 Martin Hubel Consulting Inc. 22
Production mortgage system 
• 
DBA group was responsible for backups 
• 
Forgot to take regular backups 
• 
Last backup was January 26 
• 
System group managed the logs 
• 
Set a “reasonable” retention period of 60 days 
• 
On April 1, they deleted the logs older than Feb 1 
• 
On April 8, a hardware problem occurred 
• 
Production was recovered to January 26 
Copyright©2014 Martin Hubel Consulting Inc. 23
Application recovery scenarios 
• 
Transaction recovery/backout 
• 
Application backout 
• 
Point-in-time recovery 
• 
Checkpoint restart 
• 
Data synchronization 
• 
Data inconsistencies 
• 
Out of space 
• 
Media failure 
• 
Accidentally deleted data 
Copyright©2014 Martin Hubel Consulting Inc. 24
Recovery guidelines 
• 
Test your recovery procedures 
• 
Make a backup copy prior to recovery -things can get worse 
• 
Make a copy after recovery if you think it might happen again 
• 
Make two copies using the DBMS backup utility 
• 
Periodically run integrity checking utilities to ensure recoverability 
Copyright©2014 Martin Hubel Consulting Inc. 25
Common user errors -1 
• 
Delete or write over archive log or image copy 
• 
Without necessary backups, recovery may be impossible 
• 
Possible storage management issue 
• 
Misuse of disk level dump/restore 
• 
Valid for disaster planning, but dump everything – 
 
Logs 
 
DBMS system objects 
 
User data 
Copyright©2014 Martin Hubel Consulting Inc. 26
Common user errors -2 
• 
Common Programming Errors 
• 
Logical unit of work identification 
• 
Commit/CHKP placed incorrectly 
• 
Too many commits 
• 
Coding methods may vary throughout application, e.g. 
 
Use of separate read and write routines 
 
Checking of SQL return code codes 
Copyright©2014 Martin Hubel Consulting Inc. 27
Application Backout 
• 
Required when multiple jobs running concurrently against same database 
• 
Work was committed against database 
• 
Backoutmay not be possible or practical in all cases 
Copyright©2014 Martin Hubel Consulting Inc. 28 
Startof Job TimeNormalJob End Job 1Job 2Job 3Job 4Backout, repair, and rerun
SQL change in production 
• 
“Oops, we thought that was the test system” 
• 
An SQL error changed all addresses to the same value 
• 
780,000 rows in table 
• 
“Martin, please change them back” 
• 
No, you can’t restore from a backup 
 
New customers have signed up 
 
Old customers may have updated their information 
Copyright©2014 Martin Hubel Consulting Inc. 29
SQL change in production 
• 
While this was pressing, it was not a “show stopper” 
• 
Fortunately, I had unloaded this table for some reason 
• 
This became a source for the correct addresses 
• 
Alternatives might have been a redirected restore / transportable tablespace 
• 
We were able to load the backup table 
• 
Found SQL on internet and adapted it 
• 
Ultimately updated 362,000 addresses 
Copyright©2014 Martin Hubel Consulting Inc. 30
Summary 
• 
All update activity is recorded in the DBMS log 
• 
Log performance is part of overall DBMS performance 
• 
Backups and logs are both used for recovery 
• 
Plan and test recovery scenarios prior to needing them 
Copyright©2014 Martin Hubel Consulting Inc. 31
Martin Hubel 
Martin Hubel Consulting Inc. 
martin@mhubel.com 
905-764-7498 
In the beginning, there was the log 
32

Weitere ähnliche Inhalte

Was ist angesagt?

Aaron Robinson by COLLABERA True value edition LNKEDIN
Aaron Robinson by COLLABERA  True value edition LNKEDINAaron Robinson by COLLABERA  True value edition LNKEDIN
Aaron Robinson by COLLABERA True value edition LNKEDIN
AARON ROBINSON
 
Sample Solution Blueprint
Sample Solution BlueprintSample Solution Blueprint
Sample Solution Blueprint
Mike Alvarado
 
COLLABORATE 16 Demystifying secrets of R12.2 upgrade_PPT
COLLABORATE 16 Demystifying secrets of R12.2 upgrade_PPTCOLLABORATE 16 Demystifying secrets of R12.2 upgrade_PPT
COLLABORATE 16 Demystifying secrets of R12.2 upgrade_PPT
Preet Kamal Singh
 
Collaborate 2011-tuning-ebusiness-416502
Collaborate 2011-tuning-ebusiness-416502Collaborate 2011-tuning-ebusiness-416502
Collaborate 2011-tuning-ebusiness-416502
kaziul Islam Bulbul
 

Was ist angesagt? (20)

VMworld 2013: Deep Dive into vSphere Log Management with vCenter Log Insight
VMworld 2013: Deep Dive into vSphere Log Management with vCenter Log InsightVMworld 2013: Deep Dive into vSphere Log Management with vCenter Log Insight
VMworld 2013: Deep Dive into vSphere Log Management with vCenter Log Insight
 
Aaron Robinson by COLLABERA True value edition LNKEDIN
Aaron Robinson by COLLABERA  True value edition LNKEDINAaron Robinson by COLLABERA  True value edition LNKEDIN
Aaron Robinson by COLLABERA True value edition LNKEDIN
 
Nicholas king oracle epm migration and upgrade
Nicholas king   oracle epm migration and upgradeNicholas king   oracle epm migration and upgrade
Nicholas king oracle epm migration and upgrade
 
Monitoring a Dynamics CRM Infrastructure
Monitoring a Dynamics CRM InfrastructureMonitoring a Dynamics CRM Infrastructure
Monitoring a Dynamics CRM Infrastructure
 
Enterprise Process Automation Suite
Enterprise Process Automation SuiteEnterprise Process Automation Suite
Enterprise Process Automation Suite
 
IMS04 BMC Software Strategy and Roadmap
IMS04   BMC Software Strategy and RoadmapIMS04   BMC Software Strategy and Roadmap
IMS04 BMC Software Strategy and Roadmap
 
Interconnect session 1888: Rational Team Concert Process Customization: What ...
Interconnect session 1888: Rational Team Concert Process Customization: What ...Interconnect session 1888: Rational Team Concert Process Customization: What ...
Interconnect session 1888: Rational Team Concert Process Customization: What ...
 
Sample Solution Blueprint
Sample Solution BlueprintSample Solution Blueprint
Sample Solution Blueprint
 
VMworld 2013: VMware Mirage Storage and Network Deduplication, DEMYSTIFIED
VMworld 2013: VMware Mirage Storage and Network Deduplication, DEMYSTIFIED VMworld 2013: VMware Mirage Storage and Network Deduplication, DEMYSTIFIED
VMworld 2013: VMware Mirage Storage and Network Deduplication, DEMYSTIFIED
 
Collaborate 2014 OAUG - EBS 11i Upgrade to R12 - Compare versions 12.2 vs 12.1
Collaborate 2014 OAUG - EBS 11i Upgrade to R12 - Compare versions 12.2 vs 12.1Collaborate 2014 OAUG - EBS 11i Upgrade to R12 - Compare versions 12.2 vs 12.1
Collaborate 2014 OAUG - EBS 11i Upgrade to R12 - Compare versions 12.2 vs 12.1
 
COLLABORATE 16 Demystifying secrets of R12.2 upgrade_PPT
COLLABORATE 16 Demystifying secrets of R12.2 upgrade_PPTCOLLABORATE 16 Demystifying secrets of R12.2 upgrade_PPT
COLLABORATE 16 Demystifying secrets of R12.2 upgrade_PPT
 
VMworld 2013: Demystifying VMware Mirage: Tips and Tricks for Success
VMworld 2013: Demystifying VMware Mirage: Tips and Tricks for Success VMworld 2013: Demystifying VMware Mirage: Tips and Tricks for Success
VMworld 2013: Demystifying VMware Mirage: Tips and Tricks for Success
 
Interconnect session 3498: Deployment Topologies for Jazz Reporting Service
Interconnect session 3498: Deployment Topologies for Jazz Reporting ServiceInterconnect session 3498: Deployment Topologies for Jazz Reporting Service
Interconnect session 3498: Deployment Topologies for Jazz Reporting Service
 
Collaborate 2011-tuning-ebusiness-416502
Collaborate 2011-tuning-ebusiness-416502Collaborate 2011-tuning-ebusiness-416502
Collaborate 2011-tuning-ebusiness-416502
 
Mastering SAP Monitoring - Workload Monitoring
Mastering SAP Monitoring - Workload MonitoringMastering SAP Monitoring - Workload Monitoring
Mastering SAP Monitoring - Workload Monitoring
 
Speakers slidedeck sp-biz laporte
Speakers slidedeck   sp-biz laporteSpeakers slidedeck   sp-biz laporte
Speakers slidedeck sp-biz laporte
 
11. operating-systems-part-1
11. operating-systems-part-111. operating-systems-part-1
11. operating-systems-part-1
 
How to Turn New Recruits Into Oracle EPM Infrastructure Gurus
How to Turn New Recruits Into Oracle EPM Infrastructure GurusHow to Turn New Recruits Into Oracle EPM Infrastructure Gurus
How to Turn New Recruits Into Oracle EPM Infrastructure Gurus
 
Mastering SAP Monitoring - Determining the Health of your SAP Environment
Mastering SAP Monitoring - Determining the Health of your SAP EnvironmentMastering SAP Monitoring - Determining the Health of your SAP Environment
Mastering SAP Monitoring - Determining the Health of your SAP Environment
 
VMworld 2013: VMware Horizon Mirage Image Deployment Deep Dive
VMworld 2013: VMware Horizon Mirage Image Deployment Deep DiveVMworld 2013: VMware Horizon Mirage Image Deployment Deep Dive
VMworld 2013: VMware Horizon Mirage Image Deployment Deep Dive
 

Andere mochten auch

Understanding Hardware: The Right Fights for the DBA to Pick with the Server ...
Understanding Hardware: The Right Fights for the DBA to Pick with the Server ...Understanding Hardware: The Right Fights for the DBA to Pick with the Server ...
Understanding Hardware: The Right Fights for the DBA to Pick with the Server ...
Embarcadero Technologies
 

Andere mochten auch (20)

Improve Agility and Collaboration with ER/Studio XE7
Improve Agility and Collaboration with ER/Studio XE7Improve Agility and Collaboration with ER/Studio XE7
Improve Agility and Collaboration with ER/Studio XE7
 
Is This Really a SAN Problem? Understanding the Performance of Your IO Subsy...
Is This Really a SAN Problem? Understanding the Performance of  Your IO Subsy...Is This Really a SAN Problem? Understanding the Performance of  Your IO Subsy...
Is This Really a SAN Problem? Understanding the Performance of Your IO Subsy...
 
These Are The Data You Are Looking For
These Are The Data You Are Looking ForThese Are The Data You Are Looking For
These Are The Data You Are Looking For
 
Metadata Melodies Webinar with David Loshin Presentation
Metadata Melodies Webinar with David Loshin PresentationMetadata Melodies Webinar with David Loshin Presentation
Metadata Melodies Webinar with David Loshin Presentation
 
Find it. Fix it. Real-World SQL Tuning Cases with Karen Morton
Find it. Fix it. Real-World SQL Tuning Cases with Karen MortonFind it. Fix it. Real-World SQL Tuning Cases with Karen Morton
Find it. Fix it. Real-World SQL Tuning Cases with Karen Morton
 
Secure Your Data Assets
Secure Your Data AssetsSecure Your Data Assets
Secure Your Data Assets
 
RAD studio XE7 first look webinar
RAD studio XE7 first look webinarRAD studio XE7 first look webinar
RAD studio XE7 first look webinar
 
Introducing ER/Studio Team Server
Introducing ER/Studio Team ServerIntroducing ER/Studio Team Server
Introducing ER/Studio Team Server
 
Understanding Hardware: The Right Fights for the DBA to Pick with the Server ...
Understanding Hardware: The Right Fights for the DBA to Pick with the Server ...Understanding Hardware: The Right Fights for the DBA to Pick with the Server ...
Understanding Hardware: The Right Fights for the DBA to Pick with the Server ...
 
Model Confidence for Master Data with David Loshin
Model Confidence for Master Data with David LoshinModel Confidence for Master Data with David Loshin
Model Confidence for Master Data with David Loshin
 
Embarcadero ER/Studio Enterprise Team Edition Overview
Embarcadero ER/Studio Enterprise Team Edition OverviewEmbarcadero ER/Studio Enterprise Team Edition Overview
Embarcadero ER/Studio Enterprise Team Edition Overview
 
The Future of ER/Studio: Better with Team Server
The Future of ER/Studio: Better with Team ServerThe Future of ER/Studio: Better with Team Server
The Future of ER/Studio: Better with Team Server
 
7 Dangerous Myths DBAs Believe about Data Modeling
7 Dangerous Myths DBAs Believe about Data Modeling7 Dangerous Myths DBAs Believe about Data Modeling
7 Dangerous Myths DBAs Believe about Data Modeling
 
Dan Hotka’s PL SQL Tips and Techniques, Part II
Dan Hotka’s PL SQL Tips and Techniques, Part IIDan Hotka’s PL SQL Tips and Techniques, Part II
Dan Hotka’s PL SQL Tips and Techniques, Part II
 
Congratulations, You’re a DBA... Now What?
Congratulations, You’re a DBA... Now What?Congratulations, You’re a DBA... Now What?
Congratulations, You’re a DBA... Now What?
 
Data Architecture Success Stories
Data Architecture Success StoriesData Architecture Success Stories
Data Architecture Success Stories
 
PL/SQL Tips and Techniques Webinar Presentation
PL/SQL Tips and Techniques Webinar PresentationPL/SQL Tips and Techniques Webinar Presentation
PL/SQL Tips and Techniques Webinar Presentation
 
Managing a Multi-Platform Environment
Managing a Multi-Platform EnvironmentManaging a Multi-Platform Environment
Managing a Multi-Platform Environment
 
In Search of Plan Stability Part 2 with Karen Morton
In Search of Plan Stability Part 2 with Karen MortonIn Search of Plan Stability Part 2 with Karen Morton
In Search of Plan Stability Part 2 with Karen Morton
 
Working With Different Kinds of Data
Working With Different Kinds of DataWorking With Different Kinds of Data
Working With Different Kinds of Data
 

Ähnlich wie In the Beginning, There Was the Log - Webinar with Martin Hubel

LandsEnd TechEd2016 (1)
LandsEnd TechEd2016 (1)LandsEnd TechEd2016 (1)
LandsEnd TechEd2016 (1)
Lisa Lawver
 
Planning For Catastrophe with IBM WAS and IBM BPM
Planning For Catastrophe with IBM WAS and IBM BPMPlanning For Catastrophe with IBM WAS and IBM BPM
Planning For Catastrophe with IBM WAS and IBM BPM
WASdev Community
 

Ähnlich wie In the Beginning, There Was the Log - Webinar with Martin Hubel (20)

Topic 4 database recovery
Topic 4 database recoveryTopic 4 database recovery
Topic 4 database recovery
 
Why retail companies can't afford database downtime
Why retail companies can't afford database downtimeWhy retail companies can't afford database downtime
Why retail companies can't afford database downtime
 
Sql server tips from the field
Sql server tips from the fieldSql server tips from the field
Sql server tips from the field
 
Presentation maximizing database performance performance tuning with db time
Presentation    maximizing database performance performance tuning with db timePresentation    maximizing database performance performance tuning with db time
Presentation maximizing database performance performance tuning with db time
 
Lean Business Intelligence: Achieve Better, Faster, Cheaper Business Intellig...
Lean Business Intelligence: Achieve Better, Faster, Cheaper Business Intellig...Lean Business Intelligence: Achieve Better, Faster, Cheaper Business Intellig...
Lean Business Intelligence: Achieve Better, Faster, Cheaper Business Intellig...
 
LandsEnd TechEd2016 (1)
LandsEnd TechEd2016 (1)LandsEnd TechEd2016 (1)
LandsEnd TechEd2016 (1)
 
Extreme Makeover OnBase Edition
Extreme Makeover OnBase EditionExtreme Makeover OnBase Edition
Extreme Makeover OnBase Edition
 
Planning For Catastrophe with IBM WAS and IBM BPM
Planning For Catastrophe with IBM WAS and IBM BPMPlanning For Catastrophe with IBM WAS and IBM BPM
Planning For Catastrophe with IBM WAS and IBM BPM
 
Backing Up and Recovery
Backing Up and RecoveryBacking Up and Recovery
Backing Up and Recovery
 
2016 09-dev opsjourney-devopsdaysoslo
2016 09-dev opsjourney-devopsdaysoslo2016 09-dev opsjourney-devopsdaysoslo
2016 09-dev opsjourney-devopsdaysoslo
 
ICON UK - Only an IBM Domino Server can take this much beating and still run
ICON UK - Only an IBM Domino Server can take this much beating and still runICON UK - Only an IBM Domino Server can take this much beating and still run
ICON UK - Only an IBM Domino Server can take this much beating and still run
 
ICON UK 2013 - Only a Domino Server can take this much..
ICON UK 2013 - Only a Domino Server can take this much..ICON UK 2013 - Only a Domino Server can take this much..
ICON UK 2013 - Only a Domino Server can take this much..
 
Oracle R12 Upgrade Lessons Learned
Oracle R12 Upgrade Lessons LearnedOracle R12 Upgrade Lessons Learned
Oracle R12 Upgrade Lessons Learned
 
Adm07 The Health Check Extravaganza for IBM Social and Collaboration Environm...
Adm07 The Health Check Extravaganza for IBM Social and Collaboration Environm...Adm07 The Health Check Extravaganza for IBM Social and Collaboration Environm...
Adm07 The Health Check Extravaganza for IBM Social and Collaboration Environm...
 
The 5S Approach to Performance Tuning by Chuck Ezell
The 5S Approach to Performance Tuning by Chuck EzellThe 5S Approach to Performance Tuning by Chuck Ezell
The 5S Approach to Performance Tuning by Chuck Ezell
 
What is Database Backup? The 3 Important Recovery Techniques from transaction...
What is Database Backup? The 3 Important Recovery Techniques from transaction...What is Database Backup? The 3 Important Recovery Techniques from transaction...
What is Database Backup? The 3 Important Recovery Techniques from transaction...
 
SQLBits XIV - The Big Backup Theory
SQLBits XIV - The Big Backup TheorySQLBits XIV - The Big Backup Theory
SQLBits XIV - The Big Backup Theory
 
Sql server logshipping
Sql server logshippingSql server logshipping
Sql server logshipping
 
How to Stabilise and Improve an SAP BusinessObjects BI 4.2 Enterprise Shared ...
How to Stabilise and Improve an SAP BusinessObjects BI 4.2 Enterprise Shared ...How to Stabilise and Improve an SAP BusinessObjects BI 4.2 Enterprise Shared ...
How to Stabilise and Improve an SAP BusinessObjects BI 4.2 Enterprise Shared ...
 
Best Practices for Becoming an Exceptional Postgres DBA
Best Practices for Becoming an Exceptional Postgres DBA Best Practices for Becoming an Exceptional Postgres DBA
Best Practices for Becoming an Exceptional Postgres DBA
 

Mehr von Embarcadero Technologies

Getting Started Building Mobile Applications for iOS and Android
Getting Started Building Mobile Applications for iOS and AndroidGetting Started Building Mobile Applications for iOS and Android
Getting Started Building Mobile Applications for iOS and Android
Embarcadero Technologies
 

Mehr von Embarcadero Technologies (20)

PyTorch for Delphi - Python Data Sciences Libraries.pdf
PyTorch for Delphi - Python Data Sciences Libraries.pdfPyTorch for Delphi - Python Data Sciences Libraries.pdf
PyTorch for Delphi - Python Data Sciences Libraries.pdf
 
Android on Windows 11 - A Developer's Perspective (Windows Subsystem For Andr...
Android on Windows 11 - A Developer's Perspective (Windows Subsystem For Andr...Android on Windows 11 - A Developer's Perspective (Windows Subsystem For Andr...
Android on Windows 11 - A Developer's Perspective (Windows Subsystem For Andr...
 
Linux GUI Applications on Windows Subsystem for Linux
Linux GUI Applications on Windows Subsystem for LinuxLinux GUI Applications on Windows Subsystem for Linux
Linux GUI Applications on Windows Subsystem for Linux
 
Python on Android with Delphi FMX - The Cross Platform GUI Framework
Python on Android with Delphi FMX - The Cross Platform GUI Framework Python on Android with Delphi FMX - The Cross Platform GUI Framework
Python on Android with Delphi FMX - The Cross Platform GUI Framework
 
Introduction to Python GUI development with Delphi for Python - Part 1: Del...
Introduction to Python GUI development with Delphi for Python - Part 1:   Del...Introduction to Python GUI development with Delphi for Python - Part 1:   Del...
Introduction to Python GUI development with Delphi for Python - Part 1: Del...
 
FMXLinux Introduction - Delphi's FireMonkey for Linux
FMXLinux Introduction - Delphi's FireMonkey for LinuxFMXLinux Introduction - Delphi's FireMonkey for Linux
FMXLinux Introduction - Delphi's FireMonkey for Linux
 
Python for Delphi Developers - Part 2
Python for Delphi Developers - Part 2Python for Delphi Developers - Part 2
Python for Delphi Developers - Part 2
 
Python for Delphi Developers - Part 1 Introduction
Python for Delphi Developers - Part 1 IntroductionPython for Delphi Developers - Part 1 Introduction
Python for Delphi Developers - Part 1 Introduction
 
RAD Industrial Automation, Labs, and Instrumentation
RAD Industrial Automation, Labs, and InstrumentationRAD Industrial Automation, Labs, and Instrumentation
RAD Industrial Automation, Labs, and Instrumentation
 
Embeddable Databases for Mobile Apps: Stress-Free Solutions with InterBase
Embeddable Databases for Mobile Apps: Stress-Free Solutions with InterBaseEmbeddable Databases for Mobile Apps: Stress-Free Solutions with InterBase
Embeddable Databases for Mobile Apps: Stress-Free Solutions with InterBase
 
Rad Server Industry Template - Connected Nurses Station - Setup Document
Rad Server Industry Template - Connected Nurses Station - Setup DocumentRad Server Industry Template - Connected Nurses Station - Setup Document
Rad Server Industry Template - Connected Nurses Station - Setup Document
 
TMS Google Mapping Components
TMS Google Mapping ComponentsTMS Google Mapping Components
TMS Google Mapping Components
 
Move Desktop Apps to the Cloud - RollApp & Embarcadero webinar
Move Desktop Apps to the Cloud - RollApp & Embarcadero webinarMove Desktop Apps to the Cloud - RollApp & Embarcadero webinar
Move Desktop Apps to the Cloud - RollApp & Embarcadero webinar
 
Useful C++ Features You Should be Using
Useful C++ Features You Should be UsingUseful C++ Features You Should be Using
Useful C++ Features You Should be Using
 
Getting Started Building Mobile Applications for iOS and Android
Getting Started Building Mobile Applications for iOS and AndroidGetting Started Building Mobile Applications for iOS and Android
Getting Started Building Mobile Applications for iOS and Android
 
Embarcadero RAD server Launch Webinar
Embarcadero RAD server Launch WebinarEmbarcadero RAD server Launch Webinar
Embarcadero RAD server Launch Webinar
 
ER/Studio 2016: Build a Business-Driven Data Architecture
ER/Studio 2016: Build a Business-Driven Data ArchitectureER/Studio 2016: Build a Business-Driven Data Architecture
ER/Studio 2016: Build a Business-Driven Data Architecture
 
The Secrets of SQL Server: Database Worst Practices
The Secrets of SQL Server: Database Worst PracticesThe Secrets of SQL Server: Database Worst Practices
The Secrets of SQL Server: Database Worst Practices
 
Driving Business Value Through Agile Data Assets
Driving Business Value Through Agile Data AssetsDriving Business Value Through Agile Data Assets
Driving Business Value Through Agile Data Assets
 
Troubleshooting Plan Changes with Query Store in SQL Server 2016
Troubleshooting Plan Changes with Query Store in SQL Server 2016Troubleshooting Plan Changes with Query Store in SQL Server 2016
Troubleshooting Plan Changes with Query Store in SQL Server 2016
 

Kürzlich hochgeladen

+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 

Kürzlich hochgeladen (20)

%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 

In the Beginning, There Was the Log - Webinar with Martin Hubel

  • 1. In the beginning, there was the log Martin Hubel + 1 905-764-7498 martin@mhubel.com 1
  • 2. Agenda 1. The role of the database recovery log 2. How backups fit in 3. Recovery scenarios 4. Planning for recovery 2
  • 3. Disclaimer • Every attempt has been made to be accurate with product information. Trademarks are the property of their respective owners. • I work mainly on DB2, but have used and supported other products. • All DBMS mentioned in today’s webinar are commercial grade, used by hundreds of companies to manage their enterprises. No attempt is made here to compare DBMS products for functionality. Copyright©2014 Martin Hubel Consulting Inc. 3
  • 4. Assumptions • This presentation is about OLTP applications • The need for backups is known • The need for recovery is also understood • Databases are enabled for recovery • BI / DW have different recovery requirements • Data is recovered / rebuilt / reload from another source Copyright©2014 Martin Hubel Consulting Inc. 4
  • 5. The database recovery log • Log contains information necessary to: • Redo completed units of work • Undo incomplete units of work • Rebuild system status • Today’s presentation will deal mainly with units of work (transactions) and their effect on the recovery log Copyright©2014 Martin Hubel Consulting Inc. 5
  • 6. A successful transaction • Single transaction can contain many update actions • All updates must complete • Then a commit makes changes permanent • Successful termination is recorded in the recovery log • Any failure rolls changes back to beginning • The DB is considered consistent before the transaction and after the commit Copyright©2014 Martin Hubel Consulting Inc. 6 •Begin UR •End UR •INS A •UPD B •UPD C •INS A •DEL D •INS E • One Business Transaction
  • 7. Unit of work • Updates performed in the subsystem between two points of consistency • Point of consistency (commit point) is a point where all recoverable data for an application is consistent with other data • Equivalent terms: Synchpoint, Logical Unit of Work or Unit of Recovery (UR) • Some environments require a 2 phase commit Copyright©2014 Martin Hubel Consulting Inc. 7
  • 8. Batch transactions • Batch jobs handle transaction can contain many update actions • Many business transactions are included in a single unit of work • The commit makes changes permanent for all transactions • Any failure rolls changes back to beginning • Many tens, hundreds or even thousands of transactions are processed in a single UR Copyright©2014 Martin Hubel Consulting Inc. 8 •Begin UR •End UR
  • 9. Rollback Copyright©2014 Martin Hubel Consulting Inc. 9 • During rollback, data changes are not removed •The log is read and the changes reversed •The data is returned to its last consistent state (last commit) • Some badly designed applications issue rollback statements following if validation fails •Can be a lot of log activity for nothing •Always complete all validation prior to performing first update •Begin UR • End UR •INS A •UPD B •UPD C •INS E •One Business Transaction •DEL E •UPD C` •UPD B` •DEL A • Failure
  • 10. Performance of new application • A new financial application had a light transaction processing load • Transactions were complex and had a lot of validation and updates to perform • Users regularly had to correct input before the transaction was ready for processing • Performance was poor. Design showed: • After each validation check, the SQL updates to that point were performed • If a further check failed, the updates were reversed via rollback • This problem was found via a high volume of log activity • Much of it for no benefit Copyright©2014 Martin Hubel Consulting Inc. 10
  • 11. Transaction Recovery/Backout • Some DBMS products default to this type of recovery (rollback of incomplete URs only) • Logging (log retain) in these products must be turned on for full recovery Copyright©2014 Martin Hubel Consulting Inc. 11 TIMEOUTWorkRollbackWaitWorkRollbackDEADLOCKWorkWaitContinueabba
  • 12. Log files • “In the beginning, there was the log” • DBMS writes to the active log file • May be dual logs or mirrored by DBMS  May be on RAID devices at hardware level • Logs use buffered I/O  For changes to data • Logs are written synchronously at commit time • In this way, the log is close to being correct if failure occurs • Design I/O system to avoid waits for log writes • DBMS must be able to write changes to the log Copyright©2014 Martin Hubel Consulting Inc. 12
  • 13. Archiving logs • Current log is called the active log • Log files fill up and switch automatically to new files • Called archive logs • Archive files may remain in same directory for some period • May be automatically offloaded to some facility like TSM • Problems can occur in the archival process • If log file system fills, the DBMS stops! Active log Copyright©2014 Martin Hubel Consulting Inc. 13 Other storage Archive logs
  • 14. Batch, long running, and large transactions • Thousands (or more) updates can be performed, e.g. by: • A batch job • A single SQL statement • Long-running transactions cause problems: • Many locks taken during the updates • Many log records and log files written before a commit • Commit frequency must be managed • Rollback is also problematic • Requires log to be read, and to write the opposite action to reverse the change Copyright©2014 Martin Hubel Consulting Inc. 14
  • 15. “The audit table is too big” • The new DBA/Linux sysadminnotices the size of the audit table is 30 million rows • Issues a DELETE FROM AUDIT_TABLE WHERE DATE < ‘60 days ago’ • 10M rows will be deleted • The effect: • All users locked out of the application • No estimate of completion time Copyright©2014 Martin Hubel Consulting Inc. 15
  • 16. “The audit table is too big” -2 • After many complaints and about 2 hours, the DBA cancels the Delete • Rollback starts: • Rollback has to read the log to finds the updates and write the opposite • As such, rollback typically takes twice as long • The users continue to be unhappy and are now more vocal Copyright©2014 Martin Hubel Consulting Inc. 16
  • 17. “The audit table is too big” -3 • The DBA, using his sysadminkills, starts killing DB2 processes • Kill -9 has immediate effects to stop DB2 and the rollback • But now, the rollback is incomplete • At restart, DB2 must remove the effect of the incomplete rollback and start the full rollback afterwards • Estimated full recovery time is 24 hours • Some behind-the-scenes involvement reduces the outage to 8 hours on a 24x7 system • CIO asks: “What should we do with the DBA?” Copyright©2014 Martin Hubel Consulting Inc. 17
  • 18. ... And Now • A word from Embarcadero... Copyright©2014 Martin Hubel Consulting Inc. 18
  • 19. Can the log be kept forever? • Hypothetically yes, the answer is no • Not practical • Recovery would take too long for one thing • Log retention would also be impractical • Backups taken within the DBMS are recorded and provide starting points for recovery • Once all databases or tables (tablespaces) have been copied, the oldest logs can be deleted Copyright©2014 Martin Hubel Consulting Inc. 19
  • 20. Backup copies • Backups provide a starting point for the recovery process • Need at least one full backup • Two generations are safer • DBMS options for backups: • Database • Table or tablespace • Incremental or delta • Online or offline • Once all databases have a valid backup, the older log files can be deleted • Set generous retention periods Copyright©2014 Martin Hubel Consulting Inc. 20
  • 21. Gaps in the log • A big recovery consideration is to ensure there are no gaps within the log range • A gap indicates that some log records are missing, and DBMS is unable to determine what those records might have contained • As such, forward log processing stops • It is advantageous to turn logging off for certain situations or operations • E.g, large loads Copyright©2014 Martin Hubel Consulting Inc. 21
  • 22. Implications of turning off logging • Logging is not free • Significant performance impact for certain operations such as batch updates or load operations • Not logged operations affect the ability to forward recover objects using the log • DBMS does not know what or how data was changed • Therefore, DBMS requires a backup following not logged operations to re-establish a recovery point Copyright©2014 Martin Hubel Consulting Inc. 22
  • 23. Production mortgage system • DBA group was responsible for backups • Forgot to take regular backups • Last backup was January 26 • System group managed the logs • Set a “reasonable” retention period of 60 days • On April 1, they deleted the logs older than Feb 1 • On April 8, a hardware problem occurred • Production was recovered to January 26 Copyright©2014 Martin Hubel Consulting Inc. 23
  • 24. Application recovery scenarios • Transaction recovery/backout • Application backout • Point-in-time recovery • Checkpoint restart • Data synchronization • Data inconsistencies • Out of space • Media failure • Accidentally deleted data Copyright©2014 Martin Hubel Consulting Inc. 24
  • 25. Recovery guidelines • Test your recovery procedures • Make a backup copy prior to recovery -things can get worse • Make a copy after recovery if you think it might happen again • Make two copies using the DBMS backup utility • Periodically run integrity checking utilities to ensure recoverability Copyright©2014 Martin Hubel Consulting Inc. 25
  • 26. Common user errors -1 • Delete or write over archive log or image copy • Without necessary backups, recovery may be impossible • Possible storage management issue • Misuse of disk level dump/restore • Valid for disaster planning, but dump everything –  Logs  DBMS system objects  User data Copyright©2014 Martin Hubel Consulting Inc. 26
  • 27. Common user errors -2 • Common Programming Errors • Logical unit of work identification • Commit/CHKP placed incorrectly • Too many commits • Coding methods may vary throughout application, e.g.  Use of separate read and write routines  Checking of SQL return code codes Copyright©2014 Martin Hubel Consulting Inc. 27
  • 28. Application Backout • Required when multiple jobs running concurrently against same database • Work was committed against database • Backoutmay not be possible or practical in all cases Copyright©2014 Martin Hubel Consulting Inc. 28 Startof Job TimeNormalJob End Job 1Job 2Job 3Job 4Backout, repair, and rerun
  • 29. SQL change in production • “Oops, we thought that was the test system” • An SQL error changed all addresses to the same value • 780,000 rows in table • “Martin, please change them back” • No, you can’t restore from a backup  New customers have signed up  Old customers may have updated their information Copyright©2014 Martin Hubel Consulting Inc. 29
  • 30. SQL change in production • While this was pressing, it was not a “show stopper” • Fortunately, I had unloaded this table for some reason • This became a source for the correct addresses • Alternatives might have been a redirected restore / transportable tablespace • We were able to load the backup table • Found SQL on internet and adapted it • Ultimately updated 362,000 addresses Copyright©2014 Martin Hubel Consulting Inc. 30
  • 31. Summary • All update activity is recorded in the DBMS log • Log performance is part of overall DBMS performance • Backups and logs are both used for recovery • Plan and test recovery scenarios prior to needing them Copyright©2014 Martin Hubel Consulting Inc. 31
  • 32. Martin Hubel Martin Hubel Consulting Inc. martin@mhubel.com 905-764-7498 In the beginning, there was the log 32