configuration database backup guidebackup the ocularis base sql database use this procedure to...

20
Configuration Database Backup Guide Smarter Surveillance for a Safer World

Upload: others

Post on 29-Mar-2020

25 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Configuration Database Backup GuideBackup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data. To Backup Ocularis

Configuration Database Backup Guide

Smarter Surveillance for a Safer World

Page 2: Configuration Database Backup GuideBackup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data. To Backup Ocularis

On-Net Surveillance Systems, Inc. 2

On-Net Surveillance Systems, Inc.

One Blue Hill Plaza, 7th Floor, PO Box 1555 Pearl River, NY 10965

Phone: (845) 732-7900 | Fax: (845) 732-7999 Web: www.onssi.com

Version 5.7 Revision: 00011122014-1551-DBAS-4.1.0.183 SP1-5.3.0.839/5.6.0.339/5.7.0.449

Legal Notice

This product manual is intended for general information purposes only, and due care has been taken in its preparation. Any risk arising from the use of this information rests with the recipient, and nothing herein should be construed as constituting any kind of warranty. © 2002-2019 On-Net Surveillance Systems, Inc. All rights reserved. OnSSI and the ‘Eye’ logo are registered trademarks of On-Net Surveillance Systems, Inc. Ocularis, Ocularis Client, Ocularis Client Lite, Ocularis Video Synopsis, NetEVS, NetDVMS, NetDVR, ProSight, NetGuard, NetGuard-EVS, NetSwitcher, NetMatrix, NetCentral, NetTransact, NetPDA and NetCell are trademarks of On-Net Surveillance Systems, Inc. All other trademarks are property of their respective owners. On-Net Surveillance Systems, Inc. reserves the right to change product specifications without prior notice. US patent # 8,390.684 B2 for Ocularis Client Additional Patents Applied For in the U.S. and Abroad

Page 3: Configuration Database Backup GuideBackup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data. To Backup Ocularis

Ocularis Configuration Backup Guide Contents

On-Net Surveillance Systems, Inc. 3

Table of Contents INTRODUCTION ........................................................................................................................................... 4

OVERVIEW .................................................................................................................................................................... 4 PURPOSE ..................................................................................................................................................................... 4 TARGET AUDIENCE ........................................................................................................................................................ 4

BACKUP OF OCULARIS BASE CONFIGURATION DATA ....................................................................... 5 SUMMARY OF STEPS ...................................................................................................................................................... 5

BACKUP OCULARIS SERVICE FOLDERS ................................................................................................ 6

BACKUP THE OCULARIS BASE SQL DATABASE .................................................................................. 7 To Backup Ocularis Base SQL Database .............................................................................................. 7

MIGRATING BACKUP DATA AND DATABASE ........................................................................................ 9

RECREATING THE OCULARIS USER ..................................................................................................... 13

Testing the changes ............................................................................................................................. 17

HOW TO INSTALL SQL SERVER MANAGEMENT STUDIO ................................................................... 18

To Install SQL Server Management Studio .......................................................................................... 18 To Open SSMS..................................................................................................................................... 20

Page 4: Configuration Database Backup GuideBackup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data. To Backup Ocularis

Ocularis Configuration Backup Guide Introduction

On-Net Surveillance Systems, Inc. 4

Introduction

Overview

Regardless of the Ocularis feature set, the Ocularis Base component uses a Microsoft SQL Server Express database

to store configuration and authentication resources used by Ocularis.

This SQL database for the Ocularis Base software should not be confused with the databases used to store live and

recorded video and audio data.

Purpose

The purpose of this document is to identify the procedures on how to backup Ocularis configuration and migrate the

data to a new SQL server instance if necessary.

Target Audience

The target audience for this document is surveillance system administrators and/or database administrators who are

responsible for data integrity and system maintenance.

Page 5: Configuration Database Backup GuideBackup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data. To Backup Ocularis

Ocularis Configuration Backup Guide Backup of Ocularis Base Configuration Data

On-Net Surveillance Systems, Inc. 5

Backup of Ocularis Base Configuration Data

The following procedure backs up the data in the SQL Server database used with Ocularis Base. Use this proceudre

when you:

• need to switch the hardware used for Ocularis Base • need to recover after reinstalling the operating system • desire to make a system backup

This procedure may be used to backup Ocularis Base data with any Ocularis model. Please note that it will only back

up configuration information from Ocularis Base.

Summary of Steps

1. Backup Ocularis Service Folders (only if using maps, icons, and bookmarks)

2. Backup the Ocularis Base SQL Database.

If you intend to migrate the database to another machine:

1. Install Ocularis Base

2. Restore the Ocularis Service Folders

3. Restore the Ocularis Base SQL Database

4. Modify the Security Settings in the SQL Database

Page 6: Configuration Database Backup GuideBackup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data. To Backup Ocularis

Ocularis Configuration Backup Guide Backup Ocularis Service Folders

On-Net Surveillance Systems, Inc. 6

Backup Ocularis Service Folders (Move to next step if you don’t wish to backup maps, icons, and bookmarks)

Backup the existing Ocularis Service folders. These folders store resources used in Ocularis and are found in the

following directory on the Ocularis Base Server machine: C:\inetpub\wwwroot\OcularisService

Folders to back up include:

• Assets

• Bookmarks1

• EventThumbnails

• Icons

• Maps

Copy these folders to an external source such as a

thumb drive or network share. 1 This is the default location for Bookmarks. During the Ocularis Base installation this location may have been changed by the system administrator

Page 7: Configuration Database Backup GuideBackup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data. To Backup Ocularis

Ocularis Configuration Backup Guide Backup Ocularis Service Folders

On-Net Surveillance Systems, Inc. 7

Backup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data.

To Backup Ocularis Base SQL Database

1. Log into SSMS (SQL Server Management Studio). If you need to install SSMS, please refer to page 18.

2. Once logged into SSMS, expand the Databases folder and right-click the VSEvents database.

3. Choose Tasks > Back Up…

4. On the General page of the Back Up Database pop-up, take note of the Destination path and Name of the Backup set (or choose one yourself).

Page 8: Configuration Database Backup GuideBackup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data. To Backup Ocularis

Ocularis Configuration Backup Guide Backup the Ocularis Base SQL Database

On-Net Surveillance Systems, Inc. 8

5. On the Options page, select these options:

a. In the Overwrite media section, choose ‘Overwrite all existing backup sets’ b. In the Reliability section, check ‘Verify backup when finished’

c. Click OK.

6. Once the task is completed, copy the Backup file to an external source.

Page 9: Configuration Database Backup GuideBackup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data. To Backup Ocularis

Ocularis Configuration Backup Guide Backup of Ocularis Base Configuration Data

On-Net Surveillance Systems, Inc. 9

Migrating Backup Data and Database

Use the following procedure to migrate the Ocularis database to a new or rebuilt server:

1. Install the Ocularis Base software component on the new or rebuilt server.

a. You must notify OnSSI that you have installed Ocularis Base on a server. We can increase your license activation count so you may activate this new server.

b. Once the Base component is installed and OnSSI has increased your activation count, please activate your license at this time.

2. Stop the OnSSI Event Coordinator Service in local services.

3. Paste (replace) the folders backed up from

4. Backup Ocularis Service Folders on page 6 into the directory:

C:\inetpub\wwwroot\OcularisService

5. Install SQL Server Management Studio (SSMS) on your new Base server. (see How to Install SQL Server Management Studio on page 18.

6. Once installed, log into SSMS using the Windows Account.

a. Expand the Databases folder and right-click the VSEvents database.

b. Choose Tasks > Restore > Database…

Page 10: Configuration Database Backup GuideBackup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data. To Backup Ocularis

Ocularis Configuration Backup Guide Migrating Backup Data and Database

On-Net Surveillance Systems, Inc. 10

7. On the General page of the Restore Database pop-up, in the ‘Source for restore’ section:

a. Choose From device, and click the ellipses to browse for the file.

b. Browse for the Backup file saved in Backup the Ocularis Base SQL Database on page 7.

Page 11: Configuration Database Backup GuideBackup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data. To Backup Ocularis

Ocularis Configuration Backup Guide Migrating Backup Data and Database

On-Net Surveillance Systems, Inc. 11

c. Select the .bak file and click OK.

d. Mark the check box for the backup set to Restore.

8. In the Options page, check the box to ‘Overwrite the existing database (WITH REPLACE)’.

Page 12: Configuration Database Backup GuideBackup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data. To Backup Ocularis

Ocularis Configuration Backup Guide Migrating Backup Data and Database

On-Net Surveillance Systems, Inc. 12

9. Click OK.

Process should execute successfully.

If the process fails:

• Leave the Restore Database screen open. (This is likely due to there being active connections to the database).

• Restart the service SQL Server (OCULARISSERVER)

• Click OK on the Restore Database screen.

It should execute successfully.

Page 13: Configuration Database Backup GuideBackup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data. To Backup Ocularis

Ocularis Configuration Backup Guide Recreating the Ocularis User

On-Net Surveillance Systems, Inc. 13

Recreating the Ocularis User For the restored database, you must recreate the Ocularis User.

1. Expand the VSEvents database.

a. Expand Security.

b. Expand Users.

c. If you still see the OcularisUser here, right-click the username and delete this user.

Page 14: Configuration Database Backup GuideBackup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data. To Backup Ocularis

Ocularis Configuration Backup Guide Recreating the Ocularis User

On-Net Surveillance Systems, Inc. 14

d. Click OK.

Page 15: Configuration Database Backup GuideBackup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data. To Backup Ocularis

Ocularis Configuration Backup Guide Recreating the Ocularis User

On-Net Surveillance Systems, Inc. 15

2. Under the Security folder, right-click the OcularisUser account and choose Properties.

3. On the User Mapping page, select the VSEvents database.

a. For the Default Schema field, enter dbo

b. Check the box next to the db_owner under ‘Database role membership for: VSEvents’.

Page 16: Configuration Database Backup GuideBackup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data. To Backup Ocularis

Ocularis Configuration Backup Guide Recreating the Ocularis User

On-Net Surveillance Systems, Inc. 16

4. Expand the Security folder under the VSEvents database again.

The OcularisUser account should appear in the Users folder now.

5. Right-click the OcularisUser account and choose Properties.

Page 17: Configuration Database Backup GuideBackup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data. To Backup Ocularis

Ocularis Configuration Backup Guide Recreating the Ocularis User

On-Net Surveillance Systems, Inc. 17

a. In the General page, scroll down the Role Members window, select the db_owner and click OK.

Testing the changes

1. Start the OnSSI Event Coordinator Service. The service should start successfully.

Page 18: Configuration Database Backup GuideBackup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data. To Backup Ocularis

Ocularis Configuration Backup Guide How to Install SQL Server Management Studio

On-Net Surveillance Systems, Inc. 18

How to Install SQL Server Management Studio SQL Server Management Studio is required in order to back up the Ocularis configuration database.

With the introduction of Ocularis Base v3.8, when the ‘Typical’ option is chosen during the install of Ocularis Base,

the SQL version that is installed is SQL Server 2008 Express 32-bit. Therefore, when SQL Server Management

Studio (SSMS) is installed, you should install the 32-bit (x86) version. SSMS can be installed on any machine,

however, for ease of use we recommend installing it on the Base server itself.

To Install SQL Server Management Studio

1. Navigate to: http://www.microsoft.com/en-us/download/details.aspx?id=7593

(If link does not work, simply do a web search for SQL Server Management Studio 2008 Express).

2. Click the Download button.

3. Check the x86 version (SQLManagementStudio_x86_ENU.exe), and then click the Next button to start the download. Save the file to an easily accessible location.

4. Once the download completes, right click the .exe file, and select ‘Run as Administrator’ to run the setup file.

If you receive any Windows compatibility messages, just click OK to proceed with the install. 5. Select the ‘Installation’ section and click the option ‘New installation or add features to an existing

installation’.

6. Check the box for ‘I accept the license terms’ and click the Next button. The installer will proceed to install Setup files.

Page 19: Configuration Database Backup GuideBackup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data. To Backup Ocularis

Ocularis Configuration Backup Guide How to Install SQL Server Management Studio

On-Net Surveillance Systems, Inc. 19

If you receive a message to restart your machine during the Setup Support Rules, go ahead and restart. If this error continues to appear, follow the steps in the link below to clear out any Pending Operations:

http://www.sqlcoffee.com/troubleshooting051.htm 7. On the feature selection screen, if not already checked, check the box next to ‘Management Tools –

Basic’, and then click Next.

8. On the Error reporting screen, click Next. The installation should begin. If you encounter any other prompts, use the default setting and click Next to proceed. The installation can take around 5 minutes to complete. After the installation, you should see a success screen.

9. Click Close, and then you may also close the main ‘SQL Server Installation Center’ window.

Page 20: Configuration Database Backup GuideBackup the Ocularis Base SQL Database Use this procedure to backup the database used to store Ocularis Base configuration data. To Backup Ocularis

Ocularis Configuration Backup Guide How to Install SQL Server Management Studio

On-Net Surveillance Systems, Inc. 20

To Open SSMS

1. To open SSMS, click on the Windows Start > All Programs > SQL Server 2008 (R2) > SQL Server Management Studio.

2. On the Login screen, use the default values and click Connect

You should be logged in. (your server name will be different but the database name should be ‘OCULARISSERVER’).