Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
257 views
in Technique[技术] by (71.8m points)

sql server - AlwaysOn Failover, secondary node jobs fails

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

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

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...