Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Growing Log Files


Growing Log Files

Author
Message
mp5387
mp5387
Grasshopper
Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)

Group: General Forum Members
Points: 20 Visits: 90
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 ?
SQLRNNR
SQLRNNR
SSC-Insane
SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)

Group: General Forum Members
Points: 21075 Visits: 18259
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

SQLisAwE5OmE
SQLisAwE5OmE
Mr or Mrs. 500
Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)

Group: General Forum Members
Points: 558 Visits: 3062
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.
SQLRNNR
SQLRNNR
SSC-Insane
SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)

Group: General Forum Members
Points: 21075 Visits: 18259
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

GilaMonster
GilaMonster
SSC-Forever
SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)

Group: General Forum Members
Points: 47261 Visits: 44392
Please read through this - Managing Transaction Logs


Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
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


SQLisAwE5OmE
SQLisAwE5OmE
Mr or Mrs. 500
Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)

Group: General Forum Members
Points: 558 Visits: 3062
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.
Lynn Pettis
Lynn Pettis
SSC-Insane
SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)

Group: General Forum Members
Points: 24207 Visits: 37978
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.

Cool
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)
GilaMonster
GilaMonster
SSC-Forever
SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)

Group: General Forum Members
Points: 47261 Visits: 44392
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, MVP, M.Sc (Comp Sci)
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


SQLisAwE5OmE
SQLisAwE5OmE
Mr or Mrs. 500
Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)Mr or Mrs. 500 (558 reputation)

Group: General Forum Members
Points: 558 Visits: 3062
Thanks guys.

SueTons.

Regards,
SQLisAwe5oMe.
mp5387
mp5387
Grasshopper
Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)

Group: General Forum Members
Points: 20 Visits: 90
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!
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search