DB-1: OpenEdge ® SQL in a 10.1B multi- database environment for ODBC and JDBC Brian Werne Sr. Engineering Manager, OpenEdge SQL and OpenEdge Management.

Slides:



Advertisements
Similar presentations
B6: Beginners Guide to OpenEdge® SQL via ODBC or JDBC
Advertisements

Getting Started With Progress SQL-92
DEV-2: Getting Started with OpenEdge® Architect – Part I
Progress Rollbase for OpenEdge Developers Introduction & Overview April 2014.
Progress OpenEdge BPM: An Application Revolution Demonstration OpenEdge 11.0 and Savvion 8.0 Shelley Chase, Software Architect, OpenEdge.
Advantage Data Dictionary. agenda Creating and Managing Data Dictionaries –Tables, Indexes, Fields, and Triggers –Defining Referential Integrity –Defining.
DT228/3 Web Development Databases. Database Almost all web application on the net access a database e.g. shopping sites, message boards, search engines.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 10: Server Administration.
DEV-14: Understanding and Programming for the AppServer™
MOVE-4: Upgrading Your Database to OpenEdge® 10 Gus Björklund Wizard, Vice President Technology.
Phil Brewster  One of the first steps – identify the proper data types  Decide how data (in columns) should be stored and used.
CVSQL 2 The Design. System Overview System Components CVSQL Server –Three network interfaces –Modular data source provider framework –Decoupled SQL parsing.
Distributed Databases Dr. Lee By Alex Genadinik. Distributed Databases? What is that!?? Distributed Database - a collection of multiple logically interrelated.
Database Management System Lecture 2 Introduction to Database management.
OPS-17: Utilizing Firewalls - In the Reign of Fire
DB-19: OpenEdge® Authentication Without the _User Table
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
DONE-10: Adminserver Survival Tips Brian Bowman Product Manager, Data Management Group.
Multiple Cases Access Utilities1 Access & ODBC Managing and Using ODBC Connections P.O. Box 6142 Laguna Niguel, CA
4 Copyright © 2009, Oracle. All rights reserved. Designing Mappings with the Oracle Data Integration Enterprise Edition License.
COMP-10: OpenEdge ® Management & Replication – Divide et impera! Cyril Gleiman & Libor Laubacher Principal Technical Support Engineers.
CIS 270—Application Development II Chapter 25—Accessing Databases with JDBC.
Chapter 4 The Relational Model 3: Advanced Topics Concepts of Database Management Seventh Edition.
2. Database System Concepts and Architecture
DB-2: OpenEdge® Replication: How to get Home in Time … Brian Bowman Sr. Solutions Engineer Sandy Caiado Sr. Solutions Engineer.
DEV-5: Introduction to WebSpeed ® Stephen Ferguson Sr. Training Program Manager.
OPS-6: Beginners Guide to OpenEdge ® SQL via ODBC or JDBC Brian Werne Sr. Engineering Manager OpenEdge SQL and OpenEdge Management.
Module 11: Programming Across Multiple Servers. Overview Introducing Distributed Queries Setting Up a Linked Server Environment Working with Linked Servers.
Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.1 © Copyright IBM Corporation 2008 DB2 9 Fundamentals.
Chapter 2: SQL – The Basics Objectives: 1.The SQL execution environment 2.SELECT statement 3.SQL Developer & SQL*Plus.
DEV-09: User Authentication in an OpenEdge™ 10.1 Distributed Computing Environment Michael Jacobs Development Architect.
DONE-08 Sizing and Performance Tuning N-Tier Applications Mike Furgal Performance Manager Progress Software
Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.1 © Copyright IBM Corporation 2008 DB2 9 Fundamentals.
OPS-15: What was Happening with My Database, AppServer ™, OS... Yesterday, Last Month, Last Year? Libor LaubacherRuanne Cluer Principal Tech Support Engineer.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
SOA-14: Deploying your SOA Application David Cleary Principal Software Engineer.
1 1 EPCC 2 Curtin Business School & Edinburgh University Management School Michael J. Jackson 1 Ashley D. Lloyd 2 Terence M. Sloan 1 Enabling Access to.
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
Crystal And Elliott Edward M. Kwang President. Objective A brief demo of Crystal Report to entice you –People spend thousand of dollars to attend Crystal.
A Brief Documentation.  Provides basic information about connection, server, and client.
COMP-1: OpenEdge® Management Overview and Demo Principal Technical Support Engineer Cyril E. Gleiman.
What’s new in OpenEdge 10.2B OpenEdge Management OpenEdge Replication
SONIC-3: Creating Large Scale Installations & Deployments Andrew S. Neumann Principal Engineer, Progress Sonic.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Search Overview Search Features: WSS and Office Search Architecture Content Sources and.
SONIC-3: Creating Large Scale Installations & Deployments Andrew S. Neumann Principal Engineer Progress Sonic.
COMP 321 Week 4. Overview Normalization Entity-Relationship Diagrams SQL JDBC/JDBC Drivers hsqldb Lab 4-1 Introduction.
Constraints Lesson 8. Skills Matrix Constraints Domain Integrity: A domain refers to a column in a table. Domain integrity includes data types, rules,
B4: DataServer Best Practices Revised & Revisited Noel Shannon Senior Solution Consultant.
Object storage and object interoperability
DEV-8: AppServer ™ Mode Case Studies Simon Epps Solutions Engineer.
A2: Making OpenEdge ® Architect Work For You Susan Houniet Senior Solution Consultant.
Copyright 2007, Information Builders. Slide 1 iWay Web Services and WebFOCUS Consumption Michael Florkowski Information Builders.
Advanced Database & Client Server Introduction to MS SQL Server 2000 and Transact SQL -
Physical Layer of a Repository. March 6, 2009 Agenda – What is a Repository? –What is meant by Physical Layer? –Data Source, Connection Pool, Tables and.
SQL Basics Review Reviewing what we’ve learned so far…….
E-commerce Architecture Ayşe Başar Bener. Client Server Architecture E-commerce is based on client/ server architecture –Client processes requesting service.
1 Copyright © 2008, Oracle. All rights reserved. Repository Basics.
16 Copyright © 2004, Oracle. All rights reserved. Testing the Migrated Oracle Database.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
2 Copyright © 2008, Oracle. All rights reserved. Building the Physical Layer of a Repository.
New mechanism to update the database schema for DB2 and Oracle databases IBM Workload Scheduler IBM.
Database: JDBC Overview
562: Power of Single Sign-On in OpenEdge
392-"JOIN" us on DataServers Journey
Data Virtualization Demoette… JDBC Clients
Database JDBC Overview CS Programming Languages for Web Applications
Efficiently Searching Schema in SQL Server
SharePoint Site Admin Training
Data Virtualization Tutorial: JSON_TABLE Queries
Database Management  .
Presentation transcript:

DB-1: OpenEdge ® SQL in a 10.1B multi- database environment for ODBC and JDBC Brian Werne Sr. Engineering Manager, OpenEdge SQL and OpenEdge Management

© 2007 Progress Software Corporation 2 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Objectives Answers for the following:  What is multi-database query?  What’s going on under the covers?  How do I manage the configuration?

© 2007 Progress Software Corporation 3 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Agenda  Overview of multi-database configurations  Connections and how they show up  Data access – single and multi-database  Management and planning

© 2007 Progress Software Corporation 4 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Multi-Database Query - client DB SQL Client Second DB Third DB DBNavigator - JDBC URL Crystal Reports – ODBC DSN Allow the ability to join tables in multiple databases ( cross database join) Customers Orders Inventory Join: customers from DB, Orders from SecondDB, Inventory from ThirdDB

© 2007 Progress Software Corporation 5 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC 10.1B Multi-Database Query - server OpenEdge SQL Server DB SQL Client Host Shmem Second DB Third DB Shmem DBNavigator - JDBC URL Shmem Crystal Reports – ODBC DSN Cross database join

© 2007 Progress Software Corporation 6 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC  Fields/Columns ( CustNum, CustName)  Table( Customer) - collection of columns  Schema ( PUB, bwerne) - collection of tables  Catalog (AuxCat1, mysports) - Alias for database Terminology

© 2007 Progress Software Corporation 7 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Multi-Database Query – Scope PUB schema PUB Customer Inventory bwerne Mysports AuxCat1

© 2007 Progress Software Corporation 8 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC  Three level naming convention  Example  Applies to schema, tables, columns, stored procedures 3 part naming – single database connection Three level naming (already have this) schema.table.column-name SELECT Pub.Customer.CustNum, Pub.Customer.Name, Pub.Order.OrderNum …

© 2007 Progress Software Corporation 9 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC  Four level naming convention  Example  Applies to schema, tables, columns, stored procedures 4 part naming – multi-database query Four level naming catalog.schema.table.column-name SELECT Pub.Customer.CustNum, SportsPrimary.Pub.Customer.Name, SportsAux1.Pub.Order.OrderNum …

© 2007 Progress Software Corporation 10 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC SELECT "Customer1"."CustNum", "Customer1"."Name", "Order1"."OrderDate", "Order1"."Ordernum", "OrderLine1"."Itemnum", "OrderLine1"."Qty", "OrderLine1"."OrderLineStatus" FROM ("AuxCat2"."PUB"."OrderLine" "OrderLine1" INNER JOIN "AuxCat1"."PUB"."Order" "Order1" ON "OrderLine1"."Ordernum"="Order1"."Ordernum") INNER JOIN "SPORTS2000"."PUB"."Customer" "Customer1" ON "Order1"."CustNum"="Customer1"."CustNum" ORDER BY "Customer1"."CustNum" Crystal Reports – cross database join Catalog

© 2007 Progress Software Corporation 11 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Single Database simple query OpenEdge SQL Server DB SQL Client Host Shmem DBNavigator - JDBC URL Crystal Reports – ODBC DSN

© 2007 Progress Software Corporation 12 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Multi-Database Support OpenEdge SQL Server DB Primary SQL Client Host Shmem Auxiliaries Second DB Third DB Read Only Shmem DBNavigator - JDBC URL Shmem Crystal Reports – ODBC DSN Define primary and auxiliary database

© 2007 Progress Software Corporation 13 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Agenda  Overview of multi-database configurations  Connections and how they show up  Data access – single and multi-database  Management and planning

© 2007 Progress Software Corporation 14 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Multi-database connections Two methods:  Explicit connections to auxiliary databases with CONNECT sql statement  “Automatic” connection model

© 2007 Progress Software Corporation 15 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Connecting to an Auxiliary Database  Catalog - an alias for a database  Connecting to an auxiliary database Must be on same host as Primary database  Disconnecting a catalog CONNECT ‘/usr/wrk/sports2000’ AS CATALOG mysports; DISCONNECT CATALOG mysports;

© 2007 Progress Software Corporation 16 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Auxiliary Database Details  Default catalog is the Primary database  Listing available, currently connected catalogs Syntax SET CATALOG mysports; SHOW CATALOGS ALL | { PRO_NAME | PRO_TYPE | PRO_STATUS }

© 2007 Progress Software Corporation 17 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Say What ?!?!  Some applications, like Crystal Reports, only allow you to issue SELECT statements  Can’t use the CONNECT statement: Now what?  Use automatic connections

© 2007 Progress Software Corporation 18 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Multi-Database : automatic connections Properties [config] OpenEdge SQL Server dbname[-mdbq:config] DB Primary SQL Client Host Shmem Auxiliaries Second DB Third DB Read Only Shmem DBNavigator - JDBC URL Crystal Reports – ODBC DSN

© 2007 Progress Software Corporation 19 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Automatic connections  How does solution this work?  What is a property file?  What does the property file contain?

© 2007 Progress Software Corporation 20 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Property file example [sql-configuration] configuration-names-list=config1 [configuration.config1] database-id-list=Aux1, Aux2 [database.Aux1] Name=SportsAux1 Catalog=AuxCat1 Location=c:\openedge\WRK\db\SportsAux1 [database.Aux2] Name=SportsAux2 Catalog=AuxCat2 Location=c:\openedge\WRK\db\SportsAux2 sports2000.oesql.properties Full path to databaseconfiguration name

© 2007 Progress Software Corporation 21 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Multi-Database : automatic connections Properties [config1] OpenEdge SQL Server dbname[-mdbq:config1] DB Primary SQL Client Host Shmem Auxiliaries Second DB Third DB Read Only Shmem DBNavigator - JDBC URL Crystal Reports – ODBC DSN

© 2007 Progress Software Corporation 22 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC jdbc:datadirect:openedge://localhost:6748;databaseNa me=sports2000 Single connection : JDBC -DBNavigator

© 2007 Progress Software Corporation 23 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC jdbc:datadirect:openedge://localhost:6748;databaseNa me=sports2000 Multi-DB configuration:JDBC -DBNavigator [-mdbq:config1]

© 2007 Progress Software Corporation 24 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC DBNavigator – MDBQ configuration Primary database Auxiliary databases

© 2007 Progress Software Corporation 25 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC ODBC – single connection

© 2007 Progress Software Corporation 26 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC ODBC – Multi-DB configuration

© 2007 Progress Software Corporation 27 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Crystal – looks like this with MDBQ Auxiliary databases Primary database

© 2007 Progress Software Corporation 28 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Every good engineering project has acronyms (EGEPHA) Primary or single database connections  SQSV (OpenEdge SQL Server ) Main OpenEdge SQL server process connection to storage engine  REMC (Remote Client) OpenEdge SQL client thread for each connection to the primary database

© 2007 Progress Software Corporation 29 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Under the covers - acronyms Auxiliary connections  SQFA (SQL Federated Agent) Main OpenEdge SQL connection to the Auxiliary database  SQFC (SQL Federated Client) OpenEdge SQL client thread for each connection to the auxiliary database

© 2007 Progress Software Corporation 30 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Connection types OpenEdge SQL Server connection OpenEdge SQL Client connection Primary SQSV REMC Auxiliary SQFA SQFC

© 2007 Progress Software Corporation 31 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Connections – using MDBQ OpenEdge SQL Server Primary DB Auxiliary DB Main Thread Client 1 Thread Client 2 Thread SQSV SQFA REMC SQFC

© 2007 Progress Software Corporation 32 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Promon – Primary Database Primary database connections

© 2007 Progress Software Corporation 33 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Promon – Auxiliary Database Auxiliary database connections

© 2007 Progress Software Corporation 34 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC OpenEdge Management User Activity View – Primary Database Primary database connections

© 2007 Progress Software Corporation 35 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC OpenEdge Management User Activity View – Auxiliary Database Auxiliary database connections

© 2007 Progress Software Corporation 36 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC MDBQ Tips/Restrictions/Gotchas!!  Restriction Primary and auxiliary databases must reside on same host  Connection authentication User credentials must be same on Primary and each Auxiliary  Database codepage Codepage of databases must be the same

© 2007 Progress Software Corporation 37 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC MDBQ Tips/Restrictions/Gotchas!!  Auxiliary connections are READ ONLY No update operations, schema or record based, can be performed in the auxiliary databases. Only the primary database will accept update statements.  Granting / revoking permissions - authorization Must be done on auxiliary database independently  Performance considerations Update Statistics must be done on each auxiliary database independently

© 2007 Progress Software Corporation 38 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Multi-Database Query Support Properties [config1] OpenEdge SQL Server dbname[-mdbq:config1] DB Primary SQL Client Host Shmem Auxiliaries Second DB Third DB Shmem Read Only

© 2007 Progress Software Corporation 39 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC  Overview of multi-database configurations  Connections and how they show up  Data access – single and multi-database  Management and planning Agenda

© 2007 Progress Software Corporation 40 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Planning – startup  Effect of MDBQ: Primary DB startup parameters Effectively no change from single connection, make use of –Mi to control number of connections/threads per server. Still have SQSV (server slot (-Mi,Ma)) and REMC ( user slot (-n)) Reminder: OpenEdge SQL does better with threads ( more connections per server)  Effect of MDBQ: Auxiliary DB startup parameters SQFA is self-service (add one to –n) Each SQFC takes up a user slot (each add to –n) SQFA, for each SQSV, will host multiple SQFC contexts

© 2007 Progress Software Corporation 41 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Shutdown of Auxiliary database OpenEdge SQL Server Primary DB Auxiliary DB Main Thread SQSV SQFA Client 1 Thread REMC SQFC Client 2 Thread REMC SQFC Primary DB broker unaffected

© 2007 Progress Software Corporation 42 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Shutdown of Auxiliary database OpenEdge SQL Server Primary DB Auxiliary DB Main Thread SQSV Primary DB broker unaffected

© 2007 Progress Software Corporation 43 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Shutdown of Primary database OpenEdge SQL Server Primary DB Auxiliary DB Main Thread SQSV SQFA Client 1 Thread REMC SQFC Client 2 Thread REMC SQFC Auxiliary DB broker unaffected

© 2007 Progress Software Corporation 44 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Shutdown of Primary database Primary DB Auxiliary DB Auxiliary DB broker unaffected

© 2007 Progress Software Corporation 45 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Promon – Disconnect of SQFA OpenEdge SQL Server Primary DB Auxiliary DB Main Thread SQSV SQFA Client 1 Thread REMC SQFC Client 2 Thread REMC SQFC Primary and Auxiliary DB broker unaffected

© 2007 Progress Software Corporation 46 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Promon – Disconnect of SQFA OpenEdge SQL Server Primary DB Auxiliary DB Main Thread SQSV Primary and Auxiliary DB broker unaffected

© 2007 Progress Software Corporation 47 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Promon – Disconnect of REMC or SQFC OpenEdge SQL Server Primary DB Auxiliary DB Main Thread SQSV SQFA Client 1 Thread REMC SQFC Client 2 Thread REMC SQFC Primary and Auxiliary DB broker unaffected

© 2007 Progress Software Corporation 48 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Promon – Disconnect of REMC or SQFC OpenEdge SQL Server Primary DB Auxiliary DB Main Thread SQSV SQFA Client 1 Thread REMC SQFC Primary and Auxiliary DB broker unaffected

© 2007 Progress Software Corporation 49 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC In Summary  Multi-database query  Manage the configuration  Under the covers

© 2007 Progress Software Corporation 50 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC For More Information, go to…  PSDN  Progress eLearning Community Using OpenEdge SQL  Documentation – 10.1B OpenEdge Data Management: SQL Development OpenEdge Data Management: SQL Reference

© 2007 Progress Software Corporation 51 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Other Exchange Sessions  DB-10: What’s New in OpenEdge 10.1B RDBMS  DB-11: Moving to OpenEdge  COMP-10: OpenEdge Management and Replication  DB-21: Data Management Roadmap and Info Exchange

© 2007 Progress Software Corporation 52 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Questions?

© 2007 Progress Software Corporation 53 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC Thank you for your time

© 2007 Progress Software Corporation 54 DB-1: OpenEdge SQL multi-database environment for ODBC and JDBC