![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Log Shipping.... In my organization we had implemented Disaster Recovery (Log Shipping) but Log File size is increasing gradually (140 GB) and Data File size is 20 GB, I am just wondering log file size should be trancate once it will ship to destination Server, FYI, log ship every after 15 mins. I would appreciate if any one can guide me how log could be shrink automatically. Thanks |
#3
| |||
| |||
|
|
What are you doing? Are you backing up tot he same log file (device) each time? If so stop that . Backup to a different file each time byadding a timestamp to the file name. Then the backups should be relatively small and you can delete them after a specified time period. -- Andrew J. Kelly SQL MVP "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:%23nibvnRfHHA.1456 (AT) TK2MSFTNGP04 (DOT) phx.gbl... Log Shipping.... In my organization we had implemented Disaster Recovery (Log Shipping) but Log File size is increasing gradually (140 GB) and Data File size is 20 GB, I am just wondering log file size should be trancate once it will ship to destination Server, FYI, log ship every after 15 mins. I would appreciate if any one can guide me how log could be shrink automatically. Thanks |
#4
| |||
| |||
|
|
There is a log shipping environment and I can't change any thing, if you can let me know if change the intervel time from 15 to 20 mins, will that helpful ? Thanks "Andrew J. Kelly" <sqlmvpnooospam (AT) shadhawk (DOT) com> wrote in message news:OZPoY9SfHHA.4872 (AT) TK2MSFTNGP03 (DOT) phx.gbl... What are you doing? Are you backing up tot he same log file (device) each time? If so stop that . Backup to a different file each time byadding a timestamp to the file name. Then the backups should be relatively small and you can delete them after a specified time period. -- Andrew J. Kelly SQL MVP "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:%23nibvnRfHHA.1456 (AT) TK2MSFTNGP04 (DOT) phx.gbl... Log Shipping.... In my organization we had implemented Disaster Recovery (Log Shipping) but Log File size is increasing gradually (140 GB) and Data File size is 20 GB, I am just wondering log file size should be trancate once it will ship to destination Server, FYI, log ship every after 15 mins. I would appreciate if any one can guide me how log could be shrink automatically. Thanks |
#5
| |||
| |||
|
|
I have no idea what environment you have. Is it the log backups that are 140GB in size of the transaction log itself? If it is the transaction log file then you most likely have one of two conditions. Either you did not start with a valid FULL backup or you have an open transaction that is preventing the log from truncating. What does DBCC OPENTRAN() show for that db? -- Andrew J. Kelly SQL MVP "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:%23XfwtzdfHHA.3648 (AT) TK2MSFTNGP05 (DOT) phx.gbl... There is a log shipping environment and I can't change any thing, if you can let me know if change the intervel time from 15 to 20 mins, will that helpful ? Thanks "Andrew J. Kelly" <sqlmvpnooospam (AT) shadhawk (DOT) com> wrote in message news:OZPoY9SfHHA.4872 (AT) TK2MSFTNGP03 (DOT) phx.gbl... What are you doing? Are you backing up tot he same log file (device) each time? If so stop that . Backup to a different file each time byadding a timestamp to the file name. Then the backups should be relatively small and you can delete them after a specified time period. -- Andrew J. Kelly SQL MVP "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:%23nibvnRfHHA.1456 (AT) TK2MSFTNGP04 (DOT) phx.gbl... Log Shipping.... In my organization we had implemented Disaster Recovery (Log Shipping) but Log File size is increasing gradually (140 GB) and Data File size is 20 GB, I am just wondering log file size should be trancate once it will ship to destination Server, FYI, log ship every after 15 mins. I would appreciate if any one can guide me how log could be shrink automatically. Thanks |
#6
| |||
| |||
|
|
I have no idea what environment you have. Is it the log backups that are 140GB in size of the transaction log itself? If it is the transaction log file then you most likely have one of two conditions. Either you did not start with a valid FULL backup or you have an open transaction that is preventing the log from truncating. What does DBCC OPENTRAN() show for that db? -- Andrew J. Kelly SQL MVP "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:%23XfwtzdfHHA.3648 (AT) TK2MSFTNGP05 (DOT) phx.gbl... There is a log shipping environment and I can't change any thing, if you can let me know if change the intervel time from 15 to 20 mins, will that helpful ? Thanks "Andrew J. Kelly" <sqlmvpnooospam (AT) shadhawk (DOT) com> wrote in message news:OZPoY9SfHHA.4872 (AT) TK2MSFTNGP03 (DOT) phx.gbl... What are you doing? Are you backing up tot he same log file (device) each time? If so stop that . Backup to a different file each time byadding a timestamp to the file name. Then the backups should be relatively small and you can delete them after a specified time period. -- Andrew J. Kelly SQL MVP "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:%23nibvnRfHHA.1456 (AT) TK2MSFTNGP04 (DOT) phx.gbl... Log Shipping.... In my organization we had implemented Disaster Recovery (Log Shipping) but Log File size is increasing gradually (140 GB) and Data File size is 20 GB, I am just wondering log file size should be trancate once it will ship to destination Server, FYI, log ship every after 15 mins. I would appreciate if any one can guide me how log could be shrink automatically. Thanks |
#7
| |||
| |||
|
|
Just wondering, In log shipping environment, the log will auto shrink or never shrink? "Andrew J. Kelly" <sqlmvpnooospam (AT) shadhawk (DOT) com> wrote in message news:upSAYxgfHHA.4704 (AT) TK2MSFTNGP06 (DOT) phx.gbl... I have no idea what environment you have. Is it the log backups that are 140GB in size of the transaction log itself? If it is the transaction log file then you most likely have one of two conditions. Either you did not start with a valid FULL backup or you have an open transaction that is preventing the log from truncating. What does DBCC OPENTRAN() show for that db? -- Andrew J. Kelly SQL MVP "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:%23XfwtzdfHHA.3648 (AT) TK2MSFTNGP05 (DOT) phx.gbl... There is a log shipping environment and I can't change any thing, if you can let me know if change the intervel time from 15 to 20 mins, will that helpful ? Thanks "Andrew J. Kelly" <sqlmvpnooospam (AT) shadhawk (DOT) com> wrote in message news:OZPoY9SfHHA.4872 (AT) TK2MSFTNGP03 (DOT) phx.gbl... What are you doing? Are you backing up tot he same log file (device) each time? If so stop that . Backup to a different file each time byadding a timestamp to the file name. Then the backups should be relatively small and you can delete them after a specified time period. -- Andrew J. Kelly SQL MVP "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:%23nibvnRfHHA.1456 (AT) TK2MSFTNGP04 (DOT) phx.gbl... Log Shipping.... In my organization we had implemented Disaster Recovery (Log Shipping) but Log File size is increasing gradually (140 GB) and Data File size is 20 GB, I am just wondering log file size should be trancate once it will ship to destination Server, FYI, log ship every after 15 mins. I would appreciate if any one can guide me how log could be shrink automatically. Thanks |
#8
| |||
| |||
|
|
Log files never shrink unless you issue a shrink command or have the autoshrink option turned on. If you issue regualr log backups and don't have long running open transactions the log file can reuse the parts of the log that have been committed and backedup. -- Andrew J. Kelly SQL MVP "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:%23iOXzzCgHHA.5056 (AT) TK2MSFTNGP02 (DOT) phx.gbl... Just wondering, In log shipping environment, the log will auto shrink or never shrink? "Andrew J. Kelly" <sqlmvpnooospam (AT) shadhawk (DOT) com> wrote in message news:upSAYxgfHHA.4704 (AT) TK2MSFTNGP06 (DOT) phx.gbl... I have no idea what environment you have. Is it the log backups that are 140GB in size of the transaction log itself? If it is the transaction log file then you most likely have one of two conditions. Either you did not start with a valid FULL backup or you have an open transaction that is preventing the log from truncating. What does DBCC OPENTRAN() show for that db? -- Andrew J. Kelly SQL MVP "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:%23XfwtzdfHHA.3648 (AT) TK2MSFTNGP05 (DOT) phx.gbl... There is a log shipping environment and I can't change any thing, if you can let me know if change the intervel time from 15 to 20 mins, will that helpful ? Thanks "Andrew J. Kelly" <sqlmvpnooospam (AT) shadhawk (DOT) com> wrote in message news:OZPoY9SfHHA.4872 (AT) TK2MSFTNGP03 (DOT) phx.gbl... What are you doing? Are you backing up tot he same log file (device) each time? If so stop that . Backup to a different file each timeby adding a timestamp to the file name. Then the backups should be relatively small and you can delete them after a specified time period. -- Andrew J. Kelly SQL MVP "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:%23nibvnRfHHA.1456 (AT) TK2MSFTNGP04 (DOT) phx.gbl... Log Shipping.... In my organization we had implemented Disaster Recovery (Log Shipping) but Log File size is increasing gradually (140 GB) and Data File size is 20 GB, I am just wondering log file size should be trancate once it will ship to destination Server, FYI, log ship every after 15 mins. I would appreciate if any one can guide me how log could be shrink automatically. Thanks |
#9
| |||
| |||
|
|
So is that good if the Data File size is 2GB and Log File size is 7 GB.... I am trying to understand, in log shipping environment we can't shrink the log file then it will go to maximum size to our hard disk. "Andrew J. Kelly" <sqlmvpnooospam (AT) shadhawk (DOT) com> wrote in message news:%23QTv3oIgHHA.4064 (AT) TK2MSFTNGP03 (DOT) phx.gbl... Log files never shrink unless you issue a shrink command or have the autoshrink option turned on. If you issue regualr log backups and don't have long running open transactions the log file can reuse the parts of the log that have been committed and backedup. -- Andrew J. Kelly SQL MVP "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:%23iOXzzCgHHA.5056 (AT) TK2MSFTNGP02 (DOT) phx.gbl... Just wondering, In log shipping environment, the log will auto shrink or never shrink? "Andrew J. Kelly" <sqlmvpnooospam (AT) shadhawk (DOT) com> wrote in message news:upSAYxgfHHA.4704 (AT) TK2MSFTNGP06 (DOT) phx.gbl... I have no idea what environment you have. Is it the log backups that are 140GB in size of the transaction log itself? If it is the transaction log file then you most likely have one of two conditions. Either you did not start with a valid FULL backup or you have an open transaction that is preventing the log from truncating. What does DBCC OPENTRAN() show for that db? -- Andrew J. Kelly SQL MVP "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:%23XfwtzdfHHA.3648 (AT) TK2MSFTNGP05 (DOT) phx.gbl... There is a log shipping environment and I can't change any thing, if you can let me know if change the intervel time from 15 to 20 mins, will that helpful ? Thanks "Andrew J. Kelly" <sqlmvpnooospam (AT) shadhawk (DOT) com> wrote in message news:OZPoY9SfHHA.4872 (AT) TK2MSFTNGP03 (DOT) phx.gbl... What are you doing? Are you backing up tot he same log file (device) each time? If so stop that . Backup to a different fileeach time by adding a timestamp to the file name. Then the backups should be relatively small and you can delete them after a specified time period. -- Andrew J. Kelly SQL MVP "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:%23nibvnRfHHA.1456 (AT) TK2MSFTNGP04 (DOT) phx.gbl... Log Shipping.... In my organization we had implemented Disaster Recovery (Log Shipping) but Log File size is increasing gradually (140 GB) and Data File size is 20 GB, I am just wondering log file size should be trancate once it will ship to destination Server, FYI, log ship every after 15 mins. I would appreciate if any one can guide me how log could be shrink automatically. Thanks |
![]() |
| Thread Tools | |
| Display Modes | |
| |