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 > trn file is too big
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
trn file is too big

Réponse
 
LinkBack Outils de la discussion
Vieux 16/06/2008, 18h41   #1
tolcis
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut trn file is too big

Hi!


A log file for one of my databases is very big (over 100GB). This is
very unusual for this database - most of the time it is under 10GB.
I backup database and tried to shrink the log file - didn't work.
I backuped log file with Truncate_Only (didn't need sequence to be
preserved) and than ran dbcc shrink file again - didn't work. Log
stayed the same size.
What else can I do?

This is for SQL 2000 SP4.

T.
  Réponse avec citation
Vieux 16/06/2008, 18h55   #2
Aaron Bertrand [SQL Server MVP]
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: trn file is too big

What does DBCC OPENTRAN tell you?


On 6/16/08 12:41 PM, in article
0e42a803-fee3-4017-a591-7b45ea6af049...oglegroups.com, "tolcis"
<nytollydba@gmail.com> wrote:

> Hi!
>
>
> A log file for one of my databases is very big (over 100GB). This is
> very unusual for this database - most of the time it is under 10GB.
> I backup database and tried to shrink the log file - didn't work.
> I backuped log file with Truncate_Only (didn't need sequence to be
> preserved) and than ran dbcc shrink file again - didn't work. Log
> stayed the same size.
> What else can I do?
>
> This is for SQL 2000 SP4.
>
> T.


  Réponse avec citation
Vieux 16/06/2008, 19h22   #3
Tracy McKibben (http://www.realsqlguy.com)
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: trn file is too big

On Jun 16, 11:41am, tolcis <nytolly...@gmail.com> wrote:
> Hi!
>
> A log file for one of my databases is very big (over 100GB). This is
> very unusual for this database - most of the time it is under 10GB.
> I backup database and tried to shrink the log file - didn't work.
> I backuped log file with Truncate_Only (didn't need sequence to be
> preserved) and than ran dbcc shrink file again - didn't work. Log
> stayed the same size.
> What else can I do?
>
> This is for SQL 2000 SP4.
>
> T.


As Aaron suggested, run DBCC OPENTRAN - is there a transaction stuck
open? Is the database being replicated, but the logreader service is
stopped? Something is preventing transactions from being flushed from
the log.
  Réponse avec citation
Vieux 16/06/2008, 19h49   #4
David Hay
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: trn file is too big

On Jun 16, 1:22 pm, "Tracy McKibben (http://www.realsqlguy.com)"
<tracy.mckib...@gmail.com> wrote:
> On Jun 16, 11:41 am, tolcis <nytolly...@gmail.com> wrote:
>
> > Hi!

>
> > A log file for one of my databases is very big (over 100GB). This is
> > very unusual for this database - most of the time it is under 10GB.
> > I backup database and tried to shrink the log file - didn't work.
> > I backuped log file with Truncate_Only (didn't need sequence to be
> > preserved) and than ran dbcc shrink file again - didn't work. Log
> > stayed the same size.
> > What else can I do?

>
> > This is for SQL 2000 SP4.

>
> > T.

>
> As Aaron suggested, run DBCC OPENTRAN - is there a transaction stuck
> open? Is the database being replicated, but the logreader service is
> stopped? Something is preventing transactions from being flushed from
> the log.


I have the same issue on a DEV datawarehouse DB. No replication, and
dbcc opentran shows
No active open transactions.

David

  Réponse avec citation
Vieux 16/06/2008, 19h53   #5
Tracy McKibben (http://www.realsqlguy.com)
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: trn file is too big

On Jun 16, 12:49pm, David Hay <david....@gmail.com> wrote:
> On Jun 16, 1:22 pm, "Tracy McKibben (http://www.realsqlguy.com)"
>
>
>
> <tracy.mckib...@gmail.com> wrote:
> > On Jun 16, 11:41 am, tolcis <nytolly...@gmail.com> wrote:

>
> > > Hi!

>
> > > A log file for one of my databases is very big (over 100GB). This is
> > > very unusual for this database - most of the time it is under 10GB.
> > > I backup database and tried to shrink the log file - didn't work.
> > > I backuped log file with Truncate_Only (didn't need sequence to be
> > > preserved) and than ran dbcc shrink file again - didn't work. Log
> > > stayed the same size.
> > > What else can I do?

>
> > > This is for SQL 2000 SP4.

>
> > > T.

>
> > As Aaron suggested, run DBCC OPENTRAN - is there a transaction stuck
> > open? Is the database being replicated, but the logreader service is
> > stopped? Something is preventing transactions from being flushed from
> > the log.

>
> I have the same issue on a DEV datawarehouse DB. No replication, and
> dbcc opentran shows
> No active open transactions.
>
> David


No replication, no active open transactions - have you performed a
backup of the log file? How much free space is reported in the log
file?
  Réponse avec citation
Vieux 16/06/2008, 20h02   #6
Aaron Bertrand [SQL Server MVP]
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: trn file is too big

>> I have the same issue on a DEV datawarehouse DB. No replication, and
>> dbcc opentran shows
>> No active open transactions.
>>
>> David

>
> No replication, no active open transactions - have you performed a
> backup of the log file? How much free space is reported in the log
> file?


And are you sure you are in the correct database when running DBCC OPENTRAN.
A common mistake is running it in master or tempdb, or the wrong user
database, by accident.

  Réponse avec citation
Vieux 16/06/2008, 20h25   #7
David Hay
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: trn file is too big

On Jun 16, 2:02 pm, "Aaron Bertrand [SQL Server MVP]"
<ten....@dnartreb.noraa> wrote:
> >> I have the same issue on a DEV datawarehouse DB. No replication, and
> >> dbcc opentran shows
> >> No active open transactions.

>
> >> David

>
> > No replication, no active open transactions - have you performed a
> > backup of the log file? How much free space is reported in the log
> > file?

>
> And are you sure you are in the correct database when running DBCC OPENTRAN.
> A common mistake is running it in master or tempdb, or the wrong user
> database, by accident.


positive. I slap the other DBA's when they open QA and create stuff
in master.

  Réponse avec citation
Vieux 17/06/2008, 08h23   #8
Tibor Karaszi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: trn file is too big

Next step would be to investigate the virtual log file layout of your log. You'll find some detail
on how to do this in http://www.karaszi.com/SQLServer/info_dont_shrink.asp.

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


"David Hay" <david.hay@gmail.com> wrote in message
news:3206b17a-ffe8-4863-b8e0-61faec365d0a@l42g2000hsc.googlegroups.com...
> On Jun 16, 2:02 pm, "Aaron Bertrand [SQL Server MVP]"
> <ten....@dnartreb.noraa> wrote:
>> >> I have the same issue on a DEV datawarehouse DB. No replication, and
>> >> dbcc opentran shows
>> >> No active open transactions.

>>
>> >> David

>>
>> > No replication, no active open transactions - have you performed a
>> > backup of the log file? How much free space is reported in the log
>> > file?

>>
>> And are you sure you are in the correct database when running DBCC OPENTRAN.
>> A common mistake is running it in master or tempdb, or the wrong user
>> database, by accident.

>
> positive. I slap the other DBA's when they open QA and create stuff
> in master.
>



  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 03h57.


É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,16153 seconds with 16 queries