Using PI OLEDB Enterprise Page 1

Similar documents
Create a Performance Equation Tag (45 min) Learn to use PI SMT (System Manager Tools) 2010 to easily create a performance equation tag.

Using the IMS Universal Drivers and QMF to Access Your IMS Data Hands-on Lab

Collections. Learning Objectives. In this Job Aid, you will learn how to:

QTD and Supporting Files Installation Instructions

Exporting distribution lists from Thunderbird to Outlook

Files and Folders. A Basic Overview From Senior Computing Services.

Embarcadero DB Optimizer 1.0 Evaluation Guide. Published: July 14, 2008

HOL159 Integrating Microsoft Technologies to Microsoft Dynamics AX 4.0. Hands-On Lab

PowerPoint 2 (Office 2007)

We start by providing you with an overview of the key feature of the IBM BPM Process Portal.

Create a personal geodatabase

3. NetBeans IDE 6.0. Java. Fall 2009 Instructor: Dr. Masoud Yaghini

Installing Blank SiriusSQL Database 4.0

Exercise 2.2. Explore QGIS. GIS Techniques for Monitoring and Evaluation of HIV/AIDS and Related Programs

Create a Windows Application that Reads- Writes PI Data via PI OLEDB. Page 1

Lab - Configure Data Backup and Recovery in Windows 7 and Vista

Private/Public Saved Searches

How to Pick the Right PI Developer Technology for your Project

HR-Lite Database & Web Service Setup Guide

Sage Estimating (SQL) v17.12

Next Generation PI SQL

Integration Office 2003

WinZip for Sending Files. Zipping a file

Cumulus 11.0 Release Notes

Introduction. Key features and lab exercises to familiarize new users to the Visual environment

5.5.3 Lab: Managing Administrative Settings and Snap-ins in Windows XP

Tivoli Common Reporting V2.x. Reporting with Tivoli Data Warehouse

LAB 1: Introduction to ArcGIS 8

If this is the first time you have run SSMS, I recommend setting up the startup options so that the environment is set up the way you want it.

IS L02-MIGRATING TO SEP 12.1

Computer Essentials Session 1 Lesson Plan

Embarcadero PowerSQL 1.1 Evaluation Guide. Published: July 14, 2008

VIRTUAL NETWORKING WITH "MICROSOFT VIRTUAL PC 2007"

4 BSM FOUNDATION BOOTCAMP

Integration Services. Creating an ETL Solution with SSIS. Module Overview. Introduction to ETL with SSIS Implementing Data Flow

Using the IMS Explorer with the IMS Catalog Hands-on Lab

Lab - Remote Assistance in Windows

Answer the following general questions: 1. What happens when you right click on an icon on your desktop? When you left double click on an icon?

Sage X3 Intelligence Financial Reporting. Installation and Upgrade Guide

Lab Answer Key for Module 1: Creating Databases and Database Files

TSM Studio Server Installing Version 3

Logi Ad Hoc Reporting Management Console Overview

Managing the Startup Folder in Windows 8

OBIEE. Oracle Business Intelligence Enterprise Edition. Rensselaer Business Intelligence Finance Author Training

Using the IMS Universal Drivers and QMF to Access Your IMS Data Hands-on Lab

Lab - Task Manager in Windows 7 and Vista

National Catalog Submission Using ICMS 05/15/2015

The NetBeans Debugger: A Brief Tutorial

Lightning Conductor Web Part 2013 Manual 2 Last update: October 24, 2014 Lightning Tools

10 Minute Demonstration Script

Getting Started The Application Window Office Office 2003 Application Window cont d

Chancellor s Office Information Technology Services Corporate Information Management FIRMS Budget Review Hyperion Process

Get Started. Estimating Explorer

1. Right-click the worksheet tab you want to rename. The worksheet menu appears. 2. Select Rename.

Module 4: Creating Content Lesson 4: Creating Charts Learn

Select Objects for Use

Introduction And Overview ANSYS, Inc. All rights reserved. 1 ANSYS, Inc. Proprietary

DEPARTMENT OF HEALTH AND HUMAN SCIENCES HS900 RESEARCH METHODS

Lab - Monitor and Manage System Resources in Windows 7 and Vista

Summary. approximately too ). Download and. that appear in. the program. Browse to and

AutoMate BPA Server 9 Installation Wizard

In this lab, you will build and execute a simple message flow. A message flow is like a program but is developed using a visual paradigm.

OUTLOOK COMMAND CENTER

Work Smart: Windows 7 New Features

2015 OSIsoft TechCon. Building Displays with the new PI ProcessBook and PI Coresight

Archive to the Cloud: Hands on Experience with Enterprise Vault.cloud

Visualizing the Topology

ForeScout CounterACT. Plugin. Configuration Guide. Version 2.3

Document Management Upgrade Guide

IMS Hands-on Lab - Using The New IMS Explorer To Access Your IMS Data

Send the Ctrl-Alt-Delete key sequence to the Guest OS one of two ways: Key sequence: Ctlr-Alt-Ins Menu Sequence: VM / Guest / Send Ctrl-Alt-Delete

Creating databases using SQL Server Management Studio Express

Installing Oracle 12c R1 on a 64-bit OS

SQL Server. Management Studio. Chapter 3. In This Chapter. Management Studio. c Introduction to SQL Server

Ticket Mail Merge Instructions for MS Word 2007 and 2010

Legacy Client Chart (LCC) Installation Guide for Purkinje System

Oracle BI 12c: Build Repositories

Follow all of the steps indicated below for each process. Some steps may require IT assistance.

Using SQL Developer. Oracle University and Egabi Solutions use only

MX-Contact Instruction Sheet Setting up SQL Replication SQL 2000

For additional information, please consult the Read-Me and Help documentation or contact Electro-Voice or Dynacord technical support.

Hyperion Interactive Reporting Reports & Dashboards Essentials

Product Documentation. DB Optimizer. Evaluation Guide. Version Published November 27, 2009

Microsoft PowerPoint and Digital Photos

Installation Guide. Sage Intelligence Reporting

Logi Ad Hoc Management Console Overview

Cascade TOA4 Interface Guide g042

IMIR Reporting Services

Each time you start PastPerfect you will be presented with the main menu.

Talend Open Studio for Data Quality. User Guide 5.5.2

Migrate From Version 3.1 to Version 4 Guide Vovici Enterprise 4.0. December 2008

Desktop Deployment Guide

PEACHTREE COMPLETE 2008 AN INTRODUCTION TO PEACHTREE COMPLETE ACCOUNTING

TxEIS on Internet Explorer 8

Records Explorer MANUAL

Server Based Repositories

Microsoft Access 2013

ILTA UNIVERSITY Looking Into the New and Improved Functionality of Microsoft SQL 2008

Course CLD211.3x Microsoft SharePoint 2016: Workload Optimization

Creating a new CDC policy using the Database Administration Console

Transcription:

Using PI OLEDB Enterprise 2010 Page 1

1.1 Using PI OLEDB Enterprise 2010 1.1.1 Objectives At the end of this learning lab, you should be able to: Explain what PI OLEDB Enterprise 2010 is. Explain how it connects to the PI Server. Perform simple queries. Become familiar with the PI SQL Commander tool. 1.1.2 Problem Description PI OLEDB Enterprise 2010 is an OLE DB data provider you can use to access asset metadata stored in the PI Asset Framework (AF). PI OLEDB Enterprise 2010 supports read-only access to AF Server data. Only the AF Asset namespaces are exposed. PI OLEDB Enterprise 2010 also provides read-only access to data from PI Servers, since AF Attributes can be configured to reference PI points. PI OLEDB Enterprise exposes this information through a relational view of AF Databases, which is accessible through SQL queries. Using the PI SQL Commander tool, you must first explore and become acquainted with the data structure of AF and the PI server. Next perform some simple queries by establishing a connection to AF and running selected sample queries contained in the PI SQL Query Compendium project. 1.1.3 Approach To do this exercise, you will need to open the PI SQL Commander tool which you can find under the PI System group. Once you open the PI SQL Commander, it should open by default the PI SQL Query Compendium project. Open the Schema explorer to browse and become acquainted with the data structure in AF and the PI server. Open the sample queries contained in the PI SQL Query Compendium project and run selected queries that display element attributes, time-series data and system information among other results. Try to do this exercise on your own before proceeding to the step-by-step solution. Page 2

Page 3

1.1.4 Step-by-Step Solution Open the PI SQL Commander tool and explore the data structure in AF: 1. Connect to the PI-CLIENT1 machine 2. Go to the Desktop 3. Click on PI SQL Commander to open the tool. 4. Click on the PI SQL Commander menu. 5. Click on View > Object Explorer. You should now see two data sources available, AF and the PI server. Each one of the data sources will list the servers available to connect. 6. Right click on the AF server listed and select Connect. You may have to expand the selection of AF Servers if the AF server is not visible. Page 4

7. On the authentication window you can use the default selection of Window Integrated Security (preferred method of connecting) and click Ok. 8. Under Catalogs, expand the PI Big Tires Co database. 9. Drill down into the database to explore the data structure by expanding the Asset folder. 10. Expand the Tables folder. 11. Expand the Element table. 12. Expand the Columns folder to see the fields that are available. Page 5

13. Drill down again to inspect the fields available under Data > Tables > Archive > Columns. Explore the data structure in the PI Server: 1. Right click on the PI server listed and select Connect. You may have to expand the selection of PI Servers if the PI Server is not visible. 2. On the authentication window you can use the default selection of Window Integrated Security (preferred method of connecting) and click Ok. 3. Under Catalogs, expand the piarchive database Page 6

4. Drill down into the database to explore the data structure by expanding the Tables > piavg > Columns and inspecting the available fields 5. Drill down into the database by expanding Tables > pisnapshot > Columns and examining the fields available in that Table 6. Close the Object Explorer. Perform simple queries: Note: the PI OLEDB Enterprise 2010 installation includes a project located in C:\Program Files (x86)\pipc\oledb\tools\pi SQL Commander\MyProjects\PI SQL Query Compendium which contains several sample query files. The project is meant as a guide to PI SQL queries and as an introduction to key PI OLEDB Enterprise concepts, it presents the most typical queries, and point you to performance implications of various query representations. Take the time to read the comments included in the query files. 1. On the PI SQL Commander go to File > Project. 2. Navigate to the file: C:\Program Files (x86)\pipc\oledb\tools\pi SQL Commander\MyProjects\PI SQL Query Compendium\PI SQL Query Compendium.pisqlsln 3. The CurrentElementHierarchy.sql should already be open. If this file is not open, open it on the solution explorer docket window by expanding the Queries > Asset Database folders. Page 7

4. Before being able to execute queries a connection must be established 5. Highlight a query on the CurrentElementHierarchy.sql file. 6. Select Connection 7. Select Connect to AF Server Page 8

8. On the authentication window you can use the default selection of Window Integrated Security (preferred method of connecting) and click Ok 9. The bottom of the center pane should indicated the status of the connection and the name of the AF server connected to Note: SQL files in this project contain multiple queries. Before executing a query, you need to select it. To simplify this action, PI SQL Commander offers two commands accessible through the following keyboard shortcuts: Page 9

Ctrl+M: selects the command at the current cursor position. Ctrl+R: selects and executes the command at the current cursor position. 10. Place the cursor in front of the first line that has the SELECT NAME command 11. Press ctrl + m, the entire command will be highlighted 12. Click on Execute 13. The results can be examined in the new pane Page 10

14. Conduct a second query from the same sample file by placing the cursor on the second line that has the SELECT NAME command 15. Press ctrl + m, the entire command will be highlighted 16. Click on Execute 17. The new results are display on the bottom pane 18. Open the query file named EnumerationSets.sql from the Solution Explorer Page 11

19. Place the cursor in front of the second line that has the SELECT NAME command 20. Press ctrl + m, the entire command will be highlighted 21. Click on Execute 22. The results can be examined in the new pane 23. Ensure you take the time to read the comments contained in the query files, they contain useful information. 24. Additionally the folders found in C:\Program Files (x86)\pipc\oledb\tools\pi SQL Commander\MyProjects\PI SQL Query Compendium and the read me files inside them contain important information. Page 12