没有合适的资源?快使用搜索试试~ 我知道了~
transaction-log-management
需积分: 10 10 下载量 195 浏览量
2013-06-06
09:39:34
上传
评论
收藏 4.18MB PDF 举报
温馨提示
试读
220页
This covers performing transaction log backup and restore, monitoring and managing log growth, including quick diagnosis of the causes of rapid growth, and optimizing log architecture to maximize log throughput and availability.
资源推荐
资源详情
资源评论
SQL Server Transaction
Log Management
By Tony Davis and Gail Shaw
tairways handbook
SQL Server Transaction
Log Management
By Tony Davis and Gail Shaw
First published by Simple Talk Publishing October 2012
Copyright Tony Davis and Gail Shaw 2012
ISBN: 978-1-906434-94-6
The right of Tony Davis and Gail Shaw to be identified as the authors of this work has been asserted by them
in accordance with the Copyright, Designs and Patents Act 1988.
All rights reserved. No part of this publication may be reproduced, stored or introduced into a retrieval
system, or transmitted, in any form, or by any means (electronic, mechanical, photocopying, recording or
otherwise) without the prior written consent of the publisher. Any person who does any unauthorized act in
relation to this publication may be liable to criminal prosecution and civil claims for damages.
This book is sold subject to the condition that it shall not, by way of trade or otherwise, be lent, re-sold,
hired out, or otherwise circulated without the publisher's prior consent in any form other than which it
is published and without a similar condition including this condition being imposed on the subsequent
publisher.
Technical Review and Edit: Kalen Delaney
Additional Material: Jonathan Kehayias and Shawn McGehee
Cover Image by Andy Martin
Typeset by Peter Woodhouse and Gower Associates
Table of Contents
Introduction ___________________________________________ 11
Chapter 1: Meet the Transaction Log ______________________ 15
How SQL Server Uses the Transaction Log ________________________________ 15
Write Ahead Logging and Transactional Consistency _______________________16
Transaction Log Backup and Restore _____________________________________18
Controlling the Size of the Log _________________________________________ 20
A Brief Example of Backing up the Transaction Log ________________________22
Summary ___________________________________________________________ 26
Chapter 2: Some, But Not Too Much, Log Internals __________27
Virtual Log Files and the Active Log ______________________________________27
Log Truncation and Space Reuse ________________________________________ 31
A Peek at How SQL Server Grows the Log _________________________________ 33
Summary ___________________________________________________________ 42
Chapter 3: Transaction Logs, Backup and Recovery __________43
The Importance of Backups _____________________________________________43
What Backups Do I Need to Take? _______________________________________45
Database Recovery Models ______________________________________________47
Choosing the right recovery model ____________________________________48
Setting the recovery model __________________________________________ 49
Discovering the recovery model _______________________________________50
Switching models ___________________________________________________ 53
Log Backup Logistics __________________________________________________54
Frequency of log backups ____________________________________________54
Preserving the log chain _____________________________________________ 55
Storing log backups _________________________________________________56
Automating and verifying backups _____________________________________ 57
Summary ____________________________________________________________58
Chapter 4: Managing the Log in SIMPLE Recovery Model _____59
Working in SIMPLE Recovery Model _____________________________________59
Pros and Cons of SIMPLE Recovery Model ________________________________61
Chapter 5: Managing the Log in FULL Recovery Model ______ 62
What Gets Logged? ___________________________________________________ 62
Basics of Log Backup __________________________________________________63
Are log backups being taken? _________________________________________63
How to back up the transaction log ___________________________________ 64
Tail log backups ____________________________________________________65
Performing Restore and Recovery________________________________________67
Full restore to point of failure ________________________________________ 68
Restore to end of log backup __________________________________________ 71
Point-in-time restores _______________________________________________76
Tail log backups when the database is oine _____________________________84
Summary ____________________________________________________________85
Chapter 6: Managing the Log
in BULK_LOGGED Recovery Model ______________87
Minimally Logged Operations __________________________________________ 88
Advantages of Minimal Logging and BULK_LOGGED Recovery _____________ 96
Implications of Minimally Logged Operations ___________________________ 100
Crash recovery ____________________________________________________ 101
Database restores __________________________________________________102
Log backup size ___________________________________________________106
Tail log backups ___________________________________________________ 107
Best Practices for Use of BULK_LOGGED ________________________________ 113
Summary ___________________________________________________________ 115
剩余219页未读,继续阅读
资源评论
Burgess_Liu
- 粉丝: 159
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功