How to restore EPM database from backup

How to restore EPM database from backup

85
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 13:01 PM


Objective


Q: How do I restore EPM databases from backup?

 


Environment


v5.5;v5.6;v5.7;v6.0;v6.1;v6.2;v6.3;v6.4;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10

Procedure


A:

1. Open IIS Manager and stop your server.

2. login to Microsoft SQL Server Management Studio

3. Right click VFMNGDB5 and select Properties, in the next window on the left pane select Options, under State set Restrict Access to SINGLE_USER (This option only needs to be done for your VFMNGDB5 database)

4. Select your database backup files 

- begin with restoring "VFSTAGEDB5", then "VFMNGDB5", then "VFNESTDB5", then "VFSTATDB5", then "VFEVENTSDB5"

5. Right click VFSTAGEDB5 -> Tasks -> Restore -> Database...

6. Select the backup sets to restore

7. Under Options > Select check-box to "Overwrite the existing database (WITH REPLACE)"

8. The restore of the database should complete successful (Repeat these steps for the other databases)

9. Perform only ONE of the following

a. FOR  EPM v10.10+ = After restoring all of the databases, you need to authorize them in the system.
- Right click on VFMNGDB5 > New Query
- Write the command
EXEC dbo.usp_VfScheduledJobReviveAfterRecovery
- Click on !Execute in the toolbar (or hit F5)

b. FOR EPM v5.5-10.9 = Manually !Execute the following query against all EPM Databases (VFMNGDB5, VFNESTDB5, VFSTAGEDB5, VFSTATDB5, VFEVENTSDB5)
DECLARE @DbName nvarchar(max), @Principal sysname 
SELECT @DbName = CONVERT(nvarchar(max), DB_NAME()) 
SELECT @Principal = name 
FROM sys.server_principals 
WHERE (sid = 0x01) 
EXEC ('ALTER DATABASE [' + @DbName + '] SET TRUSTWORTHY ON') 
EXEC ('ALTER AUTHORIZATION ON DATABASE::[' + @DbName + '] TO [' + @Principal + '];')


Additional Information


Details

Q:

How do I restore database from backup?

A:

1. Open IIS Manager and stop your server.

2. login to Microsoft SQL Server Management Studio

3. Right click VFMNGDB and select Properties, in the next window on the left pane select Options, under State set Restrict Access to SINGLE_USER (This option only needs to be done for your VFMNGDB5 database)

4. Right click VFMNGDB -> Tasks -> Restore -> Database...

5. Select your database backup files 

- begin with restoring "VFSTAGEDB5", then "VFMNGDB5", then "VFNESTDB5", then "VFSTATDB5", then "VFEVENTSDB5")

6. Select the backup sets to restore

7. Under Options > Select check-box to "Overwrite the existing database (WITH REPLACE)"

8. The restore of the database should complete successful (Repeat these steps for the other databases)

9. Perform only ONE of the following

9a. FOR v10.10+ = After restoring all of the databases, you need to authorize them in the system.
- Right click on VFMNGDB5 > New Query
- Write the command "EXEC dbo.usp_VfScheduledJobReviveAfterRecovery"
- Click on !Execute in the toolbar (or hit F5)

9b. FOR v5.5-10.9 = 
Manually !Execute the following query against all EPM Databases (VFMNGDB5, VFNESTDB5, VFSTAGEDB5, VFSTATDB5, VFEVENTSDB5)

DECLARE @DbName nvarchar(max), @Principal sysname 
SELECT @DbName = CONVERT(nvarchar(max), DB_NAME()) 
SELECT @Principal = name 
FROM sys.server_principals 
WHERE (sid = 0x01) 
EXEC ('ALTER DATABASE [' + @DbName + '] SET TRUSTWORTHY ON') 
EXEC ('ALTER AUTHORIZATION ON DATABASE::[' + @DbName + '] TO [' + @Principal + '];')




Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000te5CAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail