Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Moving the TRITON Reporting Databases : Detach and reattach the Web or Email Log Database
Detach and reattach the Web or Email Log Database
Moving the TRITON reporting databases | Web and Email Solutions | v8.3.x | 15-Dec-2016
If you want 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.
On the Log Server machine, use the Windows Services tool to stop the Websense Log Server or Websense Email Log Server service.
2.
On the SQL Server machine, open Microsoft SQL Server Management Studio (Start > All Programs > Microsoft SQL Server 2008 | 2012 | 2016 > SQL Server Management Studio).
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 TRITON 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.
If you plan to move the database to a new instance of SQL Server, it is strongly recommended that you delete the web or email protection SQL Server Agent jobs after disabling them. To do this:
a.
b.
Right-click each TRITON job associated with wslogdb70 or esglogdb76 and select Delete. (The number of jobs depends on your 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 that you detached in the previous procedure.
3.
a.
Expand the nodes in the left navigation pane until you reach the Databases folder, and 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 you are migrating a Web or Email Log Database, 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 TRITON Reporting Databases : Detach and reattach the Web or Email Log Database
Copyright 2016 Forcepoint LLC. All rights reserved.