Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

When testing the failover functionality, the secondary node is unable to run any jobs accessing a TDE database failing with the following error Please create a master key in the database or open the master key in the session before performing this operation.

I have tried

OPEN MASTER KEY DECRYPTION BY PASSWORD = 'password' --now set encryption by the SMK ALTER MASTER KEY ADD ENCRYPTION BY SERVICE MASTER KEY

restarting the service and disabling encryption.

I don't know much about the encryption functionality, and just followed steps to turn it on. Did not expect the failover mechanism to be so rubbish, and worse, so little information about it online. Any help would be appreciated. Thanks Jon

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
244 views
Welcome To Ask or Share your Answers For Others

1 Answer

So it turned out the SSISDB was the issue. I managed to stop error with the following command

EXEC sp_control_dbmasterkey_password @db_name=N'SSISDB', @password=N'', @action=N'add'

It then started throwing up trustworthiness errors which the following then fixed: ALTER DATABASE [SSISDB] SET TRUSTWORTHY ON

Jobs started running after that.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...