StruxureWare Power Monitoring 7.0.1. Database Upgrade FAQ



Similar documents
StruxureWare Power Monitoring In-Place Upgrade Guide SQL Server Standard Edition Only

StruxureWare Power Monitoring 7.0. Side By Side Upgrade Guide For Distributed Systems

Moving the Web Security Log Database

Moving the TRITON Reporting Databases

Preparing a SQL Server for EmpowerID installation

MS SQL Server 2014 New Features and Database Administration

SQL Server Database Administrator s Guide

W I S E. SQL Server 2008/2008 R2 Advanced DBA Performance & WISE LTD.

SQL Server Replication Guide

StruxureWare Power Monitoring 7.0.1

ION EEM 3.8 Server Preparation

50238: Introduction to SQL Server 2008 Administration

How to Configure and Use SQL with EnCase Products

Using SQL Server Management Studio

Redundancy Options. Presented By: Chris Williams

WhatsUp Gold v16.0 Database Migration and Management Guide Learn how to migrate a WhatsUp Gold database from Microsoft SQL Server 2005 Express

MS Design, Optimize and Maintain Database for Microsoft SQL Server 2008

Introduction. Part I: Finding Bottlenecks when Something s Wrong. Chapter 1: Performance Tuning 3

DeltaV Event Chronicle

Historian SQL Server 2012 Installation Guide

StruxureWare Power Monitoring Expert 7.2

Siemens Teamcenter Oracle -to-sql Server 2008 Migration Guide

MCTS Microsoft SQL Server 2005 Implementation & Maintenance

HP Quality Center. Upgrade Preparation Guide

6231B: Maintaining a Microsoft SQL Server 2008 R2 Database

Designing, Optimizing and Maintaining a Database Administrative Solution for Microsoft SQL Server 2008

Microsoft SQL Server OLTP Best Practice

Protecting SQL Server Databases Software Pursuits, Inc.

Ontrack PowerControls V8.1 for SQL ReadMe

Optimizing Performance. Training Division New Delhi

Table of Contents SQL Server Option

Course 2788A: Designing High Availability Database Solutions Using Microsoft SQL Server 2005

Backup Exec 12.5 Agent for Microsoft Virtual Servers FAQ

Database Migration and Management Guide v15.0

Application Note 116: Gauntlet System High Availability Using Replication

Database Backup and Recovery Guide

Herve Roggero 3/3/2015

How to manage the Adaptive Call Recorder (v.9-50)

SonicWALL CDP 5.0 Microsoft Exchange InfoStore Backup and Restore

StruxureWare Power Monitoring Expert 7.2

Microsoft SQL Server Guide. Best Practices and Backup Procedures

Data Compression in Blackbaud CRM Databases

WhatsUp Gold v16.2 Database Migration and Management Guide

Microsoft SQL Server 2008 Administrator's Pocket Consultant

Release Notes P/N Rev 01

2014 Electrical Server Installation Guide

EMC Backup and Recovery for Microsoft SQL Server 2008 Enabled by EMC Celerra Unified Storage

Workflow Templates Library

MOC 20462C: Administering Microsoft SQL Server Databases

Support Document: Microsoft SQL Server - LiveVault 7.6X

David Dye. Extract, Transform, Load

StruxureWare Power Monitoring Expert 7.2

Version 5.0. MIMIX ha1 and MIMIX ha Lite for IBM i5/os. Using MIMIX. Published: May 2008 level Copyrights, Trademarks, and Notices

Event Notification Module TM

VirtualCenter Database Maintenance VirtualCenter 2.0.x and Microsoft SQL Server

SYSTEM SETUP FOR SPE PLATFORMS

Designing a Microsoft SQL Server 2005 Infrastructure

OnCommand Report 1.2. OnCommand Report User Guide. NetApp, Inc. 495 East Java Drive Sunnyvale, CA U.S.

DS8000 Data Migration using Copy Services in Microsoft Windows Cluster Environment

Outline. MCSE: Data Platform. Course Content. Course 10776C: MCSA: Developing Microsoft SQL Server 2012 Databases 5 Days

EASRestoreService. Manual

sql server best practice

DATABASE ADMINISTRATION (DBA) SERVICES

Would-be system and database administrators. PREREQUISITES: At least 6 months experience with a Windows operating system.

Virtualizing Microsoft SQL Server 2008 on the Hitachi Adaptable Modular Storage 2000 Family Using Microsoft Hyper-V

System Requirements for Microsoft Dynamics GP 2013

Maximizing SQL Server Virtualization Performance

Database Administrator Certificate Capstone Project Evaluation Checklist

NEXTGEN v5.8 HARDWARE VERIFICATION GUIDE CLIENT HOSTED OR THIRD PARTY SERVERS

DBMS Questions. 3.) For which two constraints are indexes created when the constraint is added?

StruxureWare Power Monitoring 7.0.1

i5/os and related software Distributing software

MS SQL Performance (Tuning) Best Practices:

Backup Exec System Recovery Management Solution 2010 FAQ

UPS System Capacity Management Configuration Utility

Scalability. Microsoft Dynamics GP Benchmark Performance: Advantages of Microsoft SQL Server 2008 with Compression.

Automation Engine AE Server management

High Availability and Disaster Recovery for Exchange Servers Through a Mailbox Replication Approach

MTA Course: Windows Operating System Fundamentals Topic: Understand backup and recovery methods File name: 10753_WindowsOS_SA_6.

Memorandum of Understanding for Microsoft SQL Server Hosting

HP StorageWorks Library and Tape Tools FAQ

Upgrade Guide BES12. Version 12.1

Microsoft SQL Server 2000 Index Defragmentation Best Practices

Troubleshooting Failover in Cisco Unity 8.x

Cover sheet. How do you create a backup of the OS systems during operation? SIMATIC PCS 7. FAQ November Service & Support. Answers for industry.

VeriCentre 3.0 Upgrade Pre-Installation and Post Installation Guidelines

WhatsUp Gold v16.1 Database Migration and Management Guide Learn how to migrate a WhatsUp Gold database from Microsoft SQL Server 2008 R2 Express

Upon completion of the program, students are given a full support to take and pass Microsoft certification examinations.

Course Outline: Course 6317: Upgrading Your SQL Server 2000 Database Administration (DBA) Skills to SQL Server 2008 DBA Skills

SQM. Maintaining Microsoft SQL for Broadcast Engineers. Training Course Outline

Features of AnyShare

MySQL Replication. openark.org

Jason S Wong Sr. DBA IT Applications Manager DBA Developer Programmer M.S. Rice 88, MBA U.H. 94(MIS)

Upgrading a Microsoft Dynamics NAV 2009 R2 or Microsoft Dynamics NAV 2009 SP1 Database to Microsoft Dynamics NAV 2015

ManageEngine EventLog Analyzer. Best Practices Document

1 of 10 1/31/2014 4:08 PM

Transcription:

StruxureWare Power Monitoring 7.0.1 Database Upgrade FAQ

Document Overview Author Power Software, Schneider Electric Last Revised 10 th July 2012 Document Purpose Upgrading ION-Enterprise to StruxureWare Power Monitoring 7.0.1 requires the ION databases to be upgraded. For the ION_Data database, this is a long-running operation. The new databases also require additional hard drive space. This document provides more information regarding: time required to complete an upgrade storage requirements developer/system integrator questions Note(s) Estimated upgrade times will not apply when upgrading from StruxureWare Power Monitoring 7.0. Recommendations General Ensure you have enough hard drive space available on your database server Have an external hard drive available for storing database upgrade backup files Plan an ION-Enterprise system downtime window Consider archiving data (with Trim) to reduce system downtime Does the software upgrade process perform a database backup? Yes. You do not have to perform database backups manually. When will the database be upgraded? The database is upgraded before installation of the software. What if the database upgrade fails? The installation process has been improved to perform the database upgrade before installing the updated software. The installer performs a database backup before installation.

This backup can be restored and ION-Enterprise 6.0 SP1 software can be reactivated in case of an upgrade error while the root cause of the upgrade problem is analyzed. In the past, if the database upgrade failed, ION-Enterprise 6.0 SP1 could not be reactivated and the customer would experience an extended downtime period. Will All Historical Data Be Migrated? Yes. All historical data within the ION_Data database will be moved. Data within archives will not be moved. Can Archives Be Upgraded? StruxureWare Power Monitoring 7.0.1, like previous versions, enables upgrading of archives via Database Manager Utility. Can Archives Be Merged? There is no utility to 'merge' archives back into ION_Data. How Much System Downtime Can I Expect? Note: this section does not apply when upgrading from version 7.0. Large databases will take a significant amount of time to upgrade. Two factors determine upgrade duration: Database Size I/O sub-system Enterprise class server machines with SAS drives, SAN, or performance-oriented RAID configuration will significantly reduce database upgrade duration. Approximate downtime based on internal tests: Database Size Enterprise Class Server Desktop/Workstation 15GB 1 hr 3 hr 50GB 6 hr 18 hr 150GB 1 day 3 days 250GB 2 days How can I reduce the required downtime? If you have an extremely large database or need to avoid an extended downtime, consider archiving data that you do not need anymore. The database upgrade duration is dominated by the migration of logged data to the new DataLog2 table. The more data that is removed from ION_Data, the shorter the database upgrade duration will be.

Can data loss occur? Yes - for systems that utilize the PC based logging feature, data loss can occur. System services are offline until the software upgrade has completed. Devices with on-board logging capabilities will be submit data after the upgrade has completed. Storage How Much Additional Hard Drive Space Is Required? 3x size of database required. Detailed example: 150GB ION_Data database. Original Database Size Database Growth (@ ~80%) Tempdb Growth Database Backup Hard drive space required for upgrade Hard drive space permanently required 150GB 125GB 50GB 130GB 400GB~ 275GB Note: the tempdb space is required during the upgrade process and will be returned to the operating system automatically by SQL Server after the upgrade has completed. Where Is The Database Backup Saved? By default, the installer will save the database backup to this location: [Install Location]\DB\DBBackups I have limited hard drive space can I move the backup to a custom location? Yes. We recommend utilizing an external hard drive for the backup location to save hard drive space on your server. Will The Database Permanently Grow After Upgrading? Yes - plan for a 2x increase in the size of the ION_Data database after upgrading to ION-Enterprise 7.0.1. The database will also grow temporarily during the upgrade; this space will be returned after successful upgrade. Why Is Additional Hard Drive Space Required? To improve performance, the new DataLog2 table has two indexes: Clustered index favors reporting queries, SELECT operations that provide source, quantity and time range information Non-clustered index that favors queries by DataLogStampID. How Do I Run a Disk Usage Report?

Running a Disk Usage Report before the database upgrade can help when troubleshooting upgrade issues. From SQL Server Management Studio: Right-click the ION_Data database (do not choose an archive) Choose Reports Choose Disk Usage Report Once generated, print to xps or pdf document Schema Changes ION-Enterprise 7.0.1 significantly alters the ION_Data database schema from versions prior to 7.0. Justification Logged Source/Measurement Pairs: with the previous schema, the question what quantities has this device logged was expensive to answer due to the DataLog and DataLogStamp join. The view, vsourcequantityname has been added. Performance: combining the DataLogStamp and DataLog tables into a single table will simplify the database schema and increase reporting query performance. DATETIME2: working with timestamps in ION-Enterprise is easier. SQL Server 2008 introduced a new high-precision data type, DATETIME2. This allows a single timestamp column to represent precise 100ms data. DATETIME2 is accurate to 7 decimal places for fractional seconds. Table Changes Major changes to the ION_Data database include: 1. DataLog & DataLogStamp tables combined to DataLog2 (see below) 2. EventLog to EventLog2: TimestampUTC column now of type DATETIME2 3. WaveformLog to WaveformLog2: samples column now of type VARBINARY(MAX) rather than IMAGE. The IMAGE datatype was deprecated. DataLog2 DataLog & DataLogStamp tables have been combined. ID: BIGINT data type. Previous DataLogStampID values will be retained. New values will be unique. TimestampSourceLT: removed. This column contained the local time, but was not used in the system and just took up space. FractionOfASecond and TimestampUTC: merged

Duplicate Data In rare cases, it was possible for the DataLog table to contain duplicate values or a value and a null reported for the same interval. In StruxureWare Power Monitoring 7.0/7.0.1, a unique constraint has been added to the new DataLog2 table on the following columns: TimestampUTC, SourceId and QuantityID Other Schema Changes RecorderState: updated to use DataLog2 Source: database are updated to use INT as the SourceID datatype. Previously, the SMALLINT datatype was utilized. SourceQuantity: table added. Developer FAQ I have written custom T-SQL code, am I impacted? Probably - the log tables: DataLog, WaveformLog, EventLog have all been modified in ION- Enterprise 7.0.1. I have custom code that relies on removed tables, what should I do? It is strongly recommended that you upgrade the affected custom software so that it uses the new 7.0.1 database schema. Modify relevant code to use the new 7.0.1 schema. If updating the custom code is not possible at this time, a temporary solution is available: four compatibility views that emulate the old database schema.

The compatibility views should allow you to continue to use your custom software with ION-Enterprise while you update your code. Using the compatibility views for SELECT operations will be slower than using the updated 7.0.1 schema. The compatibility views are: voldschemadatalog voldschemadatalogstamp voldschemaeventlog voldschemawaveformlog Does a data log view exist? A view on the DataLog2 table does not exist in StruxureWare Power Monitoring 7.0.1. It will be added in a future release. How do I rename one of the compatibility views? Renaming one, or all, of the compatibility views will allow you to continue to use your custom software with ION-Enterprise while you update your code. EXEC sp_rename 'dbo.voldschemadatalog', 'DataLog'; Warning: relying on the compatibility views is not a long term fix! Update your custom code when possible. Has any data been lost or removed? The TimestampSourceLT column has been removed from the DataLog2 table. This column hadn't been used for several versions of the software. All local time calculations are based on TimestampUTC and the time zone of the device. Will an upgrade to 7.0.1 break my reports? No. If the reports were built using the 6.0 DAL/Reporting Framework then your reports should not be broken due to the database upgrade procedure. However, SQL Server 2008 R2 made several changes to Reporting Services rendering. Pre-existing reports may be susceptible to this family of rendering issues if SQL Server Reporting Services was also upgraded.