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

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 2011-07-28 23:11 +0200
Organization Erland Sommarskog
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>

Show all headers | 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