SlideShare a Scribd company logo
Interaction with Relational Databases
Bodo Bachmann, Gregg Le Blanc
PRESENTATION OVERVIEW
• Available options to connect to RDBMS’s
5min
• New version of PI-ODBC
5min, detailed list of new features, demo here or below, Gregg
• From PI-ODBC via ADO/RDS to the Web
10min, r/w example showing support of new data types and
UPDATE/INSERT, Gregg
• PI-OLEDB prototype
10min, demo MMC snap-in, PB DataControl/DataGrid, Bodo
• PI RDBMS Interface
10min, demo point configuration log, edit Tags via MS Query, log in
Access, Bodo
• Questions
5min
PI-API
PI-ProcessBOOK &
PI-PC DATALINK
(EXCEL, LOTUS 123)
RDBMS ODBC
RDBMS NET
PI-ODBC
PI-OLE DB
OTHER PC TOOLS
(POWER BUILDER, ACCESS,
VISUAL BASIC, Q+E, EXCEL,…)
RDBMS ODBC
RDBMS NET
ActiveX
RDBMS NET
RELATIONAL DATABASE
(RDBMS)
NON REAL-TIME DATA
PRODUCT, EQUIPMENT,
SPECIFICATION, SAFETY, ETC.
PI SERVER
PI SYSTEM
REAL-TIME DATA
MANUAL / PROCESS /
CALCULATED
RDBMS
INTERFACE
ODBC
OLE DB
COM
CONNECTOR
MANUAL / LAB
INPUTS
AUTOMATIC SCANNED DATA
TEXT / DATA / CONFIG
MANY OPTIONS...
ProcessBook and RDBMS’s
• Embedded ODBC support (DataSet)
• ActiveX Data Controls
• ADO via VBA
• Other Libraries via VBA (OLE DB, RDS,...)
• Special developped ProcessBook AddIn
• PI-UDA Tags via OLE DB Com Connector
PI-API
PI-ProcessBOOK
RDBMS ODBC
RDBMS NET
ODBC
OLE DB
• Present PI Data as it would be a RDBMS
• Link PI tables into MS Access and use
MS Access as Report Writer
• Use OLE DB Gateway and link into
MS SQL Server 7
• Use ODBC Clients for Data Analysis,...
• New Version PI-ODBC 1.1.8:
•Support PI3 data types and milliseconds
•Read/Write access for data archive
PI-ODBC
PI-ODBC
OTHER PC TOOLS
(POWER BUILDER, ACCESS,
VISUAL BASIC, Q+E, EXCEL,…)
RDBMS ODBC
RDBMS NET
PI-ODBC and You
Gaining Wealth and Wisdom Through
PI-ODBC and the Web
ADO and Recordsets
• ActiveX data objects (ADO)
• Use ADO to:
– Create connections
– Execute queries
– Populate Recordsets
• Use Recordsets to:
– Present data
– Manipulate query results
Serving Data Using ASP’s
• Use IIS and Active Server Pages
– Written in HTML and VBScript
– Database access is on server side
• Install PI-ODBC on web server
• Configure and name system DSN
Grabbing Data
• Open the connection & recordset:
– Set Conn = Server.CreateObject(“ADODB.Connection”)
– Conn.Open “PI”
– Set Rs = CreateObject(“ADODB.RecordSet”)
– Set Rs = Conn.Execute(strQry)
• Retrieve Values:
SELECT Time, currentstat=DIGSTRING(status), Value, Tag
FROM picomp WHERE Tag = “Sinusoid”
AND Time >= DATE(“17-Mar-00 11:00”);
• Input Values:
INSERT INTO picomp (tag, time, value)
VALUES (“Sinusoid”, “*”, 42);
Applications
• Lab data entry.
• Query PI data via a web site.
• An example:
– Uses any web browser.
– Uses standard web building tools.
– Does not compromise security.
– All processing done on server side.
• Display recordset contents: <%=Rs(“value”)%>.
Demonstration
• Sample lab data entry page.
– Regular tags.
– String tags.
• Uses standard HTML forms.
• VBScript uses common operations:
– Do… Loop
– If… Then
– ADO etc.
Summary
• Use IIS and PI-ODBC to make simple
pages that use PI data.
• Results are browser independent.
• Can be effective as a lab entry terminal.
• PI-ODBC now supports string tags.
OLE DB - THE NEXT ODBC GENERATION
• OLE DB is based on COM
• OLE DB defines an open and extensible set of OLE interfaces
• OLE DB provides uniform access to tabular data, not limited to
RDB’s
• Rowset Interface and optional Command Interface
• OLE DB is the native communication technology for
MS SQL Server 7
• Via OLE DB, MS SQL Server 7 can link foreign tables, as MS Access
can do for ODBC data sources
• Less sophisticated data applications (non SQL) can become data
providers
e.g. Spreadsheets. E-Mail, Directory Services..
CONNECTIVITY
Spread-
sheet
ODBC
SQL ISAM Spatial File
OLE DB
OLE DB
Cursor
Engine
Dist. Query
Engine
Rel. Query
Engine
Active X Data Objects (ADO)
Application or Tool
Consumer
Services
Data
Providers
COM
/
DCOM
Microsoft
Transaction
Server
PI-OLEDB PROTOTYPE
ONE OF MANY POSSIBLE IMPLEMENTATIONS
• One can think of many ways to implement a PI- OLEDB driver
• We have chosen to build the prototype on top of PI-SDK
• This complements PI-API and PI-ODBC functionality
• PI-SDK functionality is available for non-programmers
• PI-SDK uses the same technology, COM
PI Server
Real Time Data
NT, UNIX, VMS
PI-SDK
PI-OLEDB
PI-SDK
PI-OLEDB
FUNCTIONALITY OF PI-OLEDB PROTOTYPE
• Major PI Configuration Data is made available via catalogs
(databases)
• PIPOINT - all configured pointclasses appear as tables
• PIDS - all digital state tables, that are configured in PI, are tables
• PIUSER - one table that contains PI users defined
• PIGROUP - one table per group
• SQL Language supported via Command Interface
• CREATE and DROP tables
• UPDATE, INSERT, SELECT, DELETE
”SELECT * FROM PIPOINT:CLASSIC”
• Support for WHERE clause
“… WHERE TAG=’x*’ AND ARCHIVING=1 OR SCAN=0”
• Support for ORDER BY
SELECT * FROM CLASSIC ORDER BY CREATIONDATE DESC
BIG VARIETY OF ODBC CLIENTS CAN BE USED
• An ODBC Gateway makes OLE DB available for ODBC Clients
• We have successfully tested ISG Navigator
PI Server
Real Time Data
NT, UNIX, VMS
PI-SDK
PI-OLEDB
ODBC Gateway
(ISG Navigator)
ODBC Driver Manager
Client Applications
MS Access, MS Query,
Other ODBC Clients
SQL Calls
MS QUERY VIA ISG NAVIGATOR
PI-OLEDB and ADO
• ADO (ActiveX Data Objects ) is a programming interface that wraps
the OLE DB API
• ADO is easier to use than OLE DB, since more compact and fewer
objects
• ADO especially made for the VB/VBA environment
• Several Data Binding Controls allow data access without
programming
• Controls that encapsulate database queries and returned rowsets
are for example:
MS ADO DC, Apex True DataControl
• Data aware Grid Controls that bind to data controls are for example:
MS DataGrid Control, Apex True DBGrid Control
PI-OLEDB and Data Controls
• ADO DC + DataGrid Control + 3 Lines VBA = PI User Admin
• SnapIn for Microsoft Management Console (MMC)
LIMITATIONS OF PI-OLEDB PROTOTYPE
• Only configuration data (PI-SDK)
• Not for PI2 Systems (yet)
• SELECT … WHERE clause limited to specify fields which are
supported by PI-SDK query
• Command interface supports basic SQL, but no JOIN, UNION,...
and no Functions
• Performance slower than PI-ODBC
• Rewrite to use PI-SQLSS
Enhancements required for PI-SQLSS and PI-SDK
• Support for PI Module DB and PI Data Archive
• Performance optimisation
• Free-threaded version (linked tables for MS SQL Server 7)
• Next level SQL language
FUTURE DEVELOPMENT OF PI-OLEDB
PI-API
PI-ProcessBOOK &
PI-PC DATALINK
(EXCEL, LOTUS 123)
RDBMS ODBC
RDBMS NET
PI-ODBC
PI-OLE DB
OTHER PC TOOLS
(POWER BUILDER, ACCESS,
VISUAL BASIC, Q+E, EXCEL,…)
RDBMS ODBC
RDBMS NET
ActiveX
RDBMS NET
RELATIONAL DATABASE
(RDBMS)
NON REAL-TIME DATA
PRODUCT, EQUIPMENT,
SPECIFICATION, SAFETY, ETC.
PI SERVER
PI SYSTEM
REAL-TIME DATA
MANUAL / PROCESS /
CALCULATED
RDBMS
INTERFACE
ODBC
OLE DB
COM
CONNECTOR
MANUAL / LAB
INPUTS
AUTOMATIC SCANNED DATA
TEXT / DATA / CONFIG
PI RDBMS INTERFACE
PI RDBMS INTERFACE STRUCTURE
• Interface runs on Windows NT / 2000
• Works for ANY Relational Database
which has an ODBC driver
• Tested by OSI explicitly:
MS SQL Server 6.5/7, Oracle 7.1/8,
Oracle RDB 6.1, MS Access 95/97,
dBase III/IV
PI-API
RDBMS
INTERFACE
RDBMS ODBC
RDBMS NET
RDBMS NET
RELATIONAL DATABASE
(RDBMS)
NON REAL-TIME DATA
PRODUCT, EQUIPMENT,
SPECIFICATION, SAFETY, ETC.
PI SERVER
PI SYSTEM
REAL-TIME DATA
MANUAL / PROCESS /
CALCULATED
ODBC
OLE DB
• Query data (read) for single tag, tag groups and distributed tags
• Query one value or time series per scan
• Scan or Event based SELECT queries (PI Input)
• Event based UPDATE, DELETE and INSERT queries (PI Output)
• Support multiple statements per query and Stored Procedures
• Support of ‘runtime’ placeholders
• Support of classic ‘point attribute’ placeholders
• Support of ‘batch’ placeholders to replicate PI batch records
• Historize Tag Database changes in RDBMS tables
• Recovery for Output data after interface down
PI RDBMS INTERFACE FUNCTIONALITY
PI RDBMS INTERFACE
• Modify PI Tags via PI-OLEDB
• Historize changes automatically in RDBMS table
• Version 2.14 in Beta, bug fixes and DB2 tests
• Optional replacement of archive data
• Timezone handling when interface in different TZ than PI Server
• Version 3 development starts now
• Automate login configuration via connection dialog
• Overcome 80 char limit of Extended Descriptor
• Support all pointclass attributes for placeholder AT.ATTRIBUTE
• Tag configuration and ODBC testtool
• Scan based output
• Output of aggregate data (piar_calculation instead of sourcetag)
PI RDBMS INTERFACE - NEXT DEVELOPMENT
PI AND RDBMS’s

More Related Content

Similar to PI-RDBMS.ppt

Te kslate sap bods
Te kslate sap bodsTe kslate sap bods
Te kslate sap bods
tekslate1
 
Integrate MongoDB & SQL data with a single REST API
Integrate MongoDB & SQL data with a single REST APIIntegrate MongoDB & SQL data with a single REST API
Integrate MongoDB & SQL data with a single REST API
Espresso Logic
 
OBIEE ARCHITECTURE.ppt
OBIEE ARCHITECTURE.pptOBIEE ARCHITECTURE.ppt
OBIEE ARCHITECTURE.ppt
Canara bank
 
BI 2008 Simple
BI 2008 SimpleBI 2008 Simple
BI 2008 Simple
llangit
 
Database and database Application interface
Database and database Application interfaceDatabase and database Application interface
Database and database Application interface
Mozamel Jawad
 
Oracle database connection with the .net developers
Oracle database connection with the .net developersOracle database connection with the .net developers
Oracle database connection with the .net developers
veerendramb3
 
Efficient working with Databases in LabVIEW - Sam Sharp (MediaMongrels Ltd) -...
Efficient working with Databases in LabVIEW - Sam Sharp (MediaMongrels Ltd) -...Efficient working with Databases in LabVIEW - Sam Sharp (MediaMongrels Ltd) -...
Efficient working with Databases in LabVIEW - Sam Sharp (MediaMongrels Ltd) -...
MediaMongrels Ltd
 
Serverless Analytics with Amazon Redshift Spectrum, AWS Glue, and Amazon Quic...
Serverless Analytics with Amazon Redshift Spectrum, AWS Glue, and Amazon Quic...Serverless Analytics with Amazon Redshift Spectrum, AWS Glue, and Amazon Quic...
Serverless Analytics with Amazon Redshift Spectrum, AWS Glue, and Amazon Quic...
Amazon Web Services
 
The Essentials of Building Cloud-Based Web Apps with Azure
The Essentials of Building Cloud-Based Web Apps with AzureThe Essentials of Building Cloud-Based Web Apps with Azure
The Essentials of Building Cloud-Based Web Apps with Azure
Ido Flatow
 
SAP BI/DW Training with BO Integration
SAP BI/DW Training with BO IntegrationSAP BI/DW Training with BO Integration
SAP BI/DW Training with BO Integration
mishra4927
 
Expanding with EDB Postgres Advanced Server 9.5
Expanding with EDB Postgres Advanced Server 9.5Expanding with EDB Postgres Advanced Server 9.5
Expanding with EDB Postgres Advanced Server 9.5
EDB
 
Ibi Open Visualizations
Ibi Open VisualizationsIbi Open Visualizations
Ibi Open Visualizations
Clif Kranish
 
Denodo Partner Connect: Technical Webinar - Ask Me Anything
Denodo Partner Connect: Technical Webinar - Ask Me AnythingDenodo Partner Connect: Technical Webinar - Ask Me Anything
Denodo Partner Connect: Technical Webinar - Ask Me Anything
Denodo
 
BI in the Cloud - Microsoft Power BI Overview and Demo
BI in the Cloud - Microsoft Power BI Overview and DemoBI in the Cloud - Microsoft Power BI Overview and Demo
BI in the Cloud - Microsoft Power BI Overview and Demo
Christopher Foot
 
DocumentDB - NoSQL on Cloud at Reboot2015
DocumentDB - NoSQL on Cloud at Reboot2015DocumentDB - NoSQL on Cloud at Reboot2015
DocumentDB - NoSQL on Cloud at Reboot2015
Vidyasagar Machupalli
 
Mtn view sql server nov 2014
Mtn view sql server nov 2014Mtn view sql server nov 2014
Mtn view sql server nov 2014
EspressoLogic
 
What's New in Oracle BI for Developers
What's New in Oracle BI for DevelopersWhat's New in Oracle BI for Developers
What's New in Oracle BI for Developers
Datavail
 
Social Photos - My presentation at Microsoft Tech Day
Social Photos - My presentation at Microsoft Tech DaySocial Photos - My presentation at Microsoft Tech Day
Social Photos - My presentation at Microsoft Tech Day
TechMaster Vietnam
 
Icinga 2009 at OSMC
Icinga 2009 at OSMCIcinga 2009 at OSMC
Icinga 2009 at OSMC
Icinga
 
Deploying Full BI Platforms to Oracle Cloud
Deploying Full BI Platforms to Oracle CloudDeploying Full BI Platforms to Oracle Cloud
Deploying Full BI Platforms to Oracle Cloud
Mark Rittman
 

Similar to PI-RDBMS.ppt (20)

Te kslate sap bods
Te kslate sap bodsTe kslate sap bods
Te kslate sap bods
 
Integrate MongoDB & SQL data with a single REST API
Integrate MongoDB & SQL data with a single REST APIIntegrate MongoDB & SQL data with a single REST API
Integrate MongoDB & SQL data with a single REST API
 
OBIEE ARCHITECTURE.ppt
OBIEE ARCHITECTURE.pptOBIEE ARCHITECTURE.ppt
OBIEE ARCHITECTURE.ppt
 
BI 2008 Simple
BI 2008 SimpleBI 2008 Simple
BI 2008 Simple
 
Database and database Application interface
Database and database Application interfaceDatabase and database Application interface
Database and database Application interface
 
Oracle database connection with the .net developers
Oracle database connection with the .net developersOracle database connection with the .net developers
Oracle database connection with the .net developers
 
Efficient working with Databases in LabVIEW - Sam Sharp (MediaMongrels Ltd) -...
Efficient working with Databases in LabVIEW - Sam Sharp (MediaMongrels Ltd) -...Efficient working with Databases in LabVIEW - Sam Sharp (MediaMongrels Ltd) -...
Efficient working with Databases in LabVIEW - Sam Sharp (MediaMongrels Ltd) -...
 
Serverless Analytics with Amazon Redshift Spectrum, AWS Glue, and Amazon Quic...
Serverless Analytics with Amazon Redshift Spectrum, AWS Glue, and Amazon Quic...Serverless Analytics with Amazon Redshift Spectrum, AWS Glue, and Amazon Quic...
Serverless Analytics with Amazon Redshift Spectrum, AWS Glue, and Amazon Quic...
 
The Essentials of Building Cloud-Based Web Apps with Azure
The Essentials of Building Cloud-Based Web Apps with AzureThe Essentials of Building Cloud-Based Web Apps with Azure
The Essentials of Building Cloud-Based Web Apps with Azure
 
SAP BI/DW Training with BO Integration
SAP BI/DW Training with BO IntegrationSAP BI/DW Training with BO Integration
SAP BI/DW Training with BO Integration
 
Expanding with EDB Postgres Advanced Server 9.5
Expanding with EDB Postgres Advanced Server 9.5Expanding with EDB Postgres Advanced Server 9.5
Expanding with EDB Postgres Advanced Server 9.5
 
Ibi Open Visualizations
Ibi Open VisualizationsIbi Open Visualizations
Ibi Open Visualizations
 
Denodo Partner Connect: Technical Webinar - Ask Me Anything
Denodo Partner Connect: Technical Webinar - Ask Me AnythingDenodo Partner Connect: Technical Webinar - Ask Me Anything
Denodo Partner Connect: Technical Webinar - Ask Me Anything
 
BI in the Cloud - Microsoft Power BI Overview and Demo
BI in the Cloud - Microsoft Power BI Overview and DemoBI in the Cloud - Microsoft Power BI Overview and Demo
BI in the Cloud - Microsoft Power BI Overview and Demo
 
DocumentDB - NoSQL on Cloud at Reboot2015
DocumentDB - NoSQL on Cloud at Reboot2015DocumentDB - NoSQL on Cloud at Reboot2015
DocumentDB - NoSQL on Cloud at Reboot2015
 
Mtn view sql server nov 2014
Mtn view sql server nov 2014Mtn view sql server nov 2014
Mtn view sql server nov 2014
 
What's New in Oracle BI for Developers
What's New in Oracle BI for DevelopersWhat's New in Oracle BI for Developers
What's New in Oracle BI for Developers
 
Social Photos - My presentation at Microsoft Tech Day
Social Photos - My presentation at Microsoft Tech DaySocial Photos - My presentation at Microsoft Tech Day
Social Photos - My presentation at Microsoft Tech Day
 
Icinga 2009 at OSMC
Icinga 2009 at OSMCIcinga 2009 at OSMC
Icinga 2009 at OSMC
 
Deploying Full BI Platforms to Oracle Cloud
Deploying Full BI Platforms to Oracle CloudDeploying Full BI Platforms to Oracle Cloud
Deploying Full BI Platforms to Oracle Cloud
 

More from Ajay Gangakhedkar

Schneider - Smarter Infra for O&G.pptx
Schneider - Smarter Infra for O&G.pptxSchneider - Smarter Infra for O&G.pptx
Schneider - Smarter Infra for O&G.pptx
Ajay Gangakhedkar
 
Strategic Alignment.pptx
Strategic Alignment.pptxStrategic Alignment.pptx
Strategic Alignment.pptx
Ajay Gangakhedkar
 
RAPID Decision Making.pptx
RAPID Decision Making.pptxRAPID Decision Making.pptx
RAPID Decision Making.pptx
Ajay Gangakhedkar
 
A Fresh Look at the Microsoft Integration Landscape.pptx
A Fresh Look at the Microsoft Integration Landscape.pptxA Fresh Look at the Microsoft Integration Landscape.pptx
A Fresh Look at the Microsoft Integration Landscape.pptx
Ajay Gangakhedkar
 
Template - Business Benchmarking.pptx
Template - Business Benchmarking.pptxTemplate - Business Benchmarking.pptx
Template - Business Benchmarking.pptx
Ajay Gangakhedkar
 
RACI Team Roles Responsibilities.pptx
RACI Team Roles Responsibilities.pptxRACI Team Roles Responsibilities.pptx
RACI Team Roles Responsibilities.pptx
Ajay Gangakhedkar
 
Template - Consulting Framework.pptx
Template - Consulting Framework.pptxTemplate - Consulting Framework.pptx
Template - Consulting Framework.pptx
Ajay Gangakhedkar
 
Career Options.pptx
Career Options.pptxCareer Options.pptx
Career Options.pptx
Ajay Gangakhedkar
 
ProServe-Oil_Gas.ppt
ProServe-Oil_Gas.pptProServe-Oil_Gas.ppt
ProServe-Oil_Gas.ppt
Ajay Gangakhedkar
 
Textile - Excellence in Mfg. Through Automation.ppt
Textile - Excellence in Mfg. Through Automation.pptTextile - Excellence in Mfg. Through Automation.ppt
Textile - Excellence in Mfg. Through Automation.ppt
Ajay Gangakhedkar
 
Video Marketing.pptx
Video Marketing.pptxVideo Marketing.pptx
Video Marketing.pptx
Ajay Gangakhedkar
 
post-implement_advice.pptx
post-implement_advice.pptxpost-implement_advice.pptx
post-implement_advice.pptx
Ajay Gangakhedkar
 
McKinsey Proposal in Support of the - 2008-09 Presidential Transition.pptx
McKinsey Proposal in Support of the - 2008-09 Presidential Transition.pptxMcKinsey Proposal in Support of the - 2008-09 Presidential Transition.pptx
McKinsey Proposal in Support of the - 2008-09 Presidential Transition.pptx
Ajay Gangakhedkar
 
Blue Ocean Strategy - 1.pptx
Blue Ocean Strategy - 1.pptxBlue Ocean Strategy - 1.pptx
Blue Ocean Strategy - 1.pptx
Ajay Gangakhedkar
 
Portfolio Analysis - BCG Matrix, GEMckinsey Matrix.pptx
Portfolio Analysis -  BCG Matrix, GEMckinsey Matrix.pptxPortfolio Analysis -  BCG Matrix, GEMckinsey Matrix.pptx
Portfolio Analysis - BCG Matrix, GEMckinsey Matrix.pptx
Ajay Gangakhedkar
 
Planning Icons.pptx
Planning Icons.pptxPlanning Icons.pptx
Planning Icons.pptx
Ajay Gangakhedkar
 
Outsourcing Best Practices.pptx
Outsourcing Best Practices.pptxOutsourcing Best Practices.pptx
Outsourcing Best Practices.pptx
Ajay Gangakhedkar
 
Compare Two Products.pptx
Compare Two Products.pptxCompare Two Products.pptx
Compare Two Products.pptx
Ajay Gangakhedkar
 
Strategy Models.ppt
Strategy Models.pptStrategy Models.ppt
Strategy Models.ppt
Ajay Gangakhedkar
 
Documentation system.pptx
Documentation system.pptxDocumentation system.pptx
Documentation system.pptx
Ajay Gangakhedkar
 

More from Ajay Gangakhedkar (20)

Schneider - Smarter Infra for O&G.pptx
Schneider - Smarter Infra for O&G.pptxSchneider - Smarter Infra for O&G.pptx
Schneider - Smarter Infra for O&G.pptx
 
Strategic Alignment.pptx
Strategic Alignment.pptxStrategic Alignment.pptx
Strategic Alignment.pptx
 
RAPID Decision Making.pptx
RAPID Decision Making.pptxRAPID Decision Making.pptx
RAPID Decision Making.pptx
 
A Fresh Look at the Microsoft Integration Landscape.pptx
A Fresh Look at the Microsoft Integration Landscape.pptxA Fresh Look at the Microsoft Integration Landscape.pptx
A Fresh Look at the Microsoft Integration Landscape.pptx
 
Template - Business Benchmarking.pptx
Template - Business Benchmarking.pptxTemplate - Business Benchmarking.pptx
Template - Business Benchmarking.pptx
 
RACI Team Roles Responsibilities.pptx
RACI Team Roles Responsibilities.pptxRACI Team Roles Responsibilities.pptx
RACI Team Roles Responsibilities.pptx
 
Template - Consulting Framework.pptx
Template - Consulting Framework.pptxTemplate - Consulting Framework.pptx
Template - Consulting Framework.pptx
 
Career Options.pptx
Career Options.pptxCareer Options.pptx
Career Options.pptx
 
ProServe-Oil_Gas.ppt
ProServe-Oil_Gas.pptProServe-Oil_Gas.ppt
ProServe-Oil_Gas.ppt
 
Textile - Excellence in Mfg. Through Automation.ppt
Textile - Excellence in Mfg. Through Automation.pptTextile - Excellence in Mfg. Through Automation.ppt
Textile - Excellence in Mfg. Through Automation.ppt
 
Video Marketing.pptx
Video Marketing.pptxVideo Marketing.pptx
Video Marketing.pptx
 
post-implement_advice.pptx
post-implement_advice.pptxpost-implement_advice.pptx
post-implement_advice.pptx
 
McKinsey Proposal in Support of the - 2008-09 Presidential Transition.pptx
McKinsey Proposal in Support of the - 2008-09 Presidential Transition.pptxMcKinsey Proposal in Support of the - 2008-09 Presidential Transition.pptx
McKinsey Proposal in Support of the - 2008-09 Presidential Transition.pptx
 
Blue Ocean Strategy - 1.pptx
Blue Ocean Strategy - 1.pptxBlue Ocean Strategy - 1.pptx
Blue Ocean Strategy - 1.pptx
 
Portfolio Analysis - BCG Matrix, GEMckinsey Matrix.pptx
Portfolio Analysis -  BCG Matrix, GEMckinsey Matrix.pptxPortfolio Analysis -  BCG Matrix, GEMckinsey Matrix.pptx
Portfolio Analysis - BCG Matrix, GEMckinsey Matrix.pptx
 
Planning Icons.pptx
Planning Icons.pptxPlanning Icons.pptx
Planning Icons.pptx
 
Outsourcing Best Practices.pptx
Outsourcing Best Practices.pptxOutsourcing Best Practices.pptx
Outsourcing Best Practices.pptx
 
Compare Two Products.pptx
Compare Two Products.pptxCompare Two Products.pptx
Compare Two Products.pptx
 
Strategy Models.ppt
Strategy Models.pptStrategy Models.ppt
Strategy Models.ppt
 
Documentation system.pptx
Documentation system.pptxDocumentation system.pptx
Documentation system.pptx
 

Recently uploaded

Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
Nada Hikmah
 
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURSCompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
RamonNovais6
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
171ticu
 
Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
Divyanshu
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
cnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classicationcnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classication
SakkaravarthiShanmug
 
Hematology Analyzer Machine - Complete Blood Count
Hematology Analyzer Machine - Complete Blood CountHematology Analyzer Machine - Complete Blood Count
Hematology Analyzer Machine - Complete Blood Count
shahdabdulbaset
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
Yasser Mahgoub
 
Seminar on Distillation study-mafia.pptx
Seminar on Distillation study-mafia.pptxSeminar on Distillation study-mafia.pptx
Seminar on Distillation study-mafia.pptx
Madan Karki
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
jpsjournal1
 
Software Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.pptSoftware Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.ppt
TaghreedAltamimi
 
Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...
Prakhyath Rai
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
21UME003TUSHARDEB
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
171ticu
 
john krisinger-the science and history of the alcoholic beverage.pptx
john krisinger-the science and history of the alcoholic beverage.pptxjohn krisinger-the science and history of the alcoholic beverage.pptx
john krisinger-the science and history of the alcoholic beverage.pptx
Madan Karki
 
Introduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptxIntroduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptx
MiscAnnoy1
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
Welding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdfWelding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdf
AjmalKhan50578
 

Recently uploaded (20)

Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
 
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURSCompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
 
Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
cnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classicationcnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classication
 
Hematology Analyzer Machine - Complete Blood Count
Hematology Analyzer Machine - Complete Blood CountHematology Analyzer Machine - Complete Blood Count
Hematology Analyzer Machine - Complete Blood Count
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
 
Seminar on Distillation study-mafia.pptx
Seminar on Distillation study-mafia.pptxSeminar on Distillation study-mafia.pptx
Seminar on Distillation study-mafia.pptx
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
 
Software Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.pptSoftware Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.ppt
 
Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
 
john krisinger-the science and history of the alcoholic beverage.pptx
john krisinger-the science and history of the alcoholic beverage.pptxjohn krisinger-the science and history of the alcoholic beverage.pptx
john krisinger-the science and history of the alcoholic beverage.pptx
 
Introduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptxIntroduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptx
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
Welding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdfWelding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdf
 

PI-RDBMS.ppt

  • 1. Interaction with Relational Databases Bodo Bachmann, Gregg Le Blanc
  • 2. PRESENTATION OVERVIEW • Available options to connect to RDBMS’s 5min • New version of PI-ODBC 5min, detailed list of new features, demo here or below, Gregg • From PI-ODBC via ADO/RDS to the Web 10min, r/w example showing support of new data types and UPDATE/INSERT, Gregg • PI-OLEDB prototype 10min, demo MMC snap-in, PB DataControl/DataGrid, Bodo • PI RDBMS Interface 10min, demo point configuration log, edit Tags via MS Query, log in Access, Bodo • Questions 5min
  • 3. PI-API PI-ProcessBOOK & PI-PC DATALINK (EXCEL, LOTUS 123) RDBMS ODBC RDBMS NET PI-ODBC PI-OLE DB OTHER PC TOOLS (POWER BUILDER, ACCESS, VISUAL BASIC, Q+E, EXCEL,…) RDBMS ODBC RDBMS NET ActiveX RDBMS NET RELATIONAL DATABASE (RDBMS) NON REAL-TIME DATA PRODUCT, EQUIPMENT, SPECIFICATION, SAFETY, ETC. PI SERVER PI SYSTEM REAL-TIME DATA MANUAL / PROCESS / CALCULATED RDBMS INTERFACE ODBC OLE DB COM CONNECTOR MANUAL / LAB INPUTS AUTOMATIC SCANNED DATA TEXT / DATA / CONFIG MANY OPTIONS...
  • 4. ProcessBook and RDBMS’s • Embedded ODBC support (DataSet) • ActiveX Data Controls • ADO via VBA • Other Libraries via VBA (OLE DB, RDS,...) • Special developped ProcessBook AddIn • PI-UDA Tags via OLE DB Com Connector PI-API PI-ProcessBOOK RDBMS ODBC RDBMS NET ODBC OLE DB
  • 5. • Present PI Data as it would be a RDBMS • Link PI tables into MS Access and use MS Access as Report Writer • Use OLE DB Gateway and link into MS SQL Server 7 • Use ODBC Clients for Data Analysis,... • New Version PI-ODBC 1.1.8: •Support PI3 data types and milliseconds •Read/Write access for data archive PI-ODBC PI-ODBC OTHER PC TOOLS (POWER BUILDER, ACCESS, VISUAL BASIC, Q+E, EXCEL,…) RDBMS ODBC RDBMS NET
  • 6. PI-ODBC and You Gaining Wealth and Wisdom Through PI-ODBC and the Web
  • 7. ADO and Recordsets • ActiveX data objects (ADO) • Use ADO to: – Create connections – Execute queries – Populate Recordsets • Use Recordsets to: – Present data – Manipulate query results
  • 8. Serving Data Using ASP’s • Use IIS and Active Server Pages – Written in HTML and VBScript – Database access is on server side • Install PI-ODBC on web server • Configure and name system DSN
  • 9. Grabbing Data • Open the connection & recordset: – Set Conn = Server.CreateObject(“ADODB.Connection”) – Conn.Open “PI” – Set Rs = CreateObject(“ADODB.RecordSet”) – Set Rs = Conn.Execute(strQry) • Retrieve Values: SELECT Time, currentstat=DIGSTRING(status), Value, Tag FROM picomp WHERE Tag = “Sinusoid” AND Time >= DATE(“17-Mar-00 11:00”); • Input Values: INSERT INTO picomp (tag, time, value) VALUES (“Sinusoid”, “*”, 42);
  • 10. Applications • Lab data entry. • Query PI data via a web site. • An example: – Uses any web browser. – Uses standard web building tools. – Does not compromise security. – All processing done on server side. • Display recordset contents: <%=Rs(“value”)%>.
  • 11. Demonstration • Sample lab data entry page. – Regular tags. – String tags. • Uses standard HTML forms. • VBScript uses common operations: – Do… Loop – If… Then – ADO etc.
  • 12. Summary • Use IIS and PI-ODBC to make simple pages that use PI data. • Results are browser independent. • Can be effective as a lab entry terminal. • PI-ODBC now supports string tags.
  • 13. OLE DB - THE NEXT ODBC GENERATION • OLE DB is based on COM • OLE DB defines an open and extensible set of OLE interfaces • OLE DB provides uniform access to tabular data, not limited to RDB’s • Rowset Interface and optional Command Interface • OLE DB is the native communication technology for MS SQL Server 7 • Via OLE DB, MS SQL Server 7 can link foreign tables, as MS Access can do for ODBC data sources • Less sophisticated data applications (non SQL) can become data providers e.g. Spreadsheets. E-Mail, Directory Services..
  • 14. CONNECTIVITY Spread- sheet ODBC SQL ISAM Spatial File OLE DB OLE DB Cursor Engine Dist. Query Engine Rel. Query Engine Active X Data Objects (ADO) Application or Tool Consumer Services Data Providers COM / DCOM Microsoft Transaction Server
  • 15. PI-OLEDB PROTOTYPE ONE OF MANY POSSIBLE IMPLEMENTATIONS • One can think of many ways to implement a PI- OLEDB driver • We have chosen to build the prototype on top of PI-SDK • This complements PI-API and PI-ODBC functionality • PI-SDK functionality is available for non-programmers • PI-SDK uses the same technology, COM PI Server Real Time Data NT, UNIX, VMS PI-SDK PI-OLEDB PI-SDK PI-OLEDB
  • 16. FUNCTIONALITY OF PI-OLEDB PROTOTYPE • Major PI Configuration Data is made available via catalogs (databases) • PIPOINT - all configured pointclasses appear as tables • PIDS - all digital state tables, that are configured in PI, are tables • PIUSER - one table that contains PI users defined • PIGROUP - one table per group • SQL Language supported via Command Interface • CREATE and DROP tables • UPDATE, INSERT, SELECT, DELETE ”SELECT * FROM PIPOINT:CLASSIC” • Support for WHERE clause “… WHERE TAG=’x*’ AND ARCHIVING=1 OR SCAN=0” • Support for ORDER BY SELECT * FROM CLASSIC ORDER BY CREATIONDATE DESC
  • 17. BIG VARIETY OF ODBC CLIENTS CAN BE USED • An ODBC Gateway makes OLE DB available for ODBC Clients • We have successfully tested ISG Navigator PI Server Real Time Data NT, UNIX, VMS PI-SDK PI-OLEDB ODBC Gateway (ISG Navigator) ODBC Driver Manager Client Applications MS Access, MS Query, Other ODBC Clients SQL Calls
  • 18. MS QUERY VIA ISG NAVIGATOR
  • 19. PI-OLEDB and ADO • ADO (ActiveX Data Objects ) is a programming interface that wraps the OLE DB API • ADO is easier to use than OLE DB, since more compact and fewer objects • ADO especially made for the VB/VBA environment • Several Data Binding Controls allow data access without programming • Controls that encapsulate database queries and returned rowsets are for example: MS ADO DC, Apex True DataControl • Data aware Grid Controls that bind to data controls are for example: MS DataGrid Control, Apex True DBGrid Control
  • 20. PI-OLEDB and Data Controls • ADO DC + DataGrid Control + 3 Lines VBA = PI User Admin • SnapIn for Microsoft Management Console (MMC)
  • 21. LIMITATIONS OF PI-OLEDB PROTOTYPE • Only configuration data (PI-SDK) • Not for PI2 Systems (yet) • SELECT … WHERE clause limited to specify fields which are supported by PI-SDK query • Command interface supports basic SQL, but no JOIN, UNION,... and no Functions • Performance slower than PI-ODBC
  • 22. • Rewrite to use PI-SQLSS Enhancements required for PI-SQLSS and PI-SDK • Support for PI Module DB and PI Data Archive • Performance optimisation • Free-threaded version (linked tables for MS SQL Server 7) • Next level SQL language FUTURE DEVELOPMENT OF PI-OLEDB
  • 23. PI-API PI-ProcessBOOK & PI-PC DATALINK (EXCEL, LOTUS 123) RDBMS ODBC RDBMS NET PI-ODBC PI-OLE DB OTHER PC TOOLS (POWER BUILDER, ACCESS, VISUAL BASIC, Q+E, EXCEL,…) RDBMS ODBC RDBMS NET ActiveX RDBMS NET RELATIONAL DATABASE (RDBMS) NON REAL-TIME DATA PRODUCT, EQUIPMENT, SPECIFICATION, SAFETY, ETC. PI SERVER PI SYSTEM REAL-TIME DATA MANUAL / PROCESS / CALCULATED RDBMS INTERFACE ODBC OLE DB COM CONNECTOR MANUAL / LAB INPUTS AUTOMATIC SCANNED DATA TEXT / DATA / CONFIG PI RDBMS INTERFACE
  • 24. PI RDBMS INTERFACE STRUCTURE • Interface runs on Windows NT / 2000 • Works for ANY Relational Database which has an ODBC driver • Tested by OSI explicitly: MS SQL Server 6.5/7, Oracle 7.1/8, Oracle RDB 6.1, MS Access 95/97, dBase III/IV PI-API RDBMS INTERFACE RDBMS ODBC RDBMS NET RDBMS NET RELATIONAL DATABASE (RDBMS) NON REAL-TIME DATA PRODUCT, EQUIPMENT, SPECIFICATION, SAFETY, ETC. PI SERVER PI SYSTEM REAL-TIME DATA MANUAL / PROCESS / CALCULATED ODBC OLE DB
  • 25. • Query data (read) for single tag, tag groups and distributed tags • Query one value or time series per scan • Scan or Event based SELECT queries (PI Input) • Event based UPDATE, DELETE and INSERT queries (PI Output) • Support multiple statements per query and Stored Procedures • Support of ‘runtime’ placeholders • Support of classic ‘point attribute’ placeholders • Support of ‘batch’ placeholders to replicate PI batch records • Historize Tag Database changes in RDBMS tables • Recovery for Output data after interface down PI RDBMS INTERFACE FUNCTIONALITY
  • 26. PI RDBMS INTERFACE • Modify PI Tags via PI-OLEDB • Historize changes automatically in RDBMS table
  • 27. • Version 2.14 in Beta, bug fixes and DB2 tests • Optional replacement of archive data • Timezone handling when interface in different TZ than PI Server • Version 3 development starts now • Automate login configuration via connection dialog • Overcome 80 char limit of Extended Descriptor • Support all pointclass attributes for placeholder AT.ATTRIBUTE • Tag configuration and ODBC testtool • Scan based output • Output of aggregate data (piar_calculation instead of sourcetag) PI RDBMS INTERFACE - NEXT DEVELOPMENT