PI Data Access via OLE DB/SQL PI OLEDB PI Data Access via OLE DB/SQL PI OLEDB Data Provider, Bodo Bachmann
Agenda Functional Overview Web Service for PI OLEDB MS Linked Server Real-time Performance Management for the Enterprise Agenda Functional Overview Web Service for PI OLEDB MS Linked Server Oracle Generic Connectivity Be aware Future Development PI OLEDB Data Provider, Bodo Bachmann Copyright © 2003 OSIsoft, Inc.
What Tasks? PI OLEDB PI OLEDB 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 PI OLEDB 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 FIREWALL WEB SERVICE Microsoft IIS PI OLEDB Web Client MS .NET Framework SOAP XML HTML 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 OLEDB / ODBC MS Access 2000 Views MS Query Local Tables ODBC Clients OLE DB for Oracle PI OLEDB RDBMS NET Relational database non real-time data product, equipment, specification, safety, etc. PI SERVER PI SYSTEM REAL-TIME DATA MANUAL / 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 OLEDB / ODBC SQL Plus Views Oracle Forms Local Tables ODBC Clients OLE DB for SQL Server PI OLEDB RDBMS NET Relational database non real-time data product, equipment, specification, safety, etc. PI SERVER PI SYSTEM Real-time data manual / process / calculated 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 CREATE 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 Bug Fix Version - Q2/2003 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 Act Visualize Distribute Analyze Assign Context Gather Without Action, there is no Benefit People Need Pictures, Graphs, Trends Visualize Get the Information to People Who Need It Distribute Aggregation, Reconciliation, Calculation, Cases Analyze Execs Look for Equipment, Plants, Products, not Tags Assign Context Gather Data Collection from Inside and Outside the Corporation PI OLEDB Data Provider, Bodo Bachmann