March 15, 2023 at 1:17 am
I am trying to mirror a TDE Encrypted Database. (SQL 2019). When I try to start mirroring with the GUI it says "Database not configured for mirroring". Same if I try to use ALTER SET PARTNER code.
I created a TestDB not encrypted and the mirror starts fine using the same steps. (restore with norecovery etc).
I restored the master key, certificate on the second server, they show as there when queried.
I tested to see if the DB would restore to the second server as normal WITH RECOVERY and it goes as expected and I can see data.
I am out of ideas.
March 15, 2023 at 5:54 am
I am trying to mirror a TDE Encrypted Database. (SQL 2019). When I try to start mirroring with the GUI it says "Database not configured for mirroring". Same if I try to use ALTER SET PARTNER code.
I created a TestDB not encrypted and the mirror starts fine using the same steps. (restore with norecovery etc).
I restored the master key, certificate on the second server, they show as there when queried.
I tested to see if the DB would restore to the second server as normal WITH RECOVERY and it goes as expected and I can see data.
I am out of ideas.
Are you getting error while trying to configure Mirror for TDE enabled database?
March 15, 2023 at 11:54 am
This was removed by the editor as SPAM
March 15, 2023 at 12:43 pm
Yes. The database is restored to Recovering status. At that point you are supposed to be able to start the mirror, but the process currently errors out with "Database cannot be opened it is in the middle of a restore" using the GUI.
If I use the alter set partner is gives me the Database is not configured for mirroring.
(Before they were both giving me the not configured message)
I can setup a normal NON TDE mirror and it works. I can restore the encrypted DB to the second server normally and see data so my assumption is that they keys/certs are in the right place.
I feel like I missed some step, but for the life of me I haven't figured out what it is yet.
March 15, 2023 at 2:49 pm
A couple of things you could check:
March 15, 2023 at 11:40 pm
I got it working. I think you have to run the set partner first on the secondary DB, then the primary. And I had to run them manually the GUI failed.
alter database Database01 set Partner = 'TCP://Server02:5022'
Thanks for the suggestions.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply