Upload
alexina-jacobs
View
236
Download
0
Embed Size (px)
Citation preview
PI OLEDB Data Provider, Bodo Bachmann
PI OLEDB
PI Data Access via OLE DB/SQL
PI OLEDB Data Provider, Bodo Bachmann
Real-time
Performance
Management
for the
Enterprise
Copyright © 2003 OSIsoft, Inc.
Agenda Functional Overview Web Service for PI OLEDB MS Linked Server Oracle Generic Connectivity Be aware Future Development
PI OLEDB Data Provider, Bodo Bachmann
What Tasks?
• Copy Data between PI and RDBMS• Link Data
Link RDBMS data into PI Link PI data into RDBMS
• Display PI and RDBMS data together ProcessBook Excel Other Clients, e.g. SQL Tools, Report Writer,...
PI OLEDB Data Provider, Bodo Bachmann
PI OLEDB 2.0
• OLE DB Data Provider – SQL• Read/Write Access to
Archive, Module DB , Batch , User DB, Tag DB, Dig. States
• Read Access to Log File , PE Functions, Aggregation
• Explicit support for ADO, ADO.NET , Data Controls MS SQL Server - Linked Server Oracle Generic Connectivity MS Data Analysis Services (OLAP)
PI OLEDB Data Provider, Bodo Bachmann
Explore PI OLEDB : Demo
PI OLEDB Data Provider, Bodo Bachmann
Web Service for PI OLEDB
PI Servers PI Servers PI Servers
FIREWALL
WEB SERVICE
Microsoft IIS
PI OLEDB
Web Client
MS .NET Framework
SOAP
XMLHTML
Port 80
INTERNET / INTRANET
Web Browser
VB Script
PI OLEDB Data Provider, Bodo Bachmann
Web Service - Demo
PI OLEDB Data Provider, Bodo Bachmann
SQL Server – Linked Server
MS SQL Server 2000
PI OLEDB
RDBMS NET
Relational databasenon real-time data
product, equipment,specification, safety, etc.
OLE DB for Oracle
Views
Local Tables
MS Access 2000
MS Query
ODBC Clients
OLEDB / ODBC
PI SERVER
PI SYSTEM
REAL-TIME DATAMANUAL / PROCESS /
CALCULATED
PI OLEDB Data Provider, Bodo Bachmann
Linked Server - Demo
PI OLEDB Data Provider, Bodo Bachmann
Oracle – Generic Connectivity
Oracle 8i (8.1.6+), 9i
PI OLEDB
RDBMS NET
Relational databasenon real-time data
product, equipment,specification, safety, etc.
OLE DB for SQL Server
Views
Local Tables
SQL Plus
Oracle Forms
ODBC Clients
PI SERVER
PI SYSTEM
Real-time datamanual / process / calculated
OLEDB / ODBC
PI OLEDB Data Provider, Bodo Bachmann
Oracle Generic Connectivity
• Edit 3 text files tnsnames.ora listener.ora initpioledb.ora
• Define database link CREATE PUBLIC DATABASE LINK PI3 USING 'PIOLEDB';
• Map Oracle users to PI users CREATECREATE DATABASE LINK PI3 CONNECT TO “piadmin"
IDENTIFIED BY “password"; Repeat per user
PI OLEDB Data Provider, Bodo Bachmann
Generic Connectivity - Demo
PI OLEDB Data Provider, Bodo Bachmann
Be aware (1):
• Use Optional Connection Pooling In Linked Server Connection Pooling=True;
• SQL Server 2000 Cannot Write To Remote VARIANT Columns Our batch tables for example use variants use pass
through
• Current Version Can Be Used With ASP.NET Aspcompat=true
• VS.NET Database Designer Wizard Puts Brackets Microsoft Knowledge Base Article - 325790
PI OLEDB Data Provider, Bodo Bachmann
Be aware (2):
• Older Oracle ODBC drivers cannot access remote databases Use Oracle ODBC driver 9.0.1.5.0 and above
• Oracle Cannot Set OLE DB Query Timeout Use global Command Timeout Property (in UDL file)
• Oracle Heterogenious Queries Switch Off Two-Phase Commit dbms_hs.create_class_init ('xxx', '2PC', 'SS', 'F');
• Tag Search Queries With Escape Character Other Than ‘\‘ Are Local „... WHERE tag like ‘tag\_1*‘ ESCAPE ‘\‘ ...“
PI OLEDB Data Provider, Bodo Bachmann
Future
• OLE DB Has Not Reached Its Peak Continued tests for integration scenarios, e.g. OLAP
• Bug Fix Version - Q2/2003 Module DB XML Import/Export Utility (ADO.NET Example)
• Next Major Version - Beta Q4/2003 Move to „free threading“
Support for .NET Web Service Support for Application Framework New SQL Engine
Prepare ground for .NET Managed Provider PI ODBC?
PI OLEDB Data Provider, Bodo Bachmann
RtPM Pyramid
Data Collection from Inside and Outside the Corporation
Execs Look for Equipment, Plants, Products, not Tags
Aggregation, Reconciliation, Calculation, Cases
Get the Information to People Who Need It
People Need Pictures, Graphs, Trends
Without Action, there is no Benefit
Gather
Assign Context
Analyze
Distribute
Visualize
Act