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 : Backup and restore the TRITON reporting databases
Backup and restore the TRITON reporting databases
Moving the TRITON reporting databases | Web, Data, and Email Solutions | v8.3.x | 15-Dec-2016
TRITON reporting databases (Web Log Database, Data Security Incident and Configuration Database, and Email Log Database) are supported on the latest service packs of:
*
*
*
*
*
*
Before upgrading an existing installation of Microsoft SQL Server to a new version or migrating to a new machine, back up your TRITON reporting databases to a safe location.
If you are upgrading in place, the upgrade process should not affect the reporting databases, but it is a best practice to make a backup copy to safeguard against corrupted data or other data loss.
If you plan to migrate your databases to a new Microsoft SQL Server installation on another machine, to minimize downtime, start by installing and configuring SQL Server in the new location.
The upgrade or migration process begins with a backup of your existing reporting databases. Because the backup process can be quite time consuming, the instructions in this document ask you to perform the backup in 2 stages.
For web and email solutions:
*
*
The intent is to minimize the database downtime required for the upgrade or database migration.
1: Perform a full database backup
1.
Open SQL Server Management Studio (Start > All Programs > Microsoft SQL Server 2008 | 2012 | 2016 > SQL Server Management Studio) and log onto the SQL Server instance that hosts your TRITON reporting databases.
2.
In the Object Explorer, under Databases, locate your TRITON databases. The default database names are:
*
For web solutions, wslogdb70_n and wslogdb70_amt_1 (partition databases) and wslogdb70 (the catalog database)
*
For email solutions, esglogdb76_n (partition databases) and esglogdb76 (the catalog database)
*
For data solutions, wbsn-data-security and wbsn-data-security-temp-archive
In the web and email examples, "n" is the partition number. The higher the number, the newer the partition.
3.
Right-click each database, expand the Tasks menu, and select Back Up.
4.
5.
In the Back Up Database window, you can either accept the default backup Destination, or click Add and specify a new path or name for the backup file. Save the file as *.BAK. When you are finished, click OK to run the backup.
6.
At the end of this process, you have full backups of all of your older partition databases, and recent backups of your active partition (the one that new log records are being added to) and catalog databases. Continue to the next section when you are ready to temporarily stop database processing.
2: Back up the catalog database and active partition (Web and Email)
1.
Stop all Web Log Server or Email Log Server instances in your deployment.
2.
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 web or email protection 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.
3.
Perform a differential backup of the catalog database (wslogdb70 or esglogdb76). This will back up anything that has changed since the initial backup performed in Part 1 of this procedure.
4.
3a: Upgrade in place
If the machine hosting your database engine is adequate to host an upgraded version of SQL Server:
1.
2.
 
Note 
During upgrade, select the collation that the wbsn-data-security database uses. The SQL Server collation must match the Data Security database collation exactly.
To determine a database collation, use the Microsoft SQL Server Management Studio. Right-click the server name and select Properties, then right-click the database name and do the same. You will see the collation listed in the Maintenance section.
3.
a.
In the left navigation pane, click the SQL Server Agent folder for the instance hosting the Log Database.
b.
Click Jobs, and enable each of the web or email protection jobs by right-clicking the job and selecting Enable.
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).
4.
Start all Web Log Server or Email Log Server instances in your deployment.
5.
Log Server resumes sending data to the Log Database, and the ETL job begins processing the web or email records into the active partition.
3b: Migrate the database to a new SQL Server host
If you are moving the reporting database to SQL Server on another machine:
1.
 
Note 
During installation, select the collation that the wbsn-data-security database uses. The SQL Server collation must match the Data Security database collation exactly.
To determine a database collation, use the Microsoft SQL Server Management Studio. Right-click the server name and select Properties, then right-click the database name and do the same. You will see the collation listed in the Maintenance section.
2.
Open SQL Server Management Studio (Start > All Programs > Microsoft SQL Server 2008 | 2012 | 2016 > SQL Server Management Studio) and log on to the SQL Server instance that will host your TRITON reporting databases.
3.
a.
In Object Explorer, right-click Databases and select Restore Database.
b.
Enter the database name in the To database (or Database) field.
c.
Select From device (or Device) then click the browse (...) button.
d.
With File selected (the default), click Add and browse to the backup location.
e.
Select the databases you want to restore from the Select the backup sets to restore list.
f.
Select the Options page of the restore window, then verify that the Restore As column shows the correct location for the destination (restored) partition.
g.
4.
a.
Open the Query window and point to your 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.
5.
6.
Direct TRITON AP-EMAIL to the new database server by navigating to Settings > Reporting > Log Database and changing the configuration.

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 : Backup and restore the TRITON reporting databases
Copyright 2016 Forcepoint LLC. All rights reserved.