Case Study: InSQL to PI Migration

14 December 2012

This case study describes the process, the challenges and the outcomes of a historical data migration project. This project consisted of migrating data from two Wonderware (Industrial SQL) Historians to a single OSISoft PI Historian. The PI Historian had replaced the InSQL Historians, but this resulted in valuable historical data being split among three historians.

By migrating the historical data from the two InSQL Historians to the PI Historian, all the historical data became available in the PI Historian, and the two InSQL Historians could be decommissioned.

We will refer to the 2 InSQL Historians as ‘InSQL 1’ and ‘InSQL 2’. These two historians had the following properties:

InSQL 1:

  • Time span: 4 years and 7 months.
  • No. of Tags: approx. 23 000.

InSQL 2:

  • Time span: 1 year and 11 months.
  • No. of Tags: approx. 40 000.

The InSQL Historians not only overlapped in time but also had common tags which extracted their data from the same source. The tags in the PI Historian are a superset of the union of the tags in the two InSQL Historians. However, for many tags, the name in PI was different from the corresponding tags in InSQL 1 and/or InSQL 2.

The results of the migration are summarised in the figure below. The two plots show historical data from InSQL 1 and the migrated data in PI for a single tag covering one day. These plots are derived from the migration analysis results (more on which see below).

The result of migrating historical data from InSQL 1 and InSQL 2 to PI.

Migration Analysis: Source (InSQL) Plot.

Migration Analysis: Target (PI) Plot

The migration process consisted of the following steps:

  • Synchronisation of tag configurations: This consists of linking tags from the source historians (InSQL 1 and InSQL 2) to the corresponding tags in the target historian (PI). This step is particularly important for tags whose names differ in the source and target historians.
  • Import tag configurations and their synchronisation into Tag Manager: By using Tag Manager, this otherwise manual process is greatly simplified.
  • Create the Migration Jobs: Migration Jobs are responsible for the actual migration and run as services. A Migration Job is characterised by source and target historians, a tag list (imported from Tag Manager), and start and end times. Migration jobs are subdivided into batches, which are the smallest repeatable units of a migration job. The migration was completed using 6 jobs (4 for InSQL 1 and 2 for InSQL 2) and each batch had a time range of one day.
  • Analysis and verification: After a batch completes data migration, there is an option of running an analysis step. During this step, data from the source and the target are extracted and compared. Based on the difference between the source and target data, thresholds can be set to identify potentially problematic cases. Because of this, the migration was not merely a blind process. The results of the migration were verified.

Summary of the migration process

The migration was executed on 6 virtual machines (VMs) running Windows Server 2003 R2. Three VMs were used per migration job (one for the InSQL Historian Server, one for the PI Historian Server and one for IDX 8 and Migration Job service). This meant that two Migration Jobs could be run in parallel.

The time it took to complete the entire migration process is summarised as follows:

  • Tag configuration synchronisation and importing to Tag Manager (InSQL 1 and InSQL 2): 2 weeks.
  • Executing the migration jobs (including analysis):

    • InSQL 1 (23,000 tags, 4 years and 7 months): 2 weeks.
    • InSQL 2 (40,000 tags, 1 year and 11 months): 5 days.

One of the challenges encountered was that certain tags had an incorrect data type in the InSQL Historian. This meant that the data types did not match in InSQL and PI. This required that the data for these tags not be migrated as is, but that a ‘processing’ step be included during the migration that transformed the source data into an appropriate version that was written into the target. This process was facilitated by Tag Manager, which held the source and target tag configurations, allowing these special cases to be easily identified during the migration.

<a href="https://blog.idx.co.za/author/idx-team/" target="_self">IDX Team</a>

IDX Team

Technical Team

The IDX team is a dynamic group of professionals dedicated to delivering cutting-edge industrial ICT solutions. With a focus on innovation, they leverage their expertise to streamline processes and drive efficiencies for your plant data.

Show your love!

Recent Posts

Deploying Anybus ComBricks for Network Optimisation

Deploying Anybus ComBricks effectively requires careful planning and integration with existing network components such as PLCs, OLMs, and repeaters. This comprehensive guide provides details for implementing ComBricks in different network configurations, covering...

Innovative Solutions for the Solar Energy Sector

Industrial Data Xchange (IDX) is a South African-based ICT company specialising in data communications systems. With extensive expertise in industrial automation and connectivity, IDX provides professional engineering services for both new and existing communications...

Win a free Certified PROFIBUS Installer with Troubleshooting course

Join us at the Africa Automation Technology Fair for an exclusive chance to win a FREE Certified PROFIBUS Installer with Troubleshooting course! This is your opportunity to enhance your skills, gain industry-recognised certification, and stay ahead in the world of...

Effective system adoption through a people-centred approach

Our vision: ‘Operational excellence unlocked at every level’ drives our commitment to ensuring the timely and effective deployment and adoption of industrial communication systems, enabling clients to experience strategic benefits as early as possible. Successful...

Sign up for our newsletter

Get exclusive updates and a sneak peek into our world every two months. Stay connected, stay informed.

Related Posts

Our expertise lies in establishing, maintaining, and leveraging plant data for business benefit. Through our innovative solutions, we work alongside you to streamline processes, enhance efficiency, and reduce costly downtime.

CONTACT US

Main: +27 (11) 548 9960
Sales: +27 (11) 548 9970

SOCIAL MEDIA

Copyright @2024 Industrial Data Xchange. All rights reserved.