March 2, 2017 at 10:42 am
We have too many VLFs on the log file which is configured in log shipping in primary server. For this we need to shrink the log file to reduce the VLF's , can any one suggest the approach not to break the log shipping ?
March 2, 2017 at 11:41 am
You should be able to shrink the tlogs without changing the recovery model. It is the change of the recovery model that would break log shipping.
To fix the VLFs, it will require a shrink of the tlog and then regrow the tlog in appropriate increments. The shrink is what will remove the excess of log fragments.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
March 2, 2017 at 10:13 pm
thanks for the reply , I need a steps to perform the task ?
March 3, 2017 at 12:52 am
This is the sequence I use:
-- 0 = db file info
-- 1 = backup log
-- 2 = Shrink log file
-- 3 = extend log file to appropriate size
-- 4 = Diff backup
-- 5 = backup log after diff
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
March 3, 2017 at 12:52 am
ramyours2003 - Thursday, March 2, 2017 10:13 PMthanks for the reply , I need a steps to perform the task ?
Jason gave you the steps
To fix the VLFs, it will require a shrink of the tlog and then regrow the tlog in appropriate increments
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
March 3, 2017 at 1:16 am
GilaMonster - Friday, March 3, 2017 12:52 AMramyours2003 - Thursday, March 2, 2017 10:13 PMthanks for the reply , I need a steps to perform the task ?Jason gave you the steps
To fix the VLFs, it will require a shrink of the tlog and then regrow the tlog in appropriate increments
I guess I could have also provided a link to Kimberly's article 😉
Or maybe recommend hiring a consultant to do it.:Whistling:
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
March 3, 2017 at 4:44 am
ALZDBA - Friday, March 3, 2017 12:52 AMThis is the sequence I use:-- 0 = db file info
-- 1 = backup log
-- 2 = backup log again!
-- 3 = Shrink log file
-- 4 = extend log file to appropriate size
-- 5 = Diff backup
-- 6 = backup log after diff
These are the correct steps
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs" 😉
March 3, 2017 at 6:18 am
Perry Whittle - Friday, March 3, 2017 4:44 AMALZDBA - Friday, March 3, 2017 12:52 AMThis is the sequence I use:-- 0 = db file info
-- 1 = backup log
-- 2 = backup log again!
-- 3 = Shrink log file
-- 4 = extend log file to appropriate size
-- 5 = Diff backup
-- 6 = backup log after diffThese are the correct steps
😉
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply