Vous êtes sur la page 1sur 23

Application Description

10/2013

Setup a new Process Historian with an existing Historian Storage Database


SIMATIC PCS 7 V8.0 SP1 / Process Historian V8.0 SP1

http://support.automation.siemens.com/WW/view/en/66579062

Warranty and liability

Warranty and liability


Note The Application Examples are not binding and do not claim to be complete regarding the circuits shown, equipping and any eventuality. The Application Examples do not represent customer-specific solutions. They are only intended to provide support for typical applications. You are responsible for ensuring that the described products are used correctly. These application examples do not relieve you of the responsibility to use safe practices in application, installation, operation and maintenance. When using these Application Examples, you recognize that we cannot be made liable for any damage/claims beyond the liability clause described. We reserve the right to make changes to these Application Examples at any time without prior notice. If there are any deviations between the recommendations provided in these application examples and other Siemens publications e.g. Catalogs the contents of the other documents have priority. We do not accept any liability for the information contained in this document. Any claims against us based on whatever legal reason resulting from the use of the examples, information, programs, engineering and performance data etc., described in this Application Example shall be excluded. Such an exclusion shall not apply in the case of mandatory liability, e.g. under the German Product Liability Act (Produkthaftungsgesetz), in case of intent, gross negligence, or injury of life, body or health, guarantee for the quality of a product, fraudulent concealment of a deficiency or breach of a condition which goes to the root of the contract (wesentliche Vertragspflichten). The damages for a breach of a substantial contractual obligation are, however, limited to the foreseeable damage, typical for the type of contract, except in the event of intent or gross negligence or injury to life, body or health. The above provisions do not imply a change of the burden of proof to your detriment. Any form of duplication or distribution of these Application Examples or excerpts hereof is prohibited without the expressed consent of Siemens Industry Sector.

Copyright

Siemens AG 2013 All rights reserved

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

Table of contents

Table of contents
Warranty and liability ............................................................................................... 2 1 2 3 4 5 Task................................................................................................................. 4 Creating a Full PH Database Backup............................................................. 5 Restore Historian Storage Database ........................................................... 13 Related literature .......................................................................................... 23 History .......................................................................................................... 23

Copyright

Siemens AG 2013 All rights reserved

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

1 Task

Task
The non-redundant Process Historian (PH) machine is because of some reason broken. The PC must be exchanged and new installed. The already existing database should be used for the new installation. Therefore one needs a full database backup. This full DB backup can be restored to a PH Database after exchanging the machine. This document offers a guideline for the following Scenarios. 1. New installation of PH software on the existing hardware 2. PH hardware exchange due to hardware defect In both scenarios an existing PH database shall be used without data loss. Data which is available on the OS revolving archive, but not in the PH database, can be recovered against the OS revolving archive. To make sure that the data are available inside of the OS archive, we recommend creating a full database backup file in half of the time range the OS archive is configured.

Introduction

Example
Siemens AG 2013 All rights reserved

The OS archive contains 4 Weeks of data. In this case one should generate a full database backup every 2 weeks. That means in the worst case the data of two weeks must be recovered against the OS archive. Prerequisite The computer name doesn't change The PH is non-redundant Additional reasons to create a full data backup of the Process Historian database All runtime database segments, which are visible inside of the Segmentation menu of the PH Management Console, must be backuped with a full database backup. Segment backups created with help of the PH Management Console menu Backup and Restore, can be restored in a Historian Storage database they are created from. It is not possible to restore a PH segment backup into an empty Historian Storage database.

Copyright

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

2 Creating a Full PH Database Backup

Creating a Full PH Database Backup


The following table describes step by step how to create a full PH database backup. NOTE Run SQL Server Management Studio as Administrator.

Table 2-1 No. 1. Action Deactivate the PH with help of the PH Management Console. Use the drop down menu and choose shutdown and click on the Go button.

Copyright

Siemens AG 2013 All rights reserved

2.

Click on the Yes button.

3.

Wait until the PH is in state idle.

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

2 Creating a Full PH Database Backup

No. 4.

Action Close the Process Historian Management Console on the Process Historian. An open Process Historian Management Console can be the reason that a full database backup fails.

5.

Close the Process Historian Icon in the task bar. Execute a right mouse click on the PH Icon. Choose the function Exit.

Siemens AG 2013 All rights reserved

6.

Open the SQL Server Management Studio as administrator. With help of the menu Start > All Programs > Microsoft SQL Server 2008 R2 > SQL Server Management Studio > Run as administrator

Copyright

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

2 Creating a Full PH Database Backup

No. 7.

Action Connect to the Process Historian SQL Server. The server name is <PH computer name>\HISTORIAN.

8.

Create a full Database Backup. Expand the folder Databases > perform a right mouse click on the DB folder Historian Storage > click on the menu Tasks > click on the function Back Up.

Copyright

Siemens AG 2013 All rights reserved

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

2 Creating a Full PH Database Backup

No. 9.

Action Remove the Null destination, click on the "Remove" button.

Siemens AG 2013 All rights reserved

10.

Click on the Add button

Copyright

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

2 Creating a Full PH Database Backup

No. 11.

Action Click on the button, to define a backup destination.

12.

Define the backup destination and the backup file name and click on the OK button.

Copyright

Siemens AG 2013 All rights reserved

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

2 Creating a Full PH Database Backup

No. 13. Click on OK button

Action

Result:

Copyright

Siemens AG 2013 All rights reserved

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

10

2 Creating a Full PH Database Backup

No. 14.

Action Choose the Option page and mark the radio button "Backup to new media set, and erase all existing backup sets.Click on the OK button to start the backup execution.

Siemens AG 2013 All rights reserved

15.

Result:

Copyright

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

11

2 Creating a Full PH Database Backup

No. 16. Click on the OK button.

Action

NOTE

A file of a full database backup could be huge, if the database is huge! Creating a huge backup file is also time consuming. There are different reasons because a full database backup fails, for instance concurrent database connections. If a full database backup on a running PH fails, the PH Services must be deactivated before creating a full database backup. The following table shows the steps which have to be executed if a full backup fails:

NOTE

Siemens AG 2013 All rights reserved

Table 2-2 No. 17. Action Open the Microsoft Server Manager on the PH and deactivate the Process Historian Maintenance Service.

Copyright

18.

Deactivate the Process Historian Service.

19. 20.

Close the Microsoft Server Manager. Start the full database backup procedure.

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

12

3 Restore Historian Storage Database

Restore Historian Storage Database


The following table describes step by step how to restore a Historian Storage Database. The following prerequisites must be fulfilled: The Process Historian must be deactivated with help of the PH Management Console. The PH services Process Historian Maintenance Service and the SIMATIC Process Historian service must be stopped. An existing Historian Storage database must be detached if there is one attached. There is enough disc space available to store also the existing Historian Storage database. Otherwise the Historian Storage database must be copied to another disc location.

Table 3-1 No
Siemens AG 2013 All rights reserved

Action Check if a full database backup file is available. Deactivate the PH with help of the PH Management Console. Use the drop down menu and choose shutdown and click on the Go button.

1. 2.

Copyright

3.

Click on the Yes button.

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

13

3 Restore Historian Storage Database

No 4. Wait until the PH is in state Idle.

Action

5. 6.

Close the PH Management Console. Close the Process Historian Icon in the task bar. Execute a right mouse click on the PH Icon. Choose the function Exit.

7.
Siemens AG 2013 All rights reserved

Open the Microsoft Server Manager on the Process Historian. Click on Start > Type Server Manager into the input box > Click on the Server Manager Program Icon.

Copyright

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

14

3 Restore Historian Storage Database

No 8.

Action Deactivate the Process Historian Maintenance Service. Execute a right mouse click on the Process Historian Maintenance Service > Execute the Stop function > wait until the service is stopped.

9.

Deactivate the SIMATIC Process Historian Service. Execute a right mouse click on the SIMATIC Process Historian service > execute the Stop function > wait until the service is stopped.

Siemens AG 2013 All rights reserved

Copyright

10.

Close the Microsoft Server Manager.


1), 2), 3)

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

15

3 Restore Historian Storage Database

No 11.

Action Open the SQL Server Management Studio as administrator. With help of the menu Start > All Programs > Microsoft SQL Server 2008 R2 > SQL Server Management Studio > Run as administrator.

Siemens AG 2013 All rights reserved

12.

Copyright

Connect to the Process Historian SQL Server. The server name is <PH computer name>\HISTORIAN.

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

16

3 Restore Historian Storage Database

No 13.

Action Expand the folder Databases > execute a right mouse click on the database Historian Storage> click on the menu Tasks > execute the Detach function.

Copyright

Siemens AG 2013 All rights reserved

14.

Choose the option Drop Connections and click on OK. Wait until the database is detached.

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

17

3 Restore Historian Storage Database

No 15. Click on the OK button


4)

Action

16.
Siemens AG 2013 All rights reserved

Rename the original storage location for the existing Historian Storage database with help of the Microsoft Explorer, to avoid overwriting. Create a new, empty folder structure with the original naming for restore purpose.

Copyright

17.

Use the SQL Server Management Studio and execute a right mouse click on the Database folder. Click on Restore Database function.

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

18

3 Restore Historian Storage Database

No 18.

Action Choose the radio button From device and click on the button to choose a backup file.

Copyright

Siemens AG 2013 All rights reserved

19.

Click on the Add button.

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

19

3 Restore Historian Storage Database

No 20.

Action Choose Files of type = All Files(*) and choose the database backup file. Click on the OK button.

Copyright

Siemens AG 2013 All rights reserved

21.

Choose in the drop down menu To database = Historian Storage and select the backup set to restore via checkbox Restore. Click on the OK button.

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

20

3 Restore Historian Storage Database

No 22.

Action The restore function will be executed. Wait until the restore process has finished. Click on the OK button

Siemens AG 2013 All rights reserved

23.

The Historian Storage database has been successfully restored.

Copyright

24.

Reboot the PH System. The PH will automatically change into state Active.
5)

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

21

3 Restore Historian Storage Database

No 25.

Action Refresh the Information Server data source, as in the following steps. Open the Internet Explorer on the Information Server and connect to the Information Server. Open the Administration menu > click on the Process Historian project > Click on the Refresh button.

Siemens AG 2013 All rights reserved

NOTE

1)

Copyright

In case the PH has been installed completely new, and the Process Historian database installation wizard wasnt executed, there is no Historian Storage database which must be detached.
2)

In case the PH has been installed completely new, and the Process Historian database installation wizard has been executed, the Historian Storage database is empty and can be deleted.
4)

In this example, just in case, the original Historian Storage database is also stored on the disc drive, but therefore enough disc capacity is needed.
5)

After a Process Historian system restart the Process Historian changes into the state active. After approximately 30 minutes the system will create a recovery against the OS archive to close the data gap. Therefore time synchronization between the Process Historian and the OS Systems is mandatory.

CAUTION

3)

If you delete an existing Historian Storage database which contains the process data, without having a healthy and complete full database backup file, you lose your process data.

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

22

4 Related literature

4
Table 4-1

Related literature
Topic Title / Link
www.siemens.com/industry/onlinesupport/pcs7 http://support.automation.siemens.com/WW/view/en/66579062 http://support.automation.siemens.com/WW/view/en/68099510/0/en http://support.automation.siemens.com/WW/view/en/64906050

\1\ \2\ \3\ \4\

SIMATIC PCS 7 in Industry Online Support - Overview Page Download page of this entry Process Historian 2013 Administration Creating Report Templates for the Information Server on the Process Historian Database in the PCS 7 Environment

5
Siemens AG 2013 All rights reserved

History
Version V1.0 Date 10/2013 First version Modifications

Table 5-1

Copyright

PH Backup & Recovery Item-ID: 66579062, V1.0 ,

10/2013

23

Vous aimerez peut-être aussi