Connecting DB2 Applications, including Mobile and …Mobile without the DB2 Adapter for z/OS Connect...
Transcript of Connecting DB2 Applications, including Mobile and …Mobile without the DB2 Adapter for z/OS Connect...
© Copyright IBM Corporation 2016. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.
Connecting DB2 Applications, including Mobile and Cloud, with
Data on z Systems
John Iczkovits – [email protected]
Paul Wirth – [email protected]
IBM Corporation
DB2 Washington Systems Center –
System z Growth
1IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Notices and Disclaimers
Copyright © 2016 by International Business Machines Corporation (IBM). No part of this document may be reproduced or transmitted in any form without
written permission from IBM.
U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM.
Information in these presentations (including information relating to products that have not yet been announced by IBM) has been reviewed for accuracy as
of the date of initial publication and could include unintentional technical or typographical errors. IBM shall have no responsibility to update this information.
THIS DOCUMENT IS DISTRIBUTED "AS IS" WITHOUT ANY WARRANTY, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL IBM BE LIABLE FOR
ANY DAMAGE ARISING FROM THE USE OF THIS INFORMATION, INCLUDING BUT NOT LIMITED TO, LOSS OF DATA, BUSINESS INTERRUPTION,
LOSS OF PROFIT OR LOSS OF OPPORTUNITY. IBM products and services are warranted according to the terms and conditions of the agreements
under which they are provided.
Any statements regarding IBM's future direction, intent or product plans are subject to change or withdrawal without notice.
Performance data contained herein was generally obtained in a controlled, isolated environments. Customer examples are presented as illustrations of how
those customers have used IBM products and the results they may have achieved. Actual performance, cost, savings or other results in other operating
environments may vary.
References in this document to IBM products, programs, or services does not imply that IBM intends to make such products, programs or services available
in all countries in which IBM operates or does business.
Workshops, sessions and associated materials may have been prepared by independent session speakers, and do not necessarily reflect the views of IBM.
All materials and discussions are provided for informational purposes only, and are neither intended to, nor shall constitute legal or other guidance or advice
to any individual participant or their specific situation.
It is the customer’s responsibility to insure its own compliance with legal requirements and to obtain advice of competent legal counsel as to the
identification and interpretation of any relevant laws and regulatory requirements that may affect the customer’s business and any actions the customer may
need to take to comply with such laws. IBM does not provide legal advice or represent or warrant that its services or products will ensure that the customer
is in compliance with any law
2IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Notices and Disclaimers Continued
Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available
sources. IBM has not tested those products in connection with this publication and cannot confirm the accuracy of performance, compatibility or any other
claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products. IBM does not
warrant the quality of any third-party products, or the ability of any such third-party products to interoperate with IBM’s products. IBM EXPRESSLY
DISCLAIMS ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE.
The provision of the information contained h erein is not intended to, and does not, grant any right or license under any IBM patents, copyrights, trademarks or
other intellectual property right.
IBM, the IBM logo, ibm.com, Aspera®, Bluemix, Blueworks Live, CICS, Clearcase, Cognos®, DOORS®, Emptoris®, Enterprise Document Management
System™, FASP®, FileNet®, Global Business Services ®, Global Technology Services ®, IBM ExperienceOne™, IBM SmartCloud®, IBM Social Business®,
Information on Demand, ILOG, Maximo®, MQIntegrator®, MQSeries®, Netcool®, OMEGAMON, OpenPower, PureAnalytics™, PureApplication®,
pureCluster™, PureCoverage®, PureData®, PureExperience®, PureFlex®, pureQuery®, pureScale®, PureSystems®, QRadar®, Rational®, Rhapsody®,
Smarter Commerce®, SoDA, SPSS, Sterling Commerce®, StoredIQ, Tealeaf®, Tivoli®, Trusteer®, Unica®, urban{code}®, Watson, WebSphere®,
Worklight®, X-Force® and System z® Z/OS, are trademarks of International Business Machines Corporation, registered in many jurisdictions worldwide.
Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and
trademark information" at: www.ibm.com/legal/copytrade.shtml.
3IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Please Note
• IBM’s statements regarding its plans, directions, and intent are subject to change orwithdrawal without notice at IBM’s sole discretion.
• Information regarding potential future products is intended to outline our general product direction and it should not be relied on in making a purchasing decision.
• The information mentioned regarding potential future products is not a commitment, promise, or legal obligation to deliver any material, code or functionality. Information about potential future products may not be incorporated into any contract.
• The development, release, and timing of any future features or functionality described for our products remains at our sole discretion.
Performance is based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput or performance that any user will experience will vary depending upon many factors, including considerations such as the amount of multiprogramming in the user’s job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve results similar to those stated here.
4IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Session objectives
• DB2 services & API ecosystem
• A few words about API economy
• What is and why z/OS Connect
• DB2 Adapter for z/OS Connect
5IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Mobile is primary91% of mobile users
keep their device within
arm’s reach 100% of
the time
Insights from
mobile data provide
new opportunities 75% of mobile shoppers
take action after
receiving a location
based messages
Mobile is about transactingEvidence: “cyber Monday”
Mobile must create
a continuous
brand experience90% of users use
multiple screens as
channels come
together to create
integrated experiences
Mobile enables the
Internet of ThingsGlobal machine-to-
machine connections
increasing dramatically
5 mobile trends with significant implications for the enterprise
5
6IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
DB2 Services & API Economics
7IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
8IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
9IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
10IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
11IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
z/OS Connect – What is it?
It’s about REST API support using JSON into your mainframe
environment in a way that enables you to best take advantage
of the assets that exist there:
Mobile or
Cloud
Ecosystem
CICS
IMS
Batch
OtherREST – Representational State Transfer …
the use of HTTP URLs that map to a ‘service’,
such as ‘query account’ or ‘update data’
JSON – JavaScript Object Notation … a
standard of representing data as a set of
name/value pairs. This is passed back and
forth along with REST request/responses
Where z/OS
Connect fits
• Liberty Profile Server
• Function IBM wrote to run
in Liberty Profile
• No charge function
provided with license
entitlement to WAS z/OS,
CICS, IMS and DB2
z/OS Connect
DB2
12IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Summary in One Picture
Liberty Profile for z/OS
z/OS
Connect
Servlet
CICS
IMS
DB2Interceptors
Service Providers
Data Transform
1
4
RESTful
JSON
3
5
6
7
8
z/OS Connect is software function that
runs in Liberty Profile for z/OS.
z/OS Connect is described and
configured in the Liberty server.xml file
z/OS Connect is designed to accept
RESTful URIs with JSON data
payloads
A ‘Service Provider’ is software
that provides the connectivity to
the backend system
server.xml
2
One part of z/OS Connect
is a servlet that runs in
Liberty Profile z/OS.
z/OS Connect provides the
ability to transform JSON to the
layout required by backend
‘Interceptors’ are callout points
where software can be invoked
to do things such as SAF
authorization and SMF activity
recording
Backend systems supported are
CICS, IMS, Batch, and DB2
1
2
3
4
5
6
7
8
BatchSMF SAF …
13IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Mobile without the DB2 Adapter for z/OS Connect (with on
the next slide)
13
DB2
for
z/OS
CICS
IMS
Batch
z/OS Connec
t
1. Without the DB2 Adapter for
z/OS Connect, access to DB2 for
z/OS data via z/OS Connect is
through CICS, IMS, and batch
programs
• Direct access to DB2 from z/OS
Connect is being worked on
2. References to JSON in this overview of z/OS Connect are NOT related to the JSON
support for DB2 for z/OS recently delivered for DB2 11
• JSON support for DB2 is a feature of the IBM DB2 Accessories Suite for z/OS V3.2 (a
no-charge offering) that enables DB2 for z/OS to be a JSON document store
• Allows applications to manage JSON documents in DB2 for z/OS using a new (API)
based on the MongoDB data model and query language
• Among other things, allows Java programs to access JSON data through the same
JDBC driver used for SQL access
14IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Secure and consistent enterprise connectivity for mobile and
cloud DB2 Adapter for z/OS Connect
•IBM WebSphere Liberty z/OS Connect – Shipped with WAS, CICS, IMS, and DB2
•Unifies z/OS connectors – a common solutions for mobile, cloud, and web
•Simplified integration – Hide complexity of connecting to z/OS using REST
Cloud-based
ServicesEnterprise
Systems
Integration
Enterprise
Applications
Enterprise
Data
On-Premise Enterprise APIs Enterprise
Transaction
Processing
IBM
WebSphere
Liberty
z/OS Connect
CICS,
IMS
Batch,
WAS
Cloud APIs
Mobile-Optimized APIs
Systems of Engagement Systems of Record
DB2 for z/OS GA Dec 11, 2015
15IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Customer Perspective
• Application programmers need to access and include DB2 data
in their applications. They want to use REST APIs and services
in order quickly create mobile friendly applications.
• Prior to DB2 Adapter for z/OS Connect, the primary options
available for providing REST APIs would require them to write
and deploy new WebSphere or Data Power applications to
accept the REST calls and transform them into ODBC/JCBC
driver calls to DB2.
16IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
z/OS CONNECT & DB2 for z/OS
It’s about getting REST and JSON into your mainframe environment in a way that
enables you to best take advantage of the DB2 assets that exist there:
• WebSphere Liberty Profile for z/OS – WLP is a faster lightweight version of WebSphere
• Z/OS Connect – z/OS Connect is a special Java Servlet in WLP to handle connectivity to z/OS services,
HTTPS request and reply, REST/JSON message formatting and transformation, forward message to
registered service providers, configure services, discovery service, security, auditing for enterprise data.
• REST – Representation State Transfer – Stateless client-server protocol, typically using HTTP URLs that
map to a service, such as “query account” or “update data”
• JSON – JavaScript Object Notation – A standard of representing data as a set of name/value pairs. This is
passed back and forth along with REST request/responses
17IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
https://mysite.com/CustomerApp/getCustomer?cn=1234
URI = Uniform resource identifier
Front-end perspective: RESTful services
• If the URI is understood by the receiving server, the implied action is taken
• Knowing what URIs the server supports is important, which is why z/OS Connect has a
discovery function that can be used to query for configured services and details on those
services
• RESTful services are growing in popularity because it’s easier to implement than other
Web service protocols such as SOAP, which involves XML and WSDL and parsing …
17
Mobile,
cloud
ecosystem
18IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
It’s a way of passing data back and forth as a series of name/value pairs
{
"firstName": "John",
"lastName": "Smith",
"age": 25,
"address": {
"streetAddress": “1234 Main Street",
"city": “Anytown",
"state": "NY",
"postalCode": "10021-1234"
},
}
Data being passed in is
appended to the URL and
passed to the server
JSON can be passed back
to the client as well
Where JSON fits in
18
Mobile,
cloud
ecosystem
https://mysite.com/CustomerApp/getCustomer?cn=1234
URI = Uniform resource identifier
19IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Allows developers to query for a list of configured services, and
drill down for details on a given configured service
https://mysite.com/zosConnect/services
Query for configured services
https://mysite.com/zosConnect/services/serv1
Query for details on a given configured service
JSON object with list of exposed
services and their service URLs
JSON object with more details on
the specific service
The z/OS Connect discovery function
19
20IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Why z/OS Connect?
This represents another component to configure and maintain in your environment. So what value does it bring?
• Provides a common and consistent entry point
for mobile access to one or many backend
systems
• Provides tooling for streamlined creation of
REST services from z Assets by the developers
• Java, so runs on specialty engines (zIIP)
• Shields backend systems from requiring
awareness of RESTful URIs and JSON data
formatting
• Simplifies front-end functions by allowing them to
pass RESTful and JSON rather than be aware of
or involved in data transformation
• Support discovery of deployed services by other
systems, e.g., APIM
• Provides point for authorization of user to
invoke backend service
• Provides point for capturing usage
information using SMF
You could enable Mobile access
without z/OS Connect
z/OS Connect simplifies and
makes the environment more
consistent and manageable
• Potentially reduce network latency
• Scalability and failover support (RAS)
21IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Excellent Scaling with DB2 adaptor for z/OS connect
• DB2z Adaptor offers excellent scaling and achieves 108K simple look-up transaction per second with 360 clients
• Large portion of CPU spent in WLP servers, where the most of CPU usage is eligible with zIIP processors
19,253
37,66749,767
108,758
0
20000
40000
60000
80000
100000
120000
60 120 180 360
Tra
nsacti
on
per
seco
nd
# of clients
Transaction throughput ( per sec)
22IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Benchmark Configuration
• 6 way db2 data sharing on
z13 2 LPARs( 20CP, 64GB)
• T2 connection 70% zIIP eligible
• T4 connection 100% zIIP
eligible
• 6 DB2z Adaptor servers
• 60 users per DB2z Adaptor.
• 2 client zLinux lpars(16 IFLs)
with 180 users each.
https://stlabh2.svl.ibm.com:9443/zosConnect/services/item?action=invoke
• zIIPs usage increases due to the use of the WLP JAVA code
• Consider workload distribution and failover scenarios for WLP
23IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
z/OS Connect and Data Sharing
• Each z/OS Connect (DB2 Adapter for z/OS Connect) server instance is tied/associated
with a single DB2 "catalog" (single non-DS DB2, OR a single DS Group).
• DB2 Adapter for z/OS Connect supports both JCC type-2 z/OS (uses RRS attach and
the target DB2 must be on the same LPAR) and type-4 (TCP/IP DRDA, target DB2 can
be on same LPAR or different one).
• When targeting a DB2 Data Sharing system, the DB2 Adapter for z/OS Connect can be
configured to use either "member specific" (ie. SSID for T2, member IP for T4) OR
"group" (ie. Group Attach ID for T2, group/DVIPA for T4) semantics.
• A high availability setup would likely include multiple DB2 Adapter for z/OS Connect
server instances which are targeting a DB2 Data Sharing group using the "group" type
semantics, all using TCP/IP Sysplex Distributor and JCC T4.
24IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Workload balancing across members
• In order to get/expose DB2 workload balancing, you need to be using the JCC type-4
setup and the DB2 group/DVIPA address.
• In addition, you could also use TCP/IP Sysplex Distributor with a group DVIPA for the
z/OS Connect servers to seamlessly distribute the incoming z/OS Connect Service
requests.
25IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Member failover with z/OS Connect up
• If the DB2 Adapter for z/OS Connect is configured to use JCC T4 and a DB2 group
DVIPA address, then the z/OS Connect activity will continue to run, only now having the
SQL routed/run on remaining members of the DB2 Data Sharing group.
26IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Multiple z/OS Connect to one member/subsystem
• It is possible to have more then one z/OS Connect (DB2 Adapter for z/OS Connect)
server instance connect to the same DB2 member and/or catalog.
• For example, a customer wants to isolate/partition a DB2 Adapter for z/OS Connect
Services for security reasons. You could have one DB2 Adapter for z/OS Connect
server that is used for "HR/Payroll" related services, and a different DB2 Adapter for
z/OS Connect server instance that is used for "online shopping" related services, even
though the underlying DB2 system is the same for both functions.
27IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
DB2 Adapter for z/OS Connect - Why does it matter for DB2 Mobile
Enablement?
Mobile application developers want to use REST APIs and services in order quickly create mobile
friendly applications.
Prior to z/OS Connect and DB2 Adapter for z/OS Connect, the primary options available for providing
REST APIs would require customers to write and deploy new WebSphere or Data Power applications
to accept the REST calls and transform them into ODBC/JCBC driver calls to DB2.
• This typically required new server side applications to be written every time that a new REST API or service was
needed.
• Slow to develop and deploy new REST services
Using z/OS Connect and the DB2 Adapter for z/OS Connect:
• Mobile application developers can now easily access and include DB2 data in their applications using REST APIs
• DB2 DBAs can create and deploy a new DB2 REST service using the provided Data Studio tooling in a matter of
minutes
• A DB2 REST service consists of a single SQL statement, such as a SELECT, INSERT, UPDATE, CALL, etc.
• Mobile application programmers can easily “Discover” and immediately use available DB2 REST services. They do
NOT need to have any DB2 experience, or know how the service is implemented in order to use it.
• Input parameters for the SQL statement execution are provided in the REST Request message body, in JSON
format
• Output parameters and result sets are returned in the REST response body, also in JSON format
28IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
DB2 Adapter for z/OS Connect V1 Overview
• DB2 Adapter for z/OS Connect is an integrated solution that enables developers to make existing DB2
assets – SQL and Stored Procedures – available in today’s growing mobile and cloud application
ecosystem via REST API
• Consist of 3 components
• WLP – WebSphere Liberty Profile with z/OS Connect license (Liberty 8.5.5.5*)
• DB2 Adapter for z/OS Connect (NOTE – ordering the DB2 Adapter will automatically include WLP, so
do not order or install separately)
• Data Studio Client 4.1.2
• DB2 Adapter for z/OS Connect ships via DB2 Accessories Suite for z/OS V3 R3.
• SMP/E Install
• Support DB2 10 for z/OS or later
• Some WLP skill preferred for install and configure
*APIM Discovery Support
29IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
DB2 Adapter for z/OS Connect
• z/OS Connect address space is coupled with a single DB2 system
• REST API
• JSON request and response
DB2
z/OS Connect
andDB2 Adapter
JSON to/from SQL/CALLVia JCC
Type2 or Type4
WAS Liberty z/OS
RESTful
RESTful
RESTful
Data transformation /
routing
Mobile
/APIMSecurity / Auditing /
Metering
CloudOEJavaScript
CloudOE
JavaSQL
Stored
Procedure
30IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Security of DB2 Adapter for z/OS Connect
• Leverages the security strengths of DB2 and z/OS Connect
• DB2 Adapter service access control by z/OS Connect
• Administrator query services, perform operational tasks on services and invoke them
• Operator perform tasks on services, but cannot invoke them
• Invoker invoke the services, but do not have authority over them
31IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
DB2 Adapter for z/OS Connect Security models and options
• DB2 Adapter for z/OS Connect leverages the security strengths of DB2 and z/OS Connect to provide a complete security solution that enables you to authenticate, authorize, and audit the use of all its services.
• z/OS Connect security
• z/OS Connect Authentication - A service invoker is always authenticated by z/OS Connect. This initial authentication can be setup to use a basic userid/password list configuration, or more likely will be configured to perform the authentication using SAF.
• z/OS Connect Authorization Check – Authorization checks can be configured at both the server and individual service level. z/OS Connect provides the following authorization roles:
• Administrator = query services, perform operational tasks on services and invoke them
• Operator = perform tasks on services (eg. Start/Stop), but cannot invoke them
• Invoker = invoke the services, but do not have authority over them
• DB2 Security
• Each DB2 Adapter for z/OS Connect Service can be configured to access DB2 and execute the SQL statement using:
• Service Owner : Deployer of Service using Data Studio Tooling
• Service Invoker: Caller of Service using z/OS Adapter Invoker Role
• DB2 Adapter Administrator ID: User ID specified in the DB2 Adapter Data Source
• Support for RACF PassTickets and DB2 Trusted Context
32IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
REST API Develop a DB2 Adapter service using Data Studio Client
z/OS Connect address space is coupled with a single
DB2 system (stand alone or Data Sharing group)*
DB2
z/OS Connectand
DB2 Adapter JSON to/from SQL/CALL
Via JCCType2 or Type4
WAS Liberty z/OS
RESTful
Data transformation / routing
Security / Auditing / Metering
CloudOE
JavaSQL
Stored ProcedureDynamic
Deploy
* Single DB2 Catalog
33IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Data Studio Tooling for z/OS Connect – End to End Development
Database SQL Operations
UPDATE MY.EMPLOYEE
SET FIRSTNAME = :FIRSTNAME
WHERE EMPNO = :EMPNO
SELECT *
FROM MY.EMPLOYEE
WHERE EMPNO = ?
CALL DEPTS.BONUS_INCREASE
(:factor,
:maxSumForDept,
:deptsWithoutNewBonuses,
:countDeptsViewed,
:countDeptsBonusChanged,
:errorMsg)
Data Web Servicesof Data Studio
(later planned in RDz)
1-ClickDeploy or
UnDeploy to Remote
zOS ConnectServer
DB2
z/OS
Connect
Server
DB2 Adapter Artifacts
z/OS Connect on LPAR
34IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Data Studio User Interface
1. Define z/OS Connect server together with Database connection
Database connection setup is same as before New optional z/OS Connect server setup with SSL support
35IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Data Studio User Interface, continue
2. Define a new service by right click on Web Services folder
36IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Data Studio User Interface, continue
3. Drag‘n drop sql statements
including call statements into
the Web Service
4. Right click to Deploy in
z/OS Connect Server
Service definitions are deployed in z/OS Connect – ready to use
37IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
REST API - Working with DB2 Adapter services
Discovering available DB2 Adapter servicesGET https://<host>:<port>/zosConnect/services
Retrieving the details of a DB2 Adapter serviceGET https://<host>:<port>/zosConnect/services/<service_name>
● Service Name, Description, Provider, URLs, Status, Request Schema, and Response Schema
38IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
REST API - Working with DB2 Adapter services (continued)
Starting a DB2 Adapter service
POST https://<host>:<port>/zosConnect/services/<service_name>?action=start
Stopping a DB2 Adapter service
POST https://<host>:<port>/zosConnect/services/<service_name>?action=stop
Invoking a DB2 Adapter service
POST https://<host>:<port>/zosConnect/services/<service_name>?action=invoke
Example using RESTClient on Firefox
39IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM. © 2016, IBM Corporation
Statements of Direction for DB2 for z/OS
IBM makes the following statements of general direction:
• At the time of this presentation, z/OS Connect EE V2 does NOT yet have DB2 for
z/OS support.
• IBM intends to offer IBM DB2 for z/OS Version 11, or later, with support for the
external interface delivered in z/OS Connect EE V2.0, and DB2 RESTful API support
that is fully integrated into the DB2 for z/OS Distributed Data Facility. IBM's statements regarding its plans, directions, and intent are subject to change or withdrawal without notice at IBM's sole discretion. Information regarding potential future
products is intended to outline our general product direction and it should not be relied on in making a purchasing decision. The information mentioned regarding potential future
products is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. Information about potential future products may not be incorporated into
any contract. The development, release, and timing of any future features or functionality described for our products remain at our sole discretion.
40IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Future direction - Native DB2 REST Service
Liberty Profile for z/OS
z/OS Connect
Au
then
tica
tio
n
Au
thori
za
tio
n
En
cry
ptio
n
Service Discovery
Data
Transformation
Service
Invocation
Access Control
(SAF)
Tracing and
Auditing (SMF)
IMS
DB2
CICS
Batch
Data
Studi
o
RESTfulJSON
RESTfulJSON
Outbound
Rest Call
Forwarding
41IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
• Reduce z/OS peak MSUs attributable to mobile workloads – up to 60%
• No Infrastructure changes required (such as separate LPARs)
• Requires tagging and tracking z/OS CPU seconds from mobile workloads.
Other z/OS
workloads
CPU
Mobile
Adjusted z/OS
peak utilization
Eligible for
reduction
Other
workloads
Mobile
workloads
CPU
Current z/OS
peak utilization
Large bank increasedmobile transaction volumes
by 40% in two years
Cumulative
Mobile
Mobile Workload Pricing for z/OS
41
42IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Cloud Workload Pricing for z/OS (Recent Addition)
Cloud Workload Pricing
Cloud transactions processed in a z/OS subsystem like CICS or DB2 now qualify
for a 60% MSU reduction … Extending the Mobile pricing concept
Cloud workload
A new application originating from a public cloud that connects to a mainframe
transactional service and/or data source via a REST or SOAP web service
Benefits
Improves mainframe economics as a System of Record in a hybrid cloud
environment
Example
A cloud application developed and running in Bluemix on the Softlayer cloud,
connects to a CICS service (via z/OS Connect or any other method) behind a
customer’s firewall to access and potentially update account information
The CPU time processed by CICS to handle these Bluexmix transactions qualifies
for the pricing benefit (i.e. 60% MSU reduction)
Note, a web service can be invoked from any public cloud environment (Bluemix,
Amazon AWS, MS Azure, etc.) and customers can expose z services to access
their mainframes in multiple ways
43IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Reference Info
• IBM DB2 Adapter for z/OS Connect Installation and User's Guide (SC27-6769-00)
• V11:
http://www.ibm.com/support/knowledgecenter/SSEPEK_11.0.0/com.ibm.db2z.doc.adapter/src/tpc/adapter_installovervie
w.dita
• V10:
• http://www.ibm.com/support/knowledgecenter/SSEPEK_10.0.0/com.ibm.db2z.doc.adapter/src/tpc/adapter_installovervie
w.dita
• WLP Knowledge Center Links:
• WLP Config elements –
https://www.ibm.com/support/knowledgecenter/SSEQTP_8.5.5/com.ibm.websphere.wlp.doc/autodita/rwlp_metatype_4ic.html?cp=SSE
QTP_8.5.5%2F1-0-2-1-0
• WLP White Paper –
http://www.ibm.com/support/techdocs/atsmastr.nsf/WebIndex/WP102110
• Z/OS Connect Service element configuration from Knowledge Center –
http://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/twlp_zconnect_srvcdef
.html?cp=SSAW57_8.5.5%2F3-3-11-0-2-7-4&lang=en
44IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Session Evaluations
YOUR OPINION MATTERS!
Submit four or more session
evaluations by 5:30pm Wednesday
to be eligible for drawings!
*Winners will be notified Thursday morning. Prizes must be picked up at
registration desk, during operating hours, by the conclusion of the event.
1 2 3 4
45IBM Systems Technical Events | ibm.com/training/events
© Copyright IBM Corporation 2016. Technical University/Symposia materials
may not be reproduced in whole or in part without the prior written permission of
IBM.
Continue growing your IBM skills
ibm.com/training
provides a comprehensive
portfolio of skills and career
accelerators that are designed
to meet all your training needs.
If you can’t find the training that is right for you with our
Global Training Providers, we can help.
Contact IBM Training at [email protected]
Global Skills Initiative