Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Moving the Reporting Databases : Detach and reattach the Web or Email Log Database
Detach and reattach the Web or Email Log Database
Moving the Reporting Databases | Web, Data, and Email Solutions | April 2022
 
To move the Log Database by detaching it, manually moving files, and then reattaching the files in a new location, use the following procedure.
1: Detach the Log Database
To prepare to move the Web or Email Log Database, stop all of the SQL Server Agent jobs and wait for them to stop, then detach the database from its current SQL Server location.
1.
*
*
2.
3.
4.
a.
In the left navigation pane, click the SQL Server Agent folder for the instance hosting the Log Database.
b.
Click Jobs, and disable each of the Forcepoint jobs by right-clicking the job and selecting Disable.
The job names are in the format "Websense_xxx_<catalog database name>" where xxx is the type of job and <catalog database name> is the actual name of your catalog database (by default, wslogdb70 or esglogdb76).
Make sure that all of the jobs are completed before continuing. This could take several minutes or a few hours, depending on the details of your installation. Contact your database administrator if you need assistance determining whether the jobs are completed.
5.
Before continuing, verify that the backup files are valid.
6.
To move the database to a new instance of SQL Server, first delete the web or email protection SQL Server Agent jobs after disabling them. To do this:
a.
b.
Right-click each job associated with wslogdb70 or esglogdb76 and select Delete. (The number of jobs depends on product version.)
7.
a.
Expand the Databases folder.
b.
c.
The web or email protection Log Database has now been detached from its original location.
2: Move the Log Database
Once the Log Database has been detached from its original location, move it to the new location, reattach it to SQL Server, and recreate the SQL Server Agent jobs.
1.
2.
Move all database files ending in .mdf and .ldf to the new location.
There should be an mdf file and an ldf file for each database detached in the previous procedure.
3.
a.
Expand the nodes in the left navigation pane until the Databases folder is displayed, then right-click that folder.
b.
Select Attach, then click Add.
c.
d.
e.
Click OK when all partition databases have been selected.
4.
5.
a.
Open the Query window and point to the catalog database (default name wslogdb70 or esglogdb76).
b.
exec dbo.usp_update_views;
go
exec dbo.usp_create_background_jobs;
go
If a Web or Email Log Database is being migrated, continue with Update Log Server and Log Database settings.

Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Moving the Reporting Databases : Detach and reattach the Web or Email Log Database
Copyright 2022 Forcepoint. All rights reserved.