473,695 Members | 2,708 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

do SS transaction logs have to be backed up for recovery to POF?

TG
Coming from a (mostly) Oracle shop, I am unclear how SS transaction logs
work as far as up to point of failure recovery goes.

I have the few MSSQL databases I look after in full recovery mode, and I
set up maintenance plans to back these up online on a daily basis. In
the research I did it was recommended backing up the transaction logs as
well on a frequent basis to ensure recovery to POF or point in time.

I had assumed that they work like Oracles archive logs, in that once
they are full they are archived to disk in case they are needed, to
duplex destinations if need be. Does SS do this, or do I need to be
backing up transaction logs on an hourly (or shorter) basis? In looking
at enterprise manager I see that it does not look like the transaction
logs are archived anywhere, but overwritten once filled up, similar to
Oracle noarchivelog mode, in that if you lose your online redo logs or
anyone of them has recycled since your last backup, then you can only
recover to the last good backup.

Is this a correct assumption? Should I be backing up transaction logs
hourly to make sure I can have PIT or POF recovery?

thanks

TG
Aug 17 '06 #1
3 1620
TG (sp**@spam.com) writes:
I had assumed that they work like Oracles archive logs, in that once
they are full they are archived to disk in case they are needed, to
duplex destinations if need be. Does SS do this, or do I need to be
backing up transaction logs on an hourly (or shorter) basis? In looking
at enterprise manager I see that it does not look like the transaction
logs are archived anywhere, but overwritten once filled up, similar to
Oracle noarchivelog mode, in that if you lose your online redo logs or
anyone of them has recycled since your last backup, then you can only
recover to the last good backup.

Is this a correct assumption? Should I be backing up transaction logs
hourly to make sure I can have PIT or POF recovery?
If you don't backup your transaction logs, and you are in full recovery,
the logs will grow and grow, until you run out of disk space. Nothing
will be overwritten.

So, yes, you need to backup your transaction logs with some frequency.

Note that you can backup the last part of the transaction log, even if
the data file is inaccessible, so that you can restore to a point in
time just before a failure.

There are some articles on SQL Server MVP Tibor Karaszi's web site that
covers the last part, see http://www.karaszi.com/SQLServer/articles.asp.
--
Erland Sommarskog, SQL Server MVP, es****@sommarsk og.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Aug 17 '06 #2
TG
Erland Sommarskog wrote:
TG (sp**@spam.com) writes:
>>I had assumed that they work like Oracles archive logs, in that once
they are full they are archived to disk in case they are needed, to
duplex destinations if need be. Does SS do this, or do I need to be
backing up transaction logs on an hourly (or shorter) basis? In looking
at enterprise manager I see that it does not look like the transaction
logs are archived anywhere, but overwritten once filled up, similar to
Oracle noarchivelog mode, in that if you lose your online redo logs or
anyone of them has recycled since your last backup, then you can only
recover to the last good backup.

Is this a correct assumption? Should I be backing up transaction logs
hourly to make sure I can have PIT or POF recovery?


If you don't backup your transaction logs, and you are in full recovery,
the logs will grow and grow, until you run out of disk space. Nothing
will be overwritten.

So, yes, you need to backup your transaction logs with some frequency.

Note that you can backup the last part of the transaction log, even if
the data file is inaccessible, so that you can restore to a point in
time just before a failure.

There are some articles on SQL Server MVP Tibor Karaszi's web site that
covers the last part, see http://www.karaszi.com/SQLServer/articles.asp.

Tack sa mycket..

I see - so you are saying that the transaction log will have to be
backed up in order to restore to a point in time, I was under the
impression that the transaction log was somewhat like an online redo log
, but I see that MSSQL handles this somewhat differently. I'll check out
the link you posted and do some more reading up!

Aug 17 '06 #3
TG (sp**@spam.com) writes:
I see - so you are saying that the transaction log will have to be
backed up in order to restore to a point in time, I was under the
impression that the transaction log was somewhat like an online redo log
, but I see that MSSQL handles this somewhat differently. I'll check out
the link you posted and do some more reading up!
Yes, you can never restore from the transaction log itself, you must restore
from a backup of the transaction log.

You can wait until the disaster hits to backup the log, though, but I would
not recommend that.
--
Erland Sommarskog, SQL Server MVP, es****@sommarsk og.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Aug 18 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3877
by: enigma | last post by:
Just wondering if you could help me on this one. I'm not sure if my transaction logs are behaving oddly or what. I've successfuly managed to shrink my transaction logs from 7GB down to 1MB and now I find it strange that the log file doesn't seem to increase its size. The timestamp of the logfile is updating as well. But the size of the file is constant. I haven't configured my database to do auto-shrink so Im really confused why it hasn't...
3
7573
by: Thiko | last post by:
Hi I take one nightly full database backup at 02:00 and backup the transaction log to one backup set every 15mins. The commands to do this are as follows and are set up to run as database jobs: -- Database Backup BACKUP DATABASE TO WITH NOINIT ,
0
2077
by: xo55ox | last post by:
Hi, I have been trying to set up an automated restore process from prod to backup server. First, I schedule the full database backup nightly, transfer the backup file and restore it to the database on the backup server. Meanwhile, I leave the database ready to accept transaction log from the transaction log backup at noon daily. And I had used different restore options to test out the transaction that was being applied. And I couldn't...
9
7961
by: Balaji | last post by:
Hi, I got a problem while loading a table on DB2 database. It is saying that transation log is full and do more commits in between. Is it done by a DB2 or can I fix this at BD2 server? Thanks in advance, Katta
16
3824
by: DataPro | last post by:
New to Sql Server, running SQL Server 2000. Our transaction log file backups occasionally fail as the size of the transaction log gets really huge. We'd like to schedule additional transaction log backups. Does that require an exclusive on the database or can the db be used during a transaction log backup? Also, does switching to a bulk mode recovery model before a bulk operation then switching back to full recovery mode after present...
2
3233
by: francois1 | last post by:
I am running a website with a SQL Server database attached. My transaction logs are full and my hosting co. won't allocate more disk space for me. I need to delete my database transaction logs and asume I will need to run an SQL script to do this. Problem: I do not have MS Enterprise Manager of any database utility on my website apart from MS Access. Where can I download a free SQL tool that I can use to delete the transaction logs...
4
13219
by: yashgt | last post by:
Hi, We have created a SQL server 2000 database. We observe that the transaction log keeps growing over time. We are now about to run out of space. We have been periodically shrinking the database. Nevertheless the size has increased. I would imagine that a transaction log can be eliminated if we stop the database. Can that be done? Is there a way to completely wipe off the transaction log? Thanks,
4
4216
by: Trevor Best | last post by:
I have a client with 150MB database, the transaction log file is nearly 23GB. It's a PITA for me to backup his data and restore it on my server as it takes about 30 minutes to restore as it re-creates a 23GB file with no transactions in it :-\ As well as the space taken up by it, does it do any harm being that size? e.g. does it decrease performance? While it's there, considering the database is backed up daily, does it actually do...
0
1634
by: prashanthdb2 | last post by:
Hi, Im new to db2. Im using db2 ese 9.1 (fix pack 1) on SLES 9.0 32 bit. I have single instance on three logical nodes 0,1,2. i have cofigured userexit - on, logretain - on, trackmod - on. when i take full offline backup i observe that more number of archive logs are backed up on logical node 0. But the less logs are getting backed up on logical nodes 1,2. So when i drop the database those logs are lost. when i restore the database and...
0
8559
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9112
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8975
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8826
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8818
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4338
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2996
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2261
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.