Summary
Recover the PolicyServer in case the database gets corrupted.
Details
To recover the PolicyServer:
- Run MADB Setup for the version most recently installed. Continue with the setup and install both databases.
- Open SQL Enterprise Manager or SQL Management Studio and expand the Database folder.
- Right-click the Endpoint Encryption database and select Task > Restore.
- Click From Device > Select Device.
- Click Add to select the database backup that will be restored.
- Navigate to the directory where the backup is stored.
- Select the backup and click OK.
- On the Restore Database screen, select the Options tab.
- Select Force Restore Over Existing Databases (2000) or Overwrite the Existing Database (2005) and click OK to begin the restore process.
This may take a few minutes, depending on the size of the database and hardware being used. - Repeat steps 3 to 8 for the Endpoint Encryption Log database.
- Follow the procedure depending on your SQL version.
For SQL 2000:- Open the Databases folder in the Enterprise Manager and expand the Endpoint Encryption DB.
- Click Users.
- Right-click MADB or the account used during the initial setup of the databases and select Delete.
- Right-click Users and select New Database User.
- Select the new MADB account as the Username.
- Tick the db_owner, db_datareader, and db_datawriter check boxes and click OK.
- Repeat steps A to F for the Endpoint Encryption Log database.
- Open the Databases folder in the SQL Server Management Studio and expand the Endpoint Encryption DB.
- Select Security > Schemas folder.
- Double-click the schemas with MADB or the account used before.
- Click the Search button in the Schema Owner field.
- Enter DBO and click Check Names. The object name should change to DB once it is found.
- Click OK.
- Repeat steps A to F for Endpoint Encryption Log database.
- Open the Databases folder in the SQL Server Management Studio and expand the Endpoint Encryption DB.
- Select Security > Users folder.
- Right-click the MADB account and select Delete.
- Right-click Users and select New User.
- Select the new MADB account as the User Name.
- Tick the db_owner, db_datareader, and db_datawriter check boxes for Owned Schemas and Database Role Memberships and click OK.
- Repeat steps H to M for the Endpoint Encryption Log database.
- Reinstall the PolicyServer Service.
Note: You may skip this step if you are using the same account used throughout the Endpoint Encryption deployment. The PolicyServer Service should have the correct credentials to access the Endpoint Encryption databases.