Installation fails prematurely due to the database being in a database mirroring session or an availability group
说明
The RMAD installation fails prematurely and the following error is logged in the msiexec install log (by running from a command line, msiexec /i "rmad_x64.msi" /L*v RMADInstall.log):
"The operation cannot be performed on database "RecoveryManager-Reporting-" because it is involved in a database mirroring session or an availability group. Some operations are not allowed on a database that is participating in a database mirroring session or in an availability group."
解决办法
The error indicates that the database is in an AllwaysOn Availability group. Please confirm if this is the case and if so, try removing it from the availability group. As the database does not store any historical data so there is no risk of losing any data by removing it. You can also try deleting the existing database, and the corresponding mdf and ldf files, and then try the install again.