|
|
|
Помогите усеч log MSSQL, шринк не дает результата
|
|||
|---|---|---|---|
|
#18+
mk.alucardа что значит "включена репликация", может кто пояснить? Это не бэкапы по регламенту FULL и ЖТ, а что-то другое? что-то другое. все изменения с этой базы (с версии-оригинала) транслировались в другую базу(базы) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.12.2017, 13:57:13 |
|
||
|
Помогите усеч log MSSQL, шринк не дает результата
|
|||
|---|---|---|---|
|
#18+
Сегодня пришла рассылка от SQLSkill и там в разделе curious case есть интересный текст, я честно об этом не знал, поэтому решил оставить здесь, может кому пригодится: I was working with a client recently who ran into a problem with one database, using the simple recovery model, where the log was growing and would not clear. They checked the log_reuse_wait_desc field in sys.databases and it said REPLICATION. They had previously set up the database as a replication subscriber but they’d since removed replication, and yet the log still would not clear when they ran a checkpoint (which is what attempts to clear the log when using the simple recovery model). They had tried the usual things: running sp_repldone, running sp_removedbreplication, and even re-configuring and removing replication again. Nothing worked. When they told me this, my response was to ask if they were using Change Data Capture in that database. And they were. What they didn't know is that Change Data Capture harvests committed transactions on the tables being monitored from the transaction log. And it does this using the replication Log Reader Agent job if replication is configured, or its own capture job if replication is not configured. One of their developers had written custom logic around the call to sp_cdc_scan in the capture job and had made a mistake that prevented the scan from starting, so the log just grew and grew. But why did the log_reuse_wait_desc say REPLICATION and not CDC? Because there is no separate indication that CDC is preventing the log from clearing – it uses the REPLICATION value, which can cause a lot of confusion! Bottom line: If you ever see a log_reuse_wait_desc value of REPLICATION, and replication isn’t configured, check the is_cdc_enabled flag in sys.databases as well, and then troubleshoot CDC from there ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.12.2017, 08:48:24 |
|
||
|
|

start [/forum/topic.php?fid=46&msg=39571804&tid=1690648]: |
0ms |
get settings: |
6ms |
get forum list: |
9ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
218ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
34ms |
get tp. blocked users: |
1ms |
| others: | 193ms |
| total: | 479ms |

| 0 / 0 |
