|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: 2 days ago @ 5:09 AM
Points: 415,
Visits: 1,458
|
|
Hi,
I am very new to the DBA scenarios, i am learning the things from the Online stuff.
For high availability solution: 1. We need to take the full backup. 2. We need to take the T-Log backup.
My Question is:
Is full backup doesn't contains the Log backup (As per my knowledge full backup takes the Transaction log also.)? If yes what is the use of taking again T-Log backups.
Please provide info on these basic questions.
Thanks,
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 8:44 AM
Points: 5,204,
Visits: 11,165
|
|
SQL* (9/17/2012) Hi,
I am very new to the DBA scenarios, i am learning the things from the Online stuff.
For high availability solution: 1. We need to take the full backup. 2. We need to take the T-Log backup.
My Question is:
Is full backup doesn't contains the Log backup (As per my knowledge full backup takes the Transaction log also.)? If yes what is the use of taking again T-Log backups.
Please provide info on these basic questions.
Thanks, I'm assuming you're referring to backup regimes is this correct?
Full backups will form the base of your recovery solution with logs and\or differentials to bring databases up to a set point in time
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|
|
SSChampion
        
Group: General Forum Members
Last Login: Yesterday @ 3:41 AM
Points: 13,383,
Visits: 25,189
|
|
Full backups do not contain the transaction logs. That's a myth. A full backup has a complete copy of the database including all completed transactions up to the point of the backup. Any incomplete transactions are cleaned up as part of the restore process.
The thing is, a full backup, depending on the size of your system, can take quite a while and will use some system resources. So you can't run a full backup every 1/2 hour on most production systems. Instead, other backups are used in combination to protect the data in a more granular fashion. That's what log backups are for. They backup just the transaction log. This allows for very fast, lightweight backups, and, as was already mentioned, the ability to restore to a specific point in time. A full backup can only be restored to when it occurred. Logs can be restored to specific moments.
Backups are not a technology problem. They're a business problem. Talk to your business and find out exactly how much time they can afford to lose on the database. If that number is small, you're going to need to work on setting up a recovery mechanism that covers the business adequately.
---------------------------------------------------- "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt The Scary DBA Author of: SQL Server 2012 Query Performance Tuning SQL Server 2008 Query Performance Tuning Distilled and SQL Server Execution Plans
Product Evangelist for Red Gate Software
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: 2 days ago @ 5:09 AM
Points: 415,
Visits: 1,458
|
|
Thank you,
I have read in blogs/books that, when we are setting up mirroring/Log shipping we have to take the both Full backup&Transactional backup and restore them to the secondary server as an initial step.
If the Full backup contains all the completed transactions then what is the benefit of again taking the Transactional backup again?
Even if we take the t-log if that contains not completed transactions those will not be committed over secondary right?
Kindly explain.
|
|
|
|
|
SSChampion
        
Group: General Forum Members
Last Login: Yesterday @ 3:41 AM
Points: 13,383,
Visits: 25,189
|
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: 2 days ago @ 5:09 AM
Points: 415,
Visits: 1,458
|
|
That means, with out Transaction log (Only with the Full Backup) the log shipping and Mirroring will not work.
I could have try but i need to get the confirmation form the experts. I have not find any information related to this question.
Thank you for your time.
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 8:44 AM
Points: 5,204,
Visits: 11,165
|
|
SQL* (9/17/2012) I have read in blogs/books that, when we are setting up mirroring/Log shipping we have to take the both Full backup&Transactional backup and restore them to the secondary server as an initial step. That's Database Mirroring, Log shipping doesn't require you to take at least one log backup, you only need to initialise the secondary database from a full backup of the primary or let the Log Shpping wizard do this for you.
Furthermore, for mirroring Books Online goes on to say the following
Books Online Typically, at least one log backup must be taken on the principal database, copied to the mirror server, and restored on the mirror database (using WITH NORECOVERY). However, a log backup might be unnecessary, if the database has just been created and no log backup has been taken yet, or if the recovery model has just been changed from SIMPLE to FULL.
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: 2 days ago @ 5:09 AM
Points: 415,
Visits: 1,458
|
|
However, a log backup might be unnecessary, if the database has just been created and no log backup has been taken yet, or if the recovery model has just been changed from SIMPLE to FULL
Is there any specific reason on this restriction?
|
|
|
|