Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Error Restore DB with TDE and Availability Group

$
0
0
Good morning, yesterday i've tried to restore DB on server 192.168.1.201, this server has Availability Group "AGDATABASE" for synchronized with another server 192.168.1.202. 

But Restore give this error: 
RESTORE cannot operate on database 'EVOTING' because it is configured for database mirroring or has joined an availability group. If you intend to restore the database, use ALTER DATABASE to remove mirroring or to remove the database from its availability group. 

I've used this: 

alter database NAMEDB SET PARTNER OFF 

Error: Database is not configured for database mirroring. 

But, i've found this site https://support.microsoft.com/en-us/kb/2857849 

192.168.1.201 Node1 Primary DB 
192.168.1.202 Node2 Secondary DB 

I've tried this script for remove replica on 202 after used "alter availability group AG failover" 

After: 
alter availability group AG remove replica on 'server-DB1\DBALWAYSON' 

After: 
use master 
go 
create availability group ag for replica on 'server-DB1\DBALWAYSON' with 
(endpoint_url = 'TCP://server-DB1.server.local:5022', availability_mode=asynchronous_commit, failover_mode=manual) 

NOW, on 192*.201 is empty Availability Group AGDATABASE, restore is worked, but cannot synchronize with 192*.202, and i see on 192*.202 replica server-DB1 cannot connect. 

How i can resolve this problem? 
Thanks and greetings 

Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>