Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.databases.ms-sqlserver > #579

Re: SQL Server Database encryption_state still says 2 for a 110GB Database for the past one week

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From Erland Sommarskog <esquel@sommarskog.se>
Newsgroups comp.databases.ms-sqlserver
Subject Re: SQL Server Database encryption_state still says 2 for a 110GB Database for the past one week
Date Thu, 28 Jul 2011 23:11:06 +0200
Organization Erland Sommarskog
Lines 38
Message-ID <Xns9F30EBD9E522CYazorman@127.0.0.1> (permalink)
References <9c759c9d-2b86-4058-b91f-5f438e6d70fd@hd10g2000vbb.googlegroups.com> <Xns9F2E94E1C40C3Yazorman@127.0.0.1> <f9add072-4e2e-4954-b456-492328a7ecf8@v12g2000vby.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 8bit
Injection-Info mx04.eternal-september.org; posting-host="DD6dU+BfJNjsjSP4/K/V7w"; logging-data="23543"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19UhJ4wVJLBnva6xdjSP0BM"
User-Agent Xnews/2006.08.24 Mime-proxy/2.1.c.0 (Win32)
Cancel-Lock sha1:G49erRHqsqvNDpTQbxLslA0ngA8=
Xref x330-a1.tempe.blueboxinc.net comp.databases.ms-sqlserver:579

Show key headers only | View raw


Query Builder (querybuilder@gmail.com) writes:
> I really appreciate your response...
> 
> The percent_complete says 0 for all the databases including the one
> which is still encrypting..
> is_encrypted = 1 for all Databases
> encryption_state = 2 for only this DB but everything else is 3.
> 
> The mirroring to DR is also synchronized. I do see the backup size has
> grown to be about 81GB where it used to be about 25GB with
> compression. (The db size is actually 115GB).
> 
> I am worried as its been almost 2 weeks. Any help would be much
> appreciated..
 
Since I don't work much with TDE, I consulted my MVP mates. One them 
brought up this:

   Sounds like a long-running transaction is preventing log truncation and 
   the log wrapping. IIRC the encryption_state won't switch to 2 until the 
   log wraps.
   
   That would also account for the increasing backup size - as more and 
   more log needs to be included in the backup because of the long-running 
   transaction.
   
   All from memory - so could be incorrect about the TDE thing. Ask him to 
   check log_reuse_wait_desc and DBCC OPENTRAN.

Is this applicable to your situation?

-- 
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx

Back to comp.databases.ms-sqlserver | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

SQL Server Database encryption_state still says 2 for a 110GB Database for the past one week Query Builder <querybuilder@gmail.com> - 2011-07-25 20:39 -0700
  Re: SQL Server Database encryption_state still says 2 for a 110GB Database for the past one week Erland Sommarskog <esquel@sommarskog.se> - 2011-07-26 14:38 +0200
    Re: SQL Server Database encryption_state still says 2 for a 110GB Database for the past one week Query Builder <querybuilder@gmail.com> - 2011-07-28 06:26 -0700
      Re: SQL Server Database encryption_state still says 2 for a 110GB Database for the past one week Erland Sommarskog <esquel@sommarskog.se> - 2011-07-28 23:11 +0200
        Re: SQL Server Database encryption_state still says 2 for a 110GB Database for the past one week Query Builder <querybuilder@gmail.com> - 2011-07-29 12:41 -0700
          Re: SQL Server Database encryption_state still says 2 for a 110GB Database for the past one week Erland Sommarskog <esquel@sommarskog.se> - 2011-07-30 00:09 +0200

csiph-web