![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I implemented TDE on one of my SQL Server instance. When I query the database state with the following query it returns 2 to one of my databases which is about 110GB. Its been 2 weeks and its still says 2. SELECT db_name(database_id), encryption_state,* FROM sys.dm_database_encryption_keys ... I would greatly appreciate if anyone can shred some light on this and confirm that the encryption is complete. How do I confirm that the encryption is complete? |
#3
| |||
| |||
|
|
Query Builder (querybuil... (AT) gmail (DOT) com) writes: I implemented TDE on one of my SQL Server instance. When I query the database state with the following query it returns 2 to one of my databases which is about 110GB. Its been 2 weeks and its still says 2. SELECT db_name(database_id), encryption_state,* FROM sys.dm_database_encryption_keys ... I would greatly appreciate if anyone can shred some light on this and confirm that the encryption is complete. How do I confirm that the encryption is complete? Well, if it says 2, that would indicate that it is not complete. What does the other columns in this DMV report for this database? Particularly, what does percent_complete report? I foundhttp://www.simple-talk.com/sql/database-administration/transparent-data- encryption/ which suggests some alternate ways to verify completion. -- Erland Sommarskog, SQL Server MVP, esq... (AT) sommarskog (DOT) 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 |
#4
| |||
| |||
|
|
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.. |
#5
| |||
| |||
|
|
Query Builder (querybuil... (AT) gmail (DOT) 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, esq... (AT) sommarskog (DOT) 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 |
#6
| |||
| |||
|
|
I do not have any long running transactions. DBCC OpenTran did not return any transactions. I do have mirroring enabled and i see that the databases are synchronized and no pending logs to be applied on the DR. |
|
I am worried in the event of a DR, will I be able to fail over and make sure the DB will not get corrupt? |
![]() |
| Thread Tools | |
| Display Modes | |
| |