Dec 06 2022 12:17 PM
olá.
Eu tenho configurado o banco de dados com o mecanismo de recovery full, e ocorre que mesmo configurando o backup do banco e o backup dos logs, o arquivo do log não é esvaziado.
No meu entendimento, sempre após o backup full, deveria limpar os logs, mas isto não está ocorrendo.
Tem alguma configuração faltando nos jobs?
Dec 06 2022 10:06 PM
Dec 07 2022 02:14 AM
@olafhelper , ok, I'm sorry.
Why is my data base don't clean the files log? I have configured to recovery full and I set the jobs to full backup and log backups. But, after the backup full, my logs files (.ldf) dont are cleaned.
Did I someting wrong on the backup configuration?
Dec 07 2022 10:55 PM
@articoblumenau , what do you mean with "clean log" and how did you check this "not clean"?
A log backup release VLF = "Virtual log file" for reuse.
You can check it with
DBCC SQLPERF (Transact-SQL) - SQL Server | Microsoft Learn
sys.dm_db_log_info (Transact-SQL) - SQL Server | Microsoft Learn
Dec 08 2022 05:34 AM
Dec 08 2022 11:24 PM
The file .ldf is growing and when I do backup full its not decrease
Of course not, SQL Server never shrinks files on its own, because it's an expensive IO operation.
Run
select name, log_reuse_wait_desc
from sys.databases
to see, why VLF's are not released, e.g. may cause by faulty log shipping or replication.