PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.server > Open transaction stopping Shrinkfile
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Open transaction stopping Shrinkfile

Réponse
 
LinkBack Outils de la discussion
Vieux 29/08/2008, 20h55   #1
TLuebke
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Open transaction stopping Shrinkfile

I'm trying to shrink and oversized Log file. I've done a complete backup but
when issuing the shrinkfile command I get this:

Cannot shrink log file 2 (xxx_web_Log) because all logical log files are in
use.

The OpenTran command gives me this:
Transaction information for database 'XXX_web'.

Replicated Transaction Information:
Oldest distributed LSN : (259728:69:12)
Oldest non-distributed LSN : (259737:153:1)

What is it and how do I kill it so I can shrink the file?


  Réponse avec citation
Vieux 29/08/2008, 20h58   #2
Tibor Karaszi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Open transaction stopping Shrinkfile

You either have or have had transactional replication configured for this database. If you have it,
you need to troubleshoot if the log reader has stopped. If you no longer have it, Google for how to
remove replication config (sp_repldone, perhaps, but I'm not sure).

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"TLuebke" <TLuebke@discussions.microsoft.com> wrote in message
news:7554752E-6A53-4764-A67A-CFC7E7115603@microsoft.com...
> I'm trying to shrink and oversized Log file. I've done a complete backup but
> when issuing the shrinkfile command I get this:
>
> Cannot shrink log file 2 (xxx_web_Log) because all logical log files are in
> use.
>
> The OpenTran command gives me this:
> Transaction information for database 'XXX_web'.
>
> Replicated Transaction Information:
> Oldest distributed LSN : (259728:69:12)
> Oldest non-distributed LSN : (259737:153:1)
>
> What is it and how do I kill it so I can shrink the file?
>
>


  Réponse avec citation
Vieux 29/08/2008, 23h11   #3
TLuebke
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Open transaction stopping Shrinkfile

When I check the log reader properties the stop button is greyed out and the
start button has focus. If I try to start it throws an error that it can't
retrieve agent status.

Is there another way to verify and stop this agent?

"Tibor Karaszi" wrote:

> You either have or have had transactional replication configured for this database. If you have it,
> you need to troubleshoot if the log reader has stopped. If you no longer have it, Google for how to
> remove replication config (sp_repldone, perhaps, but I'm not sure).
>
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
>
> "TLuebke" <TLuebke@discussions.microsoft.com> wrote in message
> news:7554752E-6A53-4764-A67A-CFC7E7115603@microsoft.com...
> > I'm trying to shrink and oversized Log file. I've done a complete backup but
> > when issuing the shrinkfile command I get this:
> >
> > Cannot shrink log file 2 (xxx_web_Log) because all logical log files are in
> > use.
> >
> > The OpenTran command gives me this:
> > Transaction information for database 'XXX_web'.
> >
> > Replicated Transaction Information:
> > Oldest distributed LSN : (259728:69:12)
> > Oldest non-distributed LSN : (259737:153:1)
> >
> > What is it and how do I kill it so I can shrink the file?
> >
> >

>
>

  Réponse avec citation
Vieux 29/08/2008, 23h53   #4
Tibor Karaszi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Open transaction stopping Shrinkfile

Consider posting to a replication group, or perhaps start a new thread with an appropriate Subject.
I'm no replication expert, so I would be in for BOL reading and Google, which I guess you are as
good at as I am...

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"TLuebke" <TLuebke@discussions.microsoft.com> wrote in message
news:BE2EBF2F-ECA6-4F94-B832-922330C258F5@microsoft.com...
> When I check the log reader properties the stop button is greyed out and the
> start button has focus. If I try to start it throws an error that it can't
> retrieve agent status.
>
> Is there another way to verify and stop this agent?
>
> "Tibor Karaszi" wrote:
>
>> You either have or have had transactional replication configured for this database. If you have
>> it,
>> you need to troubleshoot if the log reader has stopped. If you no longer have it, Google for how
>> to
>> remove replication config (sp_repldone, perhaps, but I'm not sure).
>>
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>>
>> "TLuebke" <TLuebke@discussions.microsoft.com> wrote in message
>> news:7554752E-6A53-4764-A67A-CFC7E7115603@microsoft.com...
>> > I'm trying to shrink and oversized Log file. I've done a complete backup but
>> > when issuing the shrinkfile command I get this:
>> >
>> > Cannot shrink log file 2 (xxx_web_Log) because all logical log files are in
>> > use.
>> >
>> > The OpenTran command gives me this:
>> > Transaction information for database 'XXX_web'.
>> >
>> > Replicated Transaction Information:
>> > Oldest distributed LSN : (259728:69:12)
>> > Oldest non-distributed LSN : (259737:153:1)
>> >
>> > What is it and how do I kill it so I can shrink the file?
>> >
>> >

>>
>>


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h28.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10655 seconds with 12 queries