Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Growing Log Files Expand / Collapse
Author
Message
Posted Thursday, April 4, 2013 5:39 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, June 27, 2014 2:49 PM
Points: 18, Visits: 80
I am intermediate in database admin. Please give me your solution for this issue.
Size of my db is growing about 5M every 2 weeks. Now its size is 118G. my db is in full recovery mode, and I do not have log backup.
Is this a good solution?

1- Perform a full backup
2- execute checkpoint
3-Perform full Backup
4- Perform transactional log backup
5- shrink log file type
6- schedule transactional log backup

Also, can I do these processes during users are connected ?
Post #1439058
Posted Thursday, April 4, 2013 7:33 PM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 12:11 AM
Points: 17,823, Visits: 15,754
mp5387 (4/4/2013)
I am intermediate in database admin. Please give me your solution for this issue.
Size of my db is growing about 5M every 2 weeks. Now its size is 118G. my db is in full recovery mode, and I do not have log backup.
Is this a good solution?

1- Perform a full backup
2- execute checkpoint
3-Perform full Backup
4- Perform transactional log backup
5- shrink log file type
6- schedule transactional log backup

Also, can I do these processes during users are connected ?


Skip steps 2 and 3. Move step 6 to the new step 1.

And if your log file is truly too big then do step 5.

So the new order would be:
1. Create tlog backup schedule
2. Perform Full backup
3. Shrink log file if too large.

Doing this will allow the schedule to take care of the tlog backups.




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Post #1439071
Posted Thursday, April 4, 2013 10:20 PM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Yesterday @ 11:12 AM
Points: 422, Visits: 2,647
mp5387 (4/4/2013)
I am intermediate in database admin. Please give me your solution for this issue.
Size of my db is growing about 5M every 2 weeks. Now its size is 118G. my db is in full recovery mode, and I do not have log backup.
Is this a good solution?

1- Perform a full backup
2- execute checkpoint
3-Perform full Backup
4- Perform transactional log backup
5- shrink log file type
6- schedule transactional log backup

Also, can I do these processes during users are connected ?


I would say, do full backup weekly, daily differential and hourly log backups based on the RTO provided.

If your database is in full recovery model, then definitely, you need to do log backup to truncate the logs.

SueTons.


Regards,
SQLisAwe5oMe.
Post #1439085
Posted Thursday, April 4, 2013 11:04 PM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 12:11 AM
Points: 17,823, Visits: 15,754
SQLCrazyCertified (4/4/2013)
mp5387 (4/4/2013)
I am intermediate in database admin. Please give me your solution for this issue.
Size of my db is growing about 5M every 2 weeks. Now its size is 118G. my db is in full recovery mode, and I do not have log backup.
Is this a good solution?

1- Perform a full backup
2- execute checkpoint
3-Perform full Backup
4- Perform transactional log backup
5- shrink log file type
6- schedule transactional log backup

Also, can I do these processes during users are connected ?


I would say, do full backup weekly, daily differential and hourly log backups based on the RTO provided.

If your database is in full recovery model, then definitely, you need to do log backup to truncate the logs.

SueTons.


An RTO was not provided. And your suggestion has more to do with RPO and not RTO. Though neither has been specified so they are both unknowns.




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Post #1439096
Posted Friday, April 5, 2013 1:47 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 8:19 AM
Points: 40,208, Visits: 36,617
Please read through this - Managing Transaction Logs


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1439123
Posted Friday, April 5, 2013 1:44 PM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Yesterday @ 11:12 AM
Points: 422, Visits: 2,647
SQLRNNR (4/4/2013)
SQLCrazyCertified (4/4/2013)
mp5387 (4/4/2013)
I am intermediate in database admin. Please give me your solution for this issue.
Size of my db is growing about 5M every 2 weeks. Now its size is 118G. my db is in full recovery mode, and I do not have log backup.
Is this a good solution?

1- Perform a full backup
2- execute checkpoint
3-Perform full Backup
4- Perform transactional log backup
5- shrink log file type
6- schedule transactional log backup

Also, can I do these processes during users are connected ?


I would say, do full backup weekly, daily differential and hourly log backups based on the RTO provided.

If your database is in full recovery model, then definitely, you need to do log backup to truncate the logs.

SueTons.


An RTO was not provided. And your suggestion has more to do with RPO and not RTO. Though neither has been specified so they are both unknowns.


Thanks for the correction, however, I thought RPO(Recovery Point Objective) and RTO(Recovery Time Objective) are basically same? Please let me know.

SueTons.


Regards,
SQLisAwe5oMe.
Post #1439453
Posted Friday, April 5, 2013 1:49 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 11:04 AM
Points: 20,735, Visits: 32,517
SQLCrazyCertified (4/5/2013)
SQLRNNR (4/4/2013)
SQLCrazyCertified (4/4/2013)
mp5387 (4/4/2013)
I am intermediate in database admin. Please give me your solution for this issue.
Size of my db is growing about 5M every 2 weeks. Now its size is 118G. my db is in full recovery mode, and I do not have log backup.
Is this a good solution?

1- Perform a full backup
2- execute checkpoint
3-Perform full Backup
4- Perform transactional log backup
5- shrink log file type
6- schedule transactional log backup

Also, can I do these processes during users are connected ?


I would say, do full backup weekly, daily differential and hourly log backups based on the RTO provided.

If your database is in full recovery model, then definitely, you need to do log backup to truncate the logs.

SueTons.


An RTO was not provided. And your suggestion has more to do with RPO and not RTO. Though neither has been specified so they are both unknowns.


Thanks for the correction, however, I thought RPO(Recovery Point Objective) and RTO(Recovery Time Objective) are basically same? Please let me know.

SueTons.


RPO, how close to the time of failure do you need to recover. Or, how much data are you willing to lose time wise. Can your people manually recover the last one hour of work for example.

RTO, how long it will take to restore operation.



Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Post #1439456
Posted Friday, April 5, 2013 1:58 PM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 8:19 AM
Points: 40,208, Visits: 36,617
They can be radically different.

For example, I worked with a card processing company a few years back, their RTO was minutes. Literally, every minute they were down they were losing money because they couldn't process transactions. Their RPO however was 48 hours. They could lose up to 2 days of data without concern because they got summaries from the banks every 24 hours containing the previous 2 days of data, which they could use to recreate any lost transactions in their systems.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1439461
Posted Friday, April 5, 2013 2:02 PM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Yesterday @ 11:12 AM
Points: 422, Visits: 2,647
Thanks guys.

SueTons.


Regards,
SQLisAwe5oMe.
Post #1439463
Posted Monday, April 8, 2013 11:24 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, June 27, 2014 2:49 PM
Points: 18, Visits: 80
Hi,
Thanks for your answer. I did this solution on my test server and it worked, but I am worry! Can I do that on my production server during the users are connected and they work with application?
Also, we donot have lots of transaction daily.So, I want to schedule one full backup daily, and one transactional backup every one hour. Now for providing transactional backup which method is good? append or overwrite
I appreciate your answer in advance!
Post #1439953
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse