Truncar Log para DB con replicacion
Publicado por Elvis (27 intervenciones) el 05/01/2007 22:07:26
Saludos a todos y todas.
Tengo una DB que tiene el log muy grande, y deseo truncarlo, pero el problema es que al intentar hacer el truncate me presenta algunos erroes y mensajes y parece debido a la replicacion.
Para efectos de lo que necesito hacer no necesito la replicacion, si la solución es deshabilitar la replicacion como lo puedo hacer. Gracias
Ejecución
BACKUP LOG MIBASE WITH NO_LOG
BACKUP LOG MIBASE WITH TRUNCATE_ONLY
DBCC SHRINKDATABASE (MIBASE,0,TRUNCATEONLY)
Resultado:
The log was not truncated because records at the beginning of the log are pending replication. Ensure the Log Reader Agent is running or use sp_repldone to mark transactions as distributed.
The log was not truncated because records at the beginning of the log are pending replication. Ensure the Log Reader Agent is running or use sp_repldone to mark transactions as distributed.
Cannot shrink log file 2 (MIBASE_Log) because all logical log files are in use.
DbId FileId CurrentSize MinimumSize UsedPages EstimatedPages
------ ------ ----------- ----------- ----------- --------------
8 1 541920 128 521776 521752
8 3 1536 128 1440 1440
8 2 464248 128 464248 128
(3 row(s) affected)
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
Tengo una DB que tiene el log muy grande, y deseo truncarlo, pero el problema es que al intentar hacer el truncate me presenta algunos erroes y mensajes y parece debido a la replicacion.
Para efectos de lo que necesito hacer no necesito la replicacion, si la solución es deshabilitar la replicacion como lo puedo hacer. Gracias
Ejecución
BACKUP LOG MIBASE WITH NO_LOG
BACKUP LOG MIBASE WITH TRUNCATE_ONLY
DBCC SHRINKDATABASE (MIBASE,0,TRUNCATEONLY)
Resultado:
The log was not truncated because records at the beginning of the log are pending replication. Ensure the Log Reader Agent is running or use sp_repldone to mark transactions as distributed.
The log was not truncated because records at the beginning of the log are pending replication. Ensure the Log Reader Agent is running or use sp_repldone to mark transactions as distributed.
Cannot shrink log file 2 (MIBASE_Log) because all logical log files are in use.
DbId FileId CurrentSize MinimumSize UsedPages EstimatedPages
------ ------ ----------- ----------- ----------- --------------
8 1 541920 128 521776 521752
8 3 1536 128 1440 1440
8 2 464248 128 464248 128
(3 row(s) affected)
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
Valora esta pregunta


0