SlideShare a Scribd company logo
1 of 28
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 bodstekslate1
 
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 APIEspresso Logic
 
OBIEE ARCHITECTURE.ppt
OBIEE ARCHITECTURE.pptOBIEE ARCHITECTURE.ppt
OBIEE ARCHITECTURE.pptCanara bank
 
BI 2008 Simple
BI 2008 SimpleBI 2008 Simple
BI 2008 Simplellangit
 
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 developersveerendramb3
 
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 AzureIdo 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 Integrationmishra4927
 
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.5EDB
 
Ibi Open Visualizations
Ibi Open VisualizationsIbi Open Visualizations
Ibi Open VisualizationsClif 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 AnythingDenodo
 
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 DemoChristopher Foot
 
DocumentDB - NoSQL on Cloud at Reboot2015
DocumentDB - NoSQL on Cloud at Reboot2015DocumentDB - NoSQL on Cloud at Reboot2015
DocumentDB - NoSQL on Cloud at Reboot2015Vidyasagar Machupalli
 
Mtn view sql server nov 2014
Mtn view sql server nov 2014Mtn view sql server nov 2014
Mtn view sql server nov 2014EspressoLogic
 
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 DevelopersDatavail
 
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 DayTechMaster Vietnam
 
Icinga 2009 at OSMC
Icinga 2009 at OSMCIcinga 2009 at OSMC
Icinga 2009 at OSMCIcinga
 
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 CloudMark Rittman
 
Azure Data platform
Azure Data platformAzure Data platform
Azure Data platformMostafa
 

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
 
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
 
Azure Data platform
Azure Data platformAzure Data platform
Azure Data platform
 

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.pptxAjay 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.pptxAjay Gangakhedkar
 
Template - Business Benchmarking.pptx
Template - Business Benchmarking.pptxTemplate - Business Benchmarking.pptx
Template - Business Benchmarking.pptxAjay Gangakhedkar
 
RACI Team Roles Responsibilities.pptx
RACI Team Roles Responsibilities.pptxRACI Team Roles Responsibilities.pptx
RACI Team Roles Responsibilities.pptxAjay Gangakhedkar
 
Template - Consulting Framework.pptx
Template - Consulting Framework.pptxTemplate - Consulting Framework.pptx
Template - Consulting Framework.pptxAjay 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.pptAjay 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.pptxAjay Gangakhedkar
 
Blue Ocean Strategy - 1.pptx
Blue Ocean Strategy - 1.pptxBlue Ocean Strategy - 1.pptx
Blue Ocean Strategy - 1.pptxAjay 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.pptxAjay Gangakhedkar
 
Outsourcing Best Practices.pptx
Outsourcing Best Practices.pptxOutsourcing Best Practices.pptx
Outsourcing Best Practices.pptxAjay 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

UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 

Recently uploaded (20)

UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 

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