Oracle® Application Server Adapter for VSAM User's Guide
10g Release 2 (10.1.2) B15804-01 |
|
Previous |
Next |
Oracle Application Server connects to a Virtual Sequential Access Method (VSAM) system through the Oracle Application Server Adapter for VSAM (OracleAS Adapter for VSAM). The OracleAS Adapter for VSAM provides connectivity and runs interactions on a VSAM system. This chapter provides an overview of the feature and architecture of OracleAS Adapter for VSAM.
This chapter contains the following sections:
The OracleAS Adapter for VSAM models VSAM as a simple database with an SQL front end. The adapter is native to the data source and IBM OS/390 or z/OS system, providing direct access that results in improved performance.
OracleAS Adapter for VSAM includes the following features:
Captures and maintains a metadata schema for VSAM by importing COBOL copybooks and transforming them into mapping definitions for Oracle Connect for VSAM on the IBM OS/390 or z/OS system and by associating the data structures with specific physical files.
Full-fledged query processor and optimizer that runs SQL against the VSAM data with full support for VSAM data types such as arrays.
Uses an enterprise application integration (EAI) model. Users of a requesting application can model the interactions that they want implemented, specifying what each interaction does, when it occurs and the inputs and outputs expected for each interaction.
Maps data structures for facilitating access to VSAM data from within Oracle Application Server.
Implements interactions as parameterized SQL with the parameters forming the input record, and with the output (in cases where there is an output) aggregated into an XML document forming the output record.
Enables you to access VSAM data managed by CICS or directly.
VSAM is an IBM disk file storage scheme first used in S/370 and VS (Virtual Storage). VSAM comprises the following three access methods:
Keyed Sequential Data Set (KSDS)-indexed file
Relative Record Data Set (RRDS)-relative file
Entry Sequenced Data Set (ESDS)-sequential file
These VSAM access methods are supported by the adapter
VSAM has no built-in metadata schema although a VSAM file does include information about its type (KSDS, RRDS, or ESDS) and index definition (KSDS only). Typically, VSAM is used by COBOL programs, either standalone (also known as batch programs) or CICS transactions. The VSAM record definitions are typically maintained within the COBOL code as COBOL copybooks.
When VSAM records are defined under CICS, all access to the data is managed by CICS. OracleAS Adapter for VSAM includes an option to access the VSAM data under CICS.
When VSAM records are not defined under CICS, OracleAS Adapter for VSAM includes an option to access the VSAM data directly. This option can also be used to improve performance when the VSAM records are managed by CICS but access to them is for read only, and there is no risk that there are changes buffered by CICS while the read is performed.
OracleAS Adapter for VSAM includes the following components:
J2CA 1.0 VSAM adapter: The J2CA VSAM adapter is a standard resource adapter that is compliant with J2EE Connector Architecture, providing J2EE components connectivity.
Oracle Connect: Oracle Connect runs on the legacy system and handles requests from the J2CA 1.0 VSAM adapter, that runs within Oracle Application Server Containers for J2EE (OC4J).
Oracle Studio: Oracle Studio is the configuration tool for Oracle Connect. Configuration tasks using Oracle Studio are performed on a Windows platform. Oracle Studio uses perspectives that enables you to generate specific information necessary to model OracleAS Adapter for VSAM.
The following figure illustrates the components of OracleAS Adapter for VSAM.
The J2CA 1.0 VSAM adapter converts the J2CA interaction invocation received from Oracle Application Server to the XML format and passes the XML format to Oracle Connect on the legacy server. The daemon listens for the request coming from the J2CA 1.0 VSAM adapter client and assigns a server process to handle the request. The properties of the server process, such as connection pooling requirements, are defined by a workspace definition within the daemon. The server process includes an instance of the application engine, which converts the XML format into native structures understandable by VSAM and passes the converted XML to the back-end adapter. The back-end adapter builds an interaction based on the metadata for the back-end adapter stored in the repository and the incoming converted XML, and passes it to the legacy application. The results of this execution are passed back to the application engine, using the back-end adapter, where these results are converted to XML and passed back to the client.