66579062 PCS7 PH Backup Restore En

download 66579062 PCS7 PH Backup Restore En

of 23

Transcript of 66579062 PCS7 PH Backup Restore En

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

    Application Description y 10/2013

    Setup a new Process Historian with an existing Historian Storage Database SIMATIC PCS 7 V8.0 SP1 / Process Historian V8.0 SP1

  • Warranty and liability

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 2

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    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.

  • Table of contents

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 3

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    Table of contents

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

  • 1 Task

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 4

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    1 Task Introduction

    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.

    Example 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 x The computer name doesn't change x The PH is non-redundant

    Additional reasons to create a full data backup of the Process Historian database x 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.

    x 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.

  • 2 Creating a Full PH Database Backup

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 5

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    2 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. Action

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

    2. Click on the Yes button.

    3. Wait until the PH is in state idle.

  • 2 Creating a Full PH Database Backup

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 6

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    No. Action

    4. 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.

    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

  • 2 Creating a Full PH Database Backup

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 7

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    No. Action

    7. Connect to the Process Historian SQL Server. The server name is \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.

  • 2 Creating a Full PH Database Backup

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 8

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    No. Action

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

    10. Click on the Add button

  • 2 Creating a Full PH Database Backup

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 9

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    No. Action

    11. 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.

  • 2 Creating a Full PH Database Backup

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

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    No. Action

    13. Click on OK button

    Result:

  • 2 Creating a Full PH Database Backup

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 11

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    No. Action

    14. 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.

    15. Result:

  • 2 Creating a Full PH Database Backup

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 12

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    No. Action

    16. Click on the OK button.

    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.

    NOTE 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:

    Table 2-2

    No. Action

    17. Open the Microsoft Server Manager on the PH and deactivate the Process Historian Maintenance Service.

    18. Deactivate the Process Historian Service.

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

  • 3 Restore Historian Storage Database

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 13

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    3 Restore Historian Storage Database The following table describes step by step how to restore a Historian Storage Database. The following prerequisites must be fulfilled: x The Process Historian must be deactivated with help of the PH Management

    Console. x The PH services Process Historian Maintenance Service and the SIMATIC

    Process Historian service must be stopped. x An existing Historian Storage database must be detached if there is one

    attached. x 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 Action

    1. Check if a full database backup file is available. 2. Deactivate the PH with help of the PH Management Console. Use the drop down menu and

    choose shutdown and click on the Go button.

    3. Click on the Yes button.

  • 3 Restore Historian Storage Database

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 14

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    No Action

    4. Wait until the PH is in state Idle.

    5. Close the PH Management Console. 6. Close the Process Historian Icon in the task bar. Execute a right mouse click on the PH Icon.

    Choose the function Exit.

    7. 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.

  • 3 Restore Historian Storage Database

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 15

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    No Action

    8. 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.

    10. Close the Microsoft Server Manager.

    1), 2), 3)

  • 3 Restore Historian Storage Database

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 16

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    No Action

    11. 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.

    12. Connect to the Process Historian SQL Server. The server name is \HISTORIAN.

  • 3 Restore Historian Storage Database

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 17

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    No Action

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

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

  • 3 Restore Historian Storage Database

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 18

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    No Action

    15. Click on the OK button 4)

    16. 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.

    17. Use the SQL Server Management Studio and execute a right mouse click on the Database

    folder. Click on Restore Database function.

  • 3 Restore Historian Storage Database

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 19

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    No Action

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

    19. Click on the Add button.

  • 3 Restore Historian Storage Database

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 20

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    No Action

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

    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.

  • 3 Restore Historian Storage Database

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 21

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    No Action

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

    23. The Historian Storage database has been successfully restored.

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

    5)

  • 3 Restore Historian Storage Database

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 22

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    No Action

    25. 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.

    NOTE 1) 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.

  • 4 Related literature

    PH Backup & Recovery Item-ID: 66579062, V1.0 , 10/2013 23

    Cop

    yrig

    ht

    Sie

    men

    s A

    G 2

    013

    All

    right

    s re

    serv

    ed

    4 Related literature

    Table 4-1

    Topic Title / Link \1\ SIMATIC PCS 7 in Industry Online

    Support - Overview Page www.siemens.com/industry/onlinesupport/pcs7

    \2\ Download page of this entry http://support.automation.siemens.com/WW/view/en/66579062

    \3\ Process Historian 2013 - Administration

    http://support.automation.siemens.com/WW/view/en/68099510/0/en

    \4\ Creating Report Templates for the Information Server on the Process Historian Database in the PCS 7 Environment

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

    5 History

    Table 5-1

    Version Date Modifications

    V1.0 10/2013 First version

    Setup a new ProcessHistorian with an existingHistorian Storage DatabaseTable of contentsWarranty and liability1 Task2 Creating a Full PH Database Backup3 Restore Historian Storage Database4 Related literature5 History