230
Oracle® Transparent Gateway for DRDA Installation and User’s Guide 10g Release 2 (10.2) for UNIX B16217-02 December 2005

Oracle Transparent Gateway for DRDA Installation and User’s ......Oracle Corporation, 500 Oracle Parkway, Redwood City, CA 94065 The Programs are not intended for use in any nuclear,

  • Upload
    others

  • View
    14

  • Download
    0

Embed Size (px)

Citation preview

  • Oracle® Transparent Gateway for DRDAInstallation and User’s Guide

    10g Release 2 (10.2) for UNIX

    B16217-02

    December 2005

  • Oracle Transparent Gateway for DRDA Installation and User's Guide, 10g Release 2 (10.2) for UNIX

    B16217-02

    Copyright © 2005, Oracle. All rights reserved.

    Primary Author: Maitreyee Chaliha

    Contributing Author: Peter A. Castro

    The Programs (which include both the software and documentation) contain proprietary information; they are provided under a license agreement containing restrictions on use and disclosure and are also protected by copyright, patent, and other intellectual and industrial property laws. Reverse engineering, disassembly, or decompilation of the Programs, except to the extent required to obtain interoperability with other independently created software or as specified by law, is prohibited.

    The information contained in this document is subject to change without notice. If you find any problems in the documentation, please report them to us in writing. This document is not warranted to be error-free. Except as may be expressly permitted in your license agreement for these Programs, no part of these Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose.

    If the Programs are delivered to the United States Government or anyone licensing or using the Programs on behalf of the United States Government, the following notice is applicable:

    U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the Programs, including documentation and technical data, shall be subject to the licensing restrictions set forth in the applicable Oracle license agreement, and, to the extent applicable, the additional rights set forth in FAR 52.227-19, Commercial Computer Software--Restricted Rights (June 1987). Oracle Corporation, 500 Oracle Parkway, Redwood City, CA 94065

    The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other inherently dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-safe, backup, redundancy and other measures to ensure the safe use of such applications if the Programs are used for such purposes, and we disclaim liability for any damages caused by such use of the Programs.

    Oracle, JD Edwards, PeopleSoft, and Retek are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

    The Programs may provide links to Web sites and access to content, products, and services from third parties. Oracle is not responsible for the availability of, or any content provided on, third-party Web sites. You bear all risks associated with the use of such content. If you choose to purchase any products or services from a third party, the relationship is directly between you and the third party. Oracle is not responsible for: (a) the quality of third-party products or services; or (b) fulfilling any of the terms of the agreement with the third party, including delivery of products or services and warranty obligations related to purchased products or services. Oracle is not responsible for any loss or damage of any sort that you may incur from dealing with any third party.

  • iii

    Contents

    Preface ................................................................................................................................................................. xi

    Intended Audience...................................................................................................................................... xiProcessors ..................................................................................................................................................... xiDocumentation Accessibility .................................................................................................................... xiiRelated Documents .................................................................................................................................... xiiConventions ............................................................................................................................................... xiiiSQL*Plus Prompts..................................................................................................................................... xiiiStorage Measurements ............................................................................................................................. xiii

    1 Introduction

    1.1 Introduction to the Oracle Transparent Gateway .................................................................. 1-11.2 Release 10g Gateways................................................................................................................. 1-21.3 Gateway Capabilities.................................................................................................................. 1-21.3.1 Transparency at All Levels................................................................................................. 1-31.3.2 Extended Database Services............................................................................................... 1-41.3.3 Extended Advanced Networking, Internet and Intranet Support ............................... 1-41.3.4 Dynamic Dictionary Mapping ........................................................................................... 1-51.3.5 SQL......................................................................................................................................... 1-51.3.6 Data Definition Language ................................................................................................. 1-51.3.7 Data Control Language ...................................................................................................... 1-51.3.8 Passthrough and Native DB2 SQL .................................................................................. 1-51.3.9 Stored Procedures................................................................................................................ 1-61.3.10 Languages ............................................................................................................................. 1-61.3.11 Oracle Database Technology and Tools .......................................................................... 1-61.3.12 SQL*Plus ........................................................................................................................... 1-61.3.13 Two-Phase Commit and Multi-Site Transactions ........................................................... 1-61.3.14 Site Autonomy .................................................................................................................... 1-71.3.15 Migration and Coexistence................................................................................................. 1-71.3.16 Security.................................................................................................................................. 1-71.4 Terms ............................................................................................................................................ 1-71.5 Architecture ................................................................................................................................. 1-71.6 Implementation ........................................................................................................................... 1-91.7 How the Gateway Works........................................................................................................... 1-91.8 Oracle Tools and the Gateway ............................................................................................... 1-101.8.1 SQL*Plus ............................................................................................................................ 1-10

  • iv

    1.9 Features ..................................................................................................................................... 1-10

    2 Release Information

    2.1 Product Set ................................................................................................................................... 2-12.2 Changes and Enhancements ..................................................................................................... 2-12.3 Product Migration....................................................................................................................... 2-12.4 Bugs Fixed in Release 10.2.0 ...................................................................................................... 2-22.5 Known Problems......................................................................................................................... 2-32.6 Known Restrictions..................................................................................................................... 2-32.6.1 DB2 Considerations............................................................................................................. 2-32.6.2 SQL Limitations ................................................................................................................... 2-5

    3 System Requirements

    3.1 Hardware Requirements............................................................................................................ 3-13.2 Software Requirements .............................................................................................................. 3-23.3 Documentation Requirements .................................................................................................. 3-3

    4 Installing the Gateway

    4.1 Introduction ................................................................................................................................. 4-14.2 Before You Begin......................................................................................................................... 4-14.3 Checklist for Gateway Installation ........................................................................................... 4-24.4 Installation Overview................................................................................................................. 4-24.5 Before Beginning Installation .................................................................................................... 4-24.6 Installing the Gateway from CD-ROM.................................................................................... 4-24.7 Installation Complete ................................................................................................................. 4-44.8 Removing the Gateway.............................................................................................................. 4-5

    5 Configuring the DRDA Server

    5.1 Checklists for Configuring the DRDA Server ........................................................................ 5-15.2 DB2/OS390 .................................................................................................................................. 5-25.3 DB2/400........................................................................................................................................ 5-35.4 DB2/UDB (Universal Database)............................................................................................... 5-45.5 DB2/VM ................................................................................................................................... 5-5

    6 Configuring SNAP-IX Interfaces

    6.1 Checklist for Configuring the Communications Interfaces .................................................. 6-16.2 Before You Begin......................................................................................................................... 6-16.3 SNAP-IX Configuration Tool .................................................................................................... 6-16.4 Creating SNAP-IX Profiles for the Gateway........................................................................... 6-26.5 Independent Versus Dependent LUs....................................................................................... 6-26.6 Creating SNA Definitions for the Gateway ............................................................................ 6-26.6.1 Sample SNAP-IX Definitions ............................................................................................. 6-36.6.2 Configuring SNAP-IX ......................................................................................................... 6-36.7 Using SNA Session Security Validation .............................................................................. 6-116.8 SNA Conversation Security.................................................................................................... 6-12

  • v

    6.8.1 SNA Security Option SECURITY=PROGRAM............................................................ 6-126.8.2 SNA Security Option SECURITY=SAME ..................................................................... 6-126.9 Testing the Connection ........................................................................................................... 6-13

    7 Configuring IBM Communication Server

    7.1 Checklist for Configuring the Communications Interfaces ................................................. 7-17.1.1 Step 1: Configuring Communication Server Profiles .................................................... 7-17.1.2 Step 2: Creating Communication Server Profiles for the Gateway ............................. 7-17.1.3 Step 3: Testing the Connection.......................................................................................... 7-37.2 Using SNA Session Security Validation ................................................................................. 7-47.3 SNA Conversation Security....................................................................................................... 7-47.3.1 SNA Security Option SECURITY=PROGRAM............................................................... 7-47.3.2 SNA Security Option SECURITY=SAME ........................................................................ 7-4

    8 Configuring SNAPlus2

    8.1 Checklist for Configuring the Communications Interfaces .................................................. 8-18.2 Before You Begin......................................................................................................................... 8-18.3 SNAPlus2 Configuration Tool .................................................................................................. 8-18.4 Creating SNAPlus2 Profiles for the Gateway......................................................................... 8-28.5 Independent Versus Dependent LUs....................................................................................... 8-28.6 Creating SNA Definitions for the Gateway ............................................................................ 8-28.6.1 Sample SNAPlus2 Definitions ........................................................................................... 8-38.6.2 Configuring SNAPlus2 ....................................................................................................... 8-38.6.3 Invoking xsnapadmin ......................................................................................................... 8-38.7 Using SNA Session Security Validation .............................................................................. 8-118.7.1 SNA Conversation Security ............................................................................................ 8-118.8 Testing the Connection ........................................................................................................... 8-13

    9 Configuring TCP/IP

    9.1 Before You Begin......................................................................................................................... 9-19.2 Configuring TCP/IP under UNIX............................................................................................ 9-1

    10 Oracle Net

    10.1 Checklists for Oracle Net ........................................................................................................ 10-110.1.1 Configuring Oracle Net ................................................................................................... 10-110.1.2 Advanced Security Encryption....................................................................................... 10-110.2 Oracle Net Introduction ......................................................................................................... 10-210.3 Oracle Net Overview ............................................................................................................ 10-210.4 Configuring Oracle Net........................................................................................................... 10-310.5 Advanced Security Encryption .............................................................................................. 10-410.6 Setting Up Advanced Security Encryption for Test............................................................ 10-410.7 Testing Advanced Security Encryptions ............................................................................. 10-5

    11 Configuring the Gateway

    11.1 Configuration Checklists .................................................................................................... 11-1

  • vi

    11.2 Choosing a Gateway System Identifier ............................................................................... 11-211.2.1 Enter the SID on the Worksheet ..................................................................................... 11-311.3 Configurating the Gateway .................................................................................................... 11-311.4 Configuring the Host............................................................................................................... 11-311.4.1 Binding the DRDA Gateway Package ........................................................................... 11-411.4.2 Binding Packages on DB2/Universal Database (DB2/UDB)..................................... 11-411.5 DRDA Gateway Package Considerations ............................................................................ 11-511.5.1 Before Binding the DRDA Gateway Package............................................................... 11-511.5.2 Sample SQL scripts .......................................................................................................... 11-611.6 Backup and Recovery of Gateway Configuration............................................................... 11-711.7 Configuring the Oracle Integrating Server .......................................................................... 11-711.7.1 Step 1: Create a database link......................................................................................... 11-711.7.2 Step 2: Create synonyms and views.............................................................................. 11-711.8 Accessing the Gateway from Other Oracle Databases ...................................................... 11-711.9 Accessing Other DRDA Servers ............................................................................................ 11-811.10 Gateway Installation and Configuration Complete............................................................ 11-8

    12 Using the Oracle Transparent Gateway for DRDA

    12.1 Processing a Database Link .................................................................................................... 12-112.1.1 Creating Database Links.................................................................................................. 12-212.1.2 Dropping Database Links................................................................................................ 12-212.1.3 Examining Available Database Links ............................................................................ 12-312.1.4 Limiting the Number of Active Database Links .......................................................... 12-312.2 Accessing the Gateway ........................................................................................................... 12-312.3 Accessing AS/400 File Members ........................................................................................... 12-312.4 Using the Synonym Feature ................................................................................................... 12-412.5 Performing Distributed Queries ........................................................................................... 12-412.5.1 Two-Phase Commit Processing ...................................................................................... 12-512.5.2 Distributed DRDA Transactions .................................................................................... 12-512.6 Read-Only Gateway ................................................................................................................ 12-512.7 Replicating in a Heterogeneous Environment..................................................................... 12-612.8 Copying Data from Oracle Database 10g to DRDA Server .............................................. 12-612.9 Copying Data from DRDA Server to Oracle Database 10g Server ................................... 12-712.10 Tracing SQL Statements.......................................................................................................... 12-7

    13 Developing Applications

    13.1 Gateway Appearance to Application Programs.................................................................. 13-113.1.1 Fetch Reblocking............................................................................................................... 13-213.2 Using Oracle Stored Procedures with the Gateway .......................................................... 13-213.3 Using DRDA Server Stored Procedures with the Gateway ........................................... 13-313.3.1 Oracle Application and DRDA Server Stored Procedure Completion .................... 13-413.3.2 Procedural Feature Considerations with DB2 ........................................................... 13-513.4 Database Link Behavior .......................................................................................................... 13-513.5 Oracle Database SQL Construct Processing......................................................................... 13-613.5.1 Compatible SQL Functions ............................................................................................. 13-613.5.2 Translated SQL Functions ............................................................................................... 13-613.5.3 Compensated SQL Functions.......................................................................................... 13-6

  • vii

    13.5.4 Native Semantic SQL Functions ..................................................................................... 13-713.5.5 DB2/OS390 SQL Compatibility...................................................................................... 13-713.5.6 DB2/Universal Database SQL Compatibility............................................................. 13-1013.5.7 DB2/400 SQL Compatibility ......................................................................................... 13-1213.5.8 DB2/VM SQL Compatibility ........................................................................................ 13-1513.6 Native Semantics.................................................................................................................... 13-1813.6.1 SQL Functions That Can Be Enabled ........................................................................... 13-1913.6.2 SQL Functions That Can Be Disabled.......................................................................... 13-1913.6.3 SQL Set Operators and Clauses .................................................................................... 13-2013.7 DRDA Data type to Oracle Data type Conversion .......................................................... 13-2013.7.1 Performing Character String Operations ................................................................ 13-2113.7.2 Converting Character String Data types ........................................................... 13-2113.7.3 Performing Graphic String Operations ....................................................................... 13-2113.7.4 Performing Date and Time Operations .................................................................... 13-2213.7.5 Dates ................................................................................................................................. 13-2313.7.6 HS_NLS_DATE_FORMAT Support ............................................................................ 13-2413.7.7 Oracle TO_DATE Function ........................................................................................... 13-2413.7.8 Performing Numeric data type Operations ............................................................... 13-2513.7.9 Mapping the COUNT Function.................................................................................... 13-2513.7.10 Performing Zoned Decimal Operations ...................................................................... 13-2513.8 Passing Native SQL Statements through the Gateway .................................................... 13-2513.8.1 Using DBMS_HS_PASSTHROUGH.EXECUTE_IMMEDIATE ........................... 13-2613.8.2 Retrieving Results Sets Through Passthrough ........................................................... 13-2713.9 Oracle Data Dictionary Emulation on a DRDA Server .................................................... 13-2713.9.1 Using the Gateway Data Dictionary ............................................................................ 13-2713.9.2 Using the DRDA Catalog............................................................................................... 13-2813.10 Defining the Number of DRDA Cursors ............................................................................ 13-28

    14 Security Considerations

    14.1 Security Overview ................................................................................................................... 14-114.2 Authenticating Application Logons...................................................................................... 14-114.3 Defining and Controlling Database Links............................................................................ 14-214.3.1 Link Accessibility.............................................................................................................. 14-214.3.2 Links and CONNECT Clauses........................................................................................ 14-214.4 TCP/IP Security ...................................................................................................................... 14-314.5 Processing Inbound Connections .......................................................................................... 14-314.5.1 User ID Mapping .............................................................................................................. 14-314.6 Passwords in the Gateway Initialization File ...................................................................... 14-5

    15 Migration and Coexistence with Existing Gateways

    15.1 Migrating Existing V4, V8, or V9 Gateway Instances to New Release ............................ 15-115.2 Backout Considerations When Migrating to New Releases .............................................. 15-215.3 New and Changed Parameters When Migrating to Release 10g...................................... 15-215.3.1 New Parameters................................................................................................................ 15-215.3.2 Parameters That Have Been Changed in Usage........................................................... 15-215.3.3 Parameters That Have Been Renamed .......................................................................... 15-3

  • viii

    15.3.4 Obsolete Parameters......................................................................................................... 15-315.4 DRDA Server Considerations ................................................................................................ 15-315.5 Oracle Net Considerations ..................................................................................................... 15-4

    16 Error Messages, Diagnosis, and Reporting

    16.1 Interpreting Gateway Error Messages .................................................................................. 16-116.1.1 Errors Detected by the Oracle Integrating Server ........................................................ 16-116.1.2 Errors Detected by the Gateway..................................................................................... 16-216.1.3 Errors Detected in the DRDA Software......................................................................... 16-216.1.4 Communication Errors .................................................................................................... 16-216.1.5 Errors Detected by the Server Database ........................................................................ 16-316.2 Mapped Errors ......................................................................................................................... 16-316.3 Gateway Error Codes .............................................................................................................. 16-416.4 SQL Tracing and the Gateway .............................................................................................. 16-516.4.1 SQL Tracing in the Oracle Database .............................................................................. 16-516.4.2 SQL Tracing in the Gateway ........................................................................................... 16-6

    A Oracle DB2 Data Dictionary Views

    A.1 Supported Views........................................................................................................................ A-1A.2 Data Dictionary View Tables.................................................................................................... A-2A.2.1 ALL_CATALOG ................................................................................................................ A-2A.2.2 ALL_COL_COMMENTS .................................................................................................. A-2A.2.3 ALL_CONS_COLUMNS .................................................................................................. A-2A.2.4 ALL_CONSTRAINTS ....................................................................................................... A-3A.2.5 ALL_INDEXES ................................................................................................................... A-3A.2.6 ALL_IND_COLUMNS....................................................................................................... A-5A.2.7 ALL_OBJECTS .................................................................................................................... A-5A.2.8 ALL_SYNONYMS ............................................................................................................. A-6A.2.9 ALL_TABLES ..................................................................................................................... A-6A.2.10 ALL_TAB_COLUMNS ...................................................................................................... A-7A.2.11 ALL_TAB_COMMENTS .................................................................................................. A-8A.2.12 ALL_USERS ........................................................................................................................ A-9A.2.13 ALL_VIEWS ....................................................................................................................... A-9A.2.14 COLUMN_PRIVILEGES ................................................................................................... A-9A.2.15 DICTIONARY ................................................................................................................... A-10A.2.16 DUAL.................................................................................................................................. A-10A.2.17 TABLE_PRIVILEGES ...................................................................................................... A-10A.2.18 USER_CATALOG ............................................................................................................ A-10A.2.19 USER_COL_COMMENTS .............................................................................................. A-10A.2.20 USER_CONSTRAINTS ................................................................................................... A-11A.2.21 USER_CONS_COLUMNS .............................................................................................. A-11A.2.22 USER_INDEXES ............................................................................................................... A-12A.2.23 USER_OBJECTS ............................................................................................................... A-13A.2.24 USER_SYNONYMS ......................................................................................................... A-14A.2.25 USER_TABLES ................................................................................................................. A-14A.2.26 USER_TAB_COLUMNS ................................................................................................. A-15A.2.27 USER_TAB_COMMENTS .............................................................................................. A-16

  • ix

    A.2.28 USER_USERS..................................................................................................................... A-16A.2.29 USER_VIEWS .................................................................................................................... A-17

    B Sample Files

    B.1 Sample Gateway Initialization File ......................................................................................... B-1B.2 Sample Oracle Net tnsnames.ora File ..................................................................................... B-2B.3 Sample Oracle Net listener.ora File ......................................................................................... B-2

    C DRDA-Specific Parameters

    C.1 Modifying the Gateway Initialization File ............................................................................. C-1C.2 Setting Parameters in the Gateway Initialization File .......................................................... C-1C.3 Syntax and Usage....................................................................................................................... C-1C.4 Gateway Initialization File Parameters................................................................................... C-2C.4.1 DRDA_CACHE_TABLE_DESC ....................................................................................... C-2C.4.2 DRDA_CAPABILITY ......................................................................................................... C-2C.4.3 DRDA_CODEPAGE_MAP ............................................................................................... C-2C.4.4 DRDA_COMM_BUFLEN.................................................................................................. C-2C.4.5 DRDA_CONNECT_PARM (SNA format)...................................................................... C-3C.4.6 DRDA_CONNECT_PARM (TCP/IP format) ............................................................... C-3C.4.7 DRDA_CMSRC_CM_IMMEDIATE................................................................................. C-3C.4.8 DRDA_DEFAULT_CCSID ................................................................................................ C-3C.4.9 DRDA_DESCRIBE_TABLE ............................................................................................... C-4C.4.10 DRDA_DISABLE_CALL ................................................................................................... C-4C.4.11 DRDA_FLUSH_CACHE.................................................................................................... C-4C.4.12 DRDA_GRAPHIC_CHAR_SIZE ...................................................................................... C-4C.4.13 DRDA_GRAPHIC_PAD_SIZE ......................................................................................... C-4C.4.14 DRDA_GRAPHIC_LIT_CHECK...................................................................................... C-5C.4.15 DRDA_GRAPHIC_TO_MBCS.......................................................................................... C-5C.4.16 DRDA_ISOLATION_LEVEL ............................................................................................ C-5C.4.17 DRDA_LOCAL_NODE_NAME....................................................................................... C-6C.4.18 DRDA_MBCS_TO_GRAPHIC.......................................................................................... C-6C.4.19 DRDA_OPTIMIZE_QUERY.............................................................................................. C-6C.4.20 DRDA_PACKAGE_COLLID ............................................................................................ C-6C.4.21 DRDA_PACKAGE_CONSTOKEN.................................................................................. C-7C.4.22 DRDA_PACKAGE_NAME............................................................................................... C-7C.4.23 DRDA_PACKAGE_OWNER............................................................................................ C-7C.4.24 DRDA_PACKAGE_SECTIONS........................................................................................ C-8C.4.25 DRDA_READ_ONLY ....................................................................................................... C-8C.4.26 DRDA_RECOVERY_PASSWORD................................................................................... C-8C.4.27 DRDA_RECOVERY_USERID........................................................................................... C-8C.4.28 DRDA_REMOTE_DB_NAME .......................................................................................... C-9C.4.29 DRDA_SECURITY_TYPE.................................................................................................. C-9C.4.30 FDS_CLASS ......................................................................................................................... C-9C.4.31 FDS_CLASS_VERSION ..................................................................................................... C-9C.4.32 FDS_INSTANCE................................................................................................................. C-9C.4.33 HS_FDS_FETCH_ROWS ................................................................................................. C-10

  • x

    C.4.34 HS_LANGUAGE .............................................................................................................. C-10C.4.35 HS_NLS_NCHAR............................................................................................................. C-10C.4.36 LOG_DESTINATION ...................................................................................................... C-10C.4.37 ORA_MAX_DATE............................................................................................................ C-11C.4.38 ORA_NLS10 ...................................................................................................................... C-11C.4.39 ORACLE_DRDA_TCTL .................................................................................................. C-11C.4.40 ORACLE_DRDA_TRACE ............................................................................................... C-11C.4.41 TRACE_LEVEL ................................................................................................................. C-11

    D National Language Support

    D.1 Overview of NLS Interactions.................................................................................................. D-1D.2 Client and Oracle Integrating Server Configuration ............................................................ D-3D.3 Gateway Language Interaction with DRDA Server ............................................................ D-4D.3.1 Gateway Configuration ..................................................................................................... D-4D.3.2 NLS Parameters in the Gateway Initialization File........................................................ D-5D.4 Gateway Codepage Map Facility............................................................................................. D-6D.5 Multi-Byte and Double-Byte Support in the Gateway ......................................................... D-8D.6 Message Availability .............................................................................................................. D-10D.7 Example of NLS Configuration.............................................................................................. D-11

    E Configuration Worksheet

    F Quick Reference to Oracle SQL Functions

    G Sample Applications

    G.1 DB2INS ........................................................................................................................................ G-1G.2 ORAIND...................................................................................................................................... G-2

    Index

  • xi

    Preface

    The Oracle Transparent Gateway for DRDA provides users with transparent access to DRDA databases as if they were Oracle databases.

    Intended AudienceThis guide is intended for anyone responsible for installing, configuring, and administering the gateway, and also for application developers.

    Read this guide if you are responsible for tasks such as:

    ■ Installing and configuring the Oracle Transparent Gateway for DRDA

    ■ Configuring the SNA and TCP/IP Products

    ■ Setting up gateway security

    ■ Diagnosing gateway errors

    ■ Using the gateway to access tables in DRDA databases

    ■ Writing applications that access DRDA databases through the gateway

    You must understand the fundamentals of transparent gateways and the UNIX operating systems before using this guide to install or administer the gateway.

    ProcessorsRefer to the Oracle Database Installation Guide 10g for UNIX Systems and to the certification matrix on Oracle MetaLink for the most up-to-date list of certified hardware platforms and operating system version requirements to operate the gateway for your Linux, AIX-Based, HP-UX, or Solaris system. The Oracle MetaLink Web site can be found at the following URL:

    http://metalink.oracle.com/

    The gateway processor requirements for your platform are as follows:

    ■ for Linux 32-bit: Intel Pentium-based processors

    ■ for Linux 64-bit: Intel Itanium 2 based 64-bit systems

    ■ for Linux S/390: Any processor that can run Linux S/390

    ■ for AIX-Based Systems: IBM pSeries

    ■ for HP-UX: HP 9000 Series HP-UX that can run the required version of HP-UX

  • xii

    ■ for Solaris: A Solaris Operating System (SPARC 64-bit) that can run the required version of Solaris with 64-bit architecture

    Documentation AccessibilityOur goal is to make Oracle products, services, and supporting documentation accessible, with good usability, to the disabled community. To that end, our documentation includes features that make information available to users of assistive technology. This documentation is available in HTML format, and contains markup to facilitate access by the disabled community. Accessibility standards will continue to evolve over time, and Oracle is actively engaged with other market-leading technology vendors to address technical obstacles so that our documentation can be accessible to all of our customers. For more information, visit the Oracle Accessibility Program Web site at

    http://www.oracle.com/accessibility/

    Accessibility of Code Examples in DocumentationScreen readers may not always correctly read the code examples in this document. The conventions for writing code require that closing braces should appear on an otherwise empty line; however, some screen readers may not always read a line of text that consists solely of a bracket or brace.

    Accessibility of Links to External Web Sites in DocumentationThis documentation may contain links to Web sites of other companies or organizations that Oracle does not own or control. Oracle neither evaluates nor makes any representations regarding the accessibility of these Web sites.

    TTY Access to Oracle Support ServicesOracle provides dedicated Text Telephone (TTY) access to Oracle Support Services within the United States of America 24 hours a day, seven days a week. For TTY support, call 800.446.2398.

    Related DocumentsThe Oracle Transparent Gateway for DRDA Installation and User's Guide for UNIX is included as part of your product shipment. Also included is:

    Oracle Database Heterogeneous Connectivity Administrator's Guide

    This guide contains information common to all heterogeneous gateways, including important information on functions, parameters, and error messages.

    Oracle Database Administrator's Guide

    Oracle Database Concepts

    Oracle Database Error Messages

    Oracle Database Performance Tuning Guide

    Oracle Database Security Guide

    Oracle Database Heterogeneous Connectivity Administrator's Guide

  • xiii

    ConventionsExamples of input and output for the gateway and Oracle environment are shown in a special font:

    $ mkdir /ORACLE/your_name

    All output is shown as it actually appears. For input, refer to the following list:

    example text Words or phrases, such as mkdir and ORACLE, must be entered exactly as spelled and in the letter case shown. In this example, mkdir must be entered in lowercase letters and ORACLE must be entered in uppercase letters.

    italic text Italicized uppercase and lowercase, such as your_name, indicates that you must substitute a word or phrase, such as an actual directory name.

    monospace text or phrases refer to a file directory structure, such as a directory, path, or file ID.

    {} Curly braces indicate that one of the enclosed arguments is required. Do not enter the curly braces themselves.

    [] Brackets enclose optional clauses or arguments from which you can choose one or more. Do not enter the brackets themselves.

    ... Ellipses indicate that the preceding item can be repeated. You can enter an arbitrary number of similar items.

    | The vertical line separates choices.

    SQL*Plus PromptsThe SQL*Plus prompt, SQL>, appears in SQL statements and SQL*Plus command examples. Enter your response at the prompt. Do not enter the text of the prompt, "SQL>", in your response.

    Storage MeasurementsStorage measurements use the following abbreviations:

    ■ KB, for kilobyte, which equals 1,024 bytes

    ■ MB, for megabyte, which equals 1,048,576 bytes

    ■ GB, for gigabyte, which equals 1,073,741,824 bytes

  • xiv

  • Introduction 1-1

    1Introduction

    The Oracle Transparent Gateway for Distributed Relational Database Architecture (DRDA) enables you to:

    ■ Integrate heterogeneous database management systems so that they appear as a single homogeneous database system

    ■ Read and write data from Oracle applications to data in DB2/OS390, DB2/400, DB2 Universal Database, DB2/VM, and IBM SQL/DS on VM databases in addition to any Oracle Database server data.

    This chapter provides information about the architecture, uses, and features of the Oracle Transparent Gateway for DRDA.

    This chapter contains the following sections:

    ■ Introduction to the Oracle Transparent Gateway

    ■ Release 10g Gateways

    ■ Gateway Capabilities

    ■ Terms

    ■ Architecture

    ■ Implementation

    ■ How the Gateway Works

    ■ Oracle Tools and the Gateway

    ■ Features

    1.1 Introduction to the Oracle Transparent GatewayIn todays global economy, information is the most valuable resource o a company. Whether you need to analyze new markets, tailor your products to meet local demands, increase your ability to handle complex customer information, or streamline operations, your company requires instant access to current and complete information.

    Company growth and diversification often mean functioning with a collage of applications and geographically scattered data that may be using incompatible networks, platforms, and storage formats. Diverse application standards and storage formats can make integration of information difficult. Oracle offers integration technologies to overcome these technical barriers. Oracle Open Gateways simplify complex systems and remove obstacles to information, providing your company the opportunity to focus on business.

  • Release 10g Gateways

    1-2 Oracle Transparent Gateway for DRDA Installation and User's Guide

    Protection of Current InvestmentOracle Transparent Gateway for DRDA gives your company the ability to develop its information systems without forfeiting its investments in current data and applications. The gateway gives you access to your Oracle data and DB2 data with a single set of applications while you continue to use existing IBM applications to access your DB2 data. You can also use more productive database tools and move to a distributed database technology without giving up access to your current data.

    If you choose to migrate to Oracle Database technology, then the gateway enables you to control the pace of your migration. As you transfer applications from your previous technology to the Oracle Database, you can use the gateway to move the DB2 data into Oracle Databases.

    1.2 Release 10g GatewaysThe Oracle Database 10g provides the foundation for the next generation of the Oracle Open gateways Release 10g, which will deliver enhanced integration capabilities by exploiting Oracle Database 10g Heterogeneous Services. Heterogeneous Services is a component of Oracle Database 10g. Oracle Database 10g provides the common architecture for future generations of the gateways. For detailed information on Oracle Heterogeneous Services, refer to Oracle Database Heterogeneous Connectivity Administrator's Guide.

    The version 10 gateways are even more tightly integrated with Oracle Database 10g than previous versions, enabling improved performance and enhanced functionality while still providing transparent integration of Oracle and non-Oracle data. For example, connection initialization information is available in the local Oracle Database 10g server, reducing the number of round trips and the amount of data sent over the network. SQL execution is also faster, because statements issued by an application are parsed and translated once and can then be reused by multiple applications.

    Version 10 gateways leverage any enhancements in Oracle Database 10g, and you can quickly extend those benefits to your non-Oracle data.

    Advantages of Oracle Transparent Gateway for DRDAOracle Transparent Gateway for DRDA enables Oracle applications to access the DRDA Application Servers, such as DB2 for MVS, through SQL The gateway and Oracle Database 10g together create the appearance that all data resides on a local Oracle Database 10g, even though data might be widely distributed. If data is moved from a DRDA Application Server database to an Database server, then no changes in application design or function are needed. The gateway handles all differences in both data types and SQL functions between the application and the database.

    1.3 Gateway CapabilitiesOracle Transparent Gateway for DRDA gives you the power to integrate your heterogeneous system into a single, seamless environment. This integration enables you to make full use of existing hardware and applications throughout your corporate-wide environment. You can eliminate the need to rewrite applications for each configuration, and you can avoid the tedious, error-prone process of manual data transfer. Together with the Oracle tools, networking, and data server technology, the Oracle Transparent Gateway for DRDA sets a high standard for seamless, enterprise-wide information access.

  • Gateway Capabilities

    Introduction 1-3

    Oracle Transparent Gateway for DRDA enables applications to read and update DB2 data and Oracle data as if all of the data were stored in a single database. As a result, end users and application programmers are not required to know either the physical location or the storage characteristics of the data. This transparency not only enables you to integrate heterogeneous data seamlessly, it simplifies your gateway implementation, application development, and maintenance.The gateway capabilities are as follows:

    ■ Transparency at All Levels

    ■ Extended Database Services

    ■ Extended Advanced Networking, Internet and Intranet Support

    ■ Dynamic Dictionary Mapping

    ■ SQL

    ■ Data Definition Language

    ■ Data Control Language

    ■ Passthrough and Native DB2 SQL

    ■ Stored Procedures

    ■ Languages

    ■ Oracle Database Technology and Tools

    ■ SQL*Plus

    ■ Two-Phase Commit and Multi-Site Transactions

    ■ Site Autonomy

    ■ Migration and Coexistence

    ■ Security

    1.3.1 Transparency at All LevelsThe Oracle Transparent Gateway for DRDA gives you transparency at every level within your enterprise. Oracle Transpatent gateway gives you transparency at the following levels:

    ■ Location

    End users can access tables by name without needing to understand the physical location of the tables.

    ■ Network

    The gateways exploit the Oracle Net technology to allow users to access data across multiple networks without concern for the network architecture. TCP/IP protocol is supported.

    ■ Operating system

    You can access data stored under multiple operating systems without being aware of the operating systems that hold the data.

    ■ Data storage

    Data can be accessed regardless of the database or file format.

    ■ Access method

  • Gateway Capabilities

    1-4 Oracle Transparent Gateway for DRDA Installation and User's Guide

    You can utilize a single dialect of SQL for any data store, eliminating the need to code for database-specific access methods or SQL implementations.

    1.3.2 Extended Database ServicesFollowing are some of the sophisticated Oracle Database 10g services available through the gateway:

    ■ SQL functions

    Your application can access all your data using Oracle SQL, which is rich in features. Advanced Oracle Database 10g server functions, such as outer joins, are available even if the target data stores do not support them in a native environment. The method by which the gateways are integrated with the Oracle Database 10g server ensures that the latest features of each database release are always available immediately to the gateway.

    ■ Distributed capabilities

    Heterogeneous data can be integrated seamlessly because Oracle distributed capabilities, such as JOIN and UNION, can be applied against non-Oracle data without any special programming or mapping.

    ■ Distributed query optimization

    The Oracle Database 10g can utilize its advanced query optimization techniques to ensure that SQL statements are executed efficiently against any of your data. The data distribution and storage characteristics of local and remote data are equally considered.

    ■ Two-phase commit protection

    The database server two-phase commit mechanism provides consistency across data stores by ensuring that a transaction that spans data stores is still treated as a single unit of work. Changes are not committed (or permanently stored) in any data store unless the changes can be committed in all data stores that will be affected.

    ■ Stored procedures and database triggers

    The same Oracle stored procedures and database triggers can be used to access all of your data, thereby ensuring uniform enforcement of your business rules across the enterprise.

    1.3.3 Extended Advanced Networking, Internet and Intranet SupportThe gateway integration with the Oracle Database 10g extends (to non-Oracle data) the benefits of the Oracle Internet and Oracle Net software and extends the benefits of the Oracle client/server and server/server connectivity software. These powerful features include:

    ■ Application server support

    Any Internet or intranet application that can access data in Oracle Database can also incorporate information from data stores accessible through the gateways. Web browsers can connect to the Oracle Database using any application server product that supports Oracle software.

    ■ Implicit protocol conversion

    Oracle and Oracle Net can work together as a protocol converter, allowing applications to transparently access other data stores on platforms that do not

  • Gateway Capabilities

    Introduction 1-5

    support the clients network protocol. An Oracle Database 10g can use TCP/IP to communicate with the gateway and another data store.

    ■ Advanced Security

    Non-Oracle data can be protected from unauthorized access or tampering during transmission to the client. This is done by using the hardware-independent and protocol-independent encryption and CHECKSUM services of Advanced Security.

    ■ Wireless communication

    Oracle Mobile Agents, an Oracle industry-leading mobile technology, enables wireless communication to Oracle Database 10g or to any databases that are accessible through the gateways. This gives your field personnel direct access to enterprise data from mobile laptop computers.

    1.3.4 Dynamic Dictionary MappingThe simple setup of the gateway does not require any additional mapping. Before an application can access any information, the application must be told the structure of the data, such as the columns of a table and their lengths. Many products require administrators to manually define that information in a separate data dictionary stored in a hub. Applications then access the information using the hub dictionary instead of the native dictionaries of each database. This approach requires a great deal of manual configuration and maintenance on your part. As administrators, you must update the data dictionary in the hub whenever the structure of a remote table is changed.

    Inefficient duplication is not necessary with Oracle Transparent Gateway for DRDA. The gateway uses the existing native dictionaries of each database. Your applications access data using the dictionaries designed specifically for each database, which means no redundant dictionary ever needs to be created or maintained.

    1.3.5 SQLOracle Transparent gateways ease your application development and maintenance by allowing you to access any data using a uniform set of SQL. Changes to the location, storage characteristics, or table structure do not require any changes to your applications. ANSI and ISO standard SQL are supported, along with powerful Oracle extensions.

    1.3.6 Data Definition Language Oracle Applications can create tables in target data stores by using native data definition language (DDL) statements.

    1.3.7 Data Control Language You can issue native data control language (DCL) statements from an Oracle environment, allowing central administration of user privileges and access levels for heterogeneous data stores.

    1.3.8 Passthrough and Native DB2 SQL Execution of native DB2 SQL can be passed through the gateway for execution directly against DB2. This enables applications to send statements, such as a DB2 CREATE TABLE, to the gateway for execution on a target DB2 system.

  • Gateway Capabilities

    1-6 Oracle Transparent Gateway for DRDA Installation and User's Guide

    1.3.9 Stored ProceduresThe gateway enables you to exploit both Oracle and non-Oracle stored procedures, leveraging your investments in a distributed, multi-database environment. Oracle stored procedures can access multiple data stores easily, without any special coding for the heterogeneous data access.

    Oracle Stored Procedures Oracle stored procedures enable you to access and update DB2 data using centralized business rules stored in the Oracle Database 10g. Using Oracle stored procedures can increase your database performance by minimizing network traffic. Instead of sending individual SQL statements across the network, an application can send a single EXECUTE command to begin an entire PL/SQL routine.

    Native DB2 Stored Procedures The gateway can execute DB2 stored procedures using standard Oracle PL/SQL. The Oracle application executes the DB2 stored procedure as if it were an Oracle remote procedure.

    1.3.10 LanguagesAny application or tool that supports the Oracle Database 10g can access over thirty different data sources through the Oracle gateways. A wide variety of open system tools from Oracle Corporation and third-party vendors can be used, even if the data is stored in legacy, proprietary formats. Hundreds of tools are supported, including ad hoc query tools, Web browsers, turnkey applications, and application development tools.

    1.3.11 Oracle Database Technology and Tools The gateway is integrated into the Oracle Database technology, which provides global query optimization, transaction coordination for multi-site transactions, support for all Oracle Net configurations, and so on. Tools and applications that support the Oracle Database server can be used to access heterogeneous data through the gateway.

    1.3.12 SQL*Plus You can use SQL*Plus for moving data between databases. This product gives you the ability to copy data from your department databases to corporate Oracle Database instances.

    1.3.13 Two-Phase Commit and Multi-Site TransactionsThe gateway can participate as a partner in multi-site transactions and two-phase commit. How this occurs depends on the capabilities of the underlying data source, meaning that the gateway can be implemented as any one of the following:

    ■ Full two-phase commit partner

    ■ Commit point site

    ■ Single-site update partner

    ■ Read-only partner

    The deciding factors for the implementation of the gateway are the locking and transaction-handling capabilities of your target database.

  • Architecture

    Introduction 1-7

    Oracle Transparent Gateway for DRDA, by default, is configured as a commit point site, that is, commit confirm protocol. Optionally, you can configure the gateway as read-only if you choose to enforce read-only capability through the gateway. Other protocols are not supported. Refer to "Read-Only Gateway" on page 12-5 in Chapter 12, "Using the Oracle Transparent Gateway for DRDA".

    1.3.14 Site Autonomy All Oracle Database products, including gateways, supply site autonomy. For example, administration of a data source remains the responsibility of the original system administrator. Site autonomy also functions such that gateway products do not override the security measures established by the data source or operating environment.

    1.3.15 Migration and CoexistenceThe integration of a data source through the gateway does not require any changes to be made to applications at the data source. The result is that the Oracle Database server technology is non-intrusive, providing coexistence and an easy migration path.

    1.3.16 SecurityThe gateway does not bypass existing security mechanisms. gateway security coexists with the security mechanisms already used in the operating environment of the data source.

    Functionally, gateway security is identical to that of an Oracle Database, as described in the Oracle Database Administrator's Guide. Oracle Database security is mapped to the data dictionary of the data source.

    1.4 TermsThe terms used in this guide do not necessarily conform to the IBM terminology. The following list presents several terms and their meanings as used within this guide:

    DRDA data is, generically, any database data accessed through DRDA.

    DRDA database is the collection of data that belongs to a DRDA Server

    DRDA server is a database server that can be accessed through DRDA. IBM terminology for a DRDA Server is a DRDA Application Server, or AS.

    DRDA Server type is a specific database product or program that can act as a DRDA Server.

    Oracle integrating server is any Oracle Database 10g server instance that communicates with the Oracle Transparent Gateway for DRDA to distribute database access operations to a DRDA Server. The Oracle integrating server can also be used for non-gateway applications.

    DB2 Universal Database is a generic name for the UNIX-based or Windows-based implementations of DB2. DB2/UDB is frequently used as an abbreviation for DB2 Universal Database.

    1.5 ArchitectureThe Oracle Transparent Gateway for DRDA works with the Oracle Database 10g

  • Architecture

    1-8 Oracle Transparent Gateway for DRDA Installation and User's Guide

    to shield most of the differences of the non-Oracle database from Oracle applications. This means that the Oracle applications can access the Oracle Database 10g data and the DRDA database data as if it were Oracle Database data located at the Oracle integrating server.

    The architecture consists of the following main components:

    ■ Client

    The client is an Oracle application or tool.

    ■ Oracle integrating server

    The Oracle integrating server is an Oracle Database instance accessed by an Oracle Database 10g with procedural and distributed options. Usually, the Oracle integrating server is installed on the same host as the gateway, but this is not a requirement. The Oracle integrating server and the gateway communicate in the normal Oracle Database-to-server manner.

    If the Oracle integrating server is not on the host where the gateway resides, then you must install the correct Oracle networking software on the platform where the server resides. For Oracle Database 10g, you must install Oracle Net on the Oracle Database 10g machine.

    ■ Oracle Transparent Gateway for DRDA

    The gateway must be installed on hosts that are running the appropriate operating system.

    If the Oracle integrating server is not on the same host, then you must also install Oracle Net so that the gateway and Oracle Database 10g server can communicate.

    ■ DRDA Server

    The DRDA Server must be a DRDA Server database on a system accessible to the host and using either the SNA or TCP/IP protocols.

    Multiple Oracle Database 10g servers can access the same gateway. A single host gateway installation can be configured to access more than one DRDA Server.

    Figure 1–1 illustrates the gateway architecture.

    Figure 1–1 The Gateway Architecture

  • How the Gateway Works

    Introduction 1-9

    1.6 ImplementationWhen the gateway is installed on your host, it has some of the same components as an Oracle Database instance on your host. The gateway has the following components:

    ■ A base file directory, similar to the one associated with an Oracle instances ORACLE_HOME environment variable

    ■ A gateway system identifier (SID), comparable to an Oracle instances ORACLE_SID

    ■ Oracle Net to support communication between the Oracle integrating server and the Oracle Transparent Gateway for DRDA

    The gateway does not have:

    ■ Control, redo log, or database files

    ■ The full set of subdirectories and ancillary files that are associated with an installed Oracle Database 10g

    Because the gateway does not have background processes and does not need a management utility, such as Oracle Enterprise Manager, you do not need to start the gateway product. Each Oracle Database 10g user session that accesses a particular gateway creates an independent process on the host. This process runs the gateway session and executes SNA or TCP/IP functions to communicate with a DRDA Server.

    1.7 How the Gateway WorksThe gateway has no database functions of its own. Instead, it provides an interface by which an Oracle Database 10g can direct part or all of a SQL operation to a DRDA database.

    The gateway that is supporting the DRDA Server is identified to the Oracle integrating server using a database link. The database link is the same construct that is used to identify other Oracle Database 10g databases. Tables on the DRDA Server are referenced in SQL as:

    table_name@dblink_name

    or

    owner.table_name@dblink_name

    If you create synonyms or views in the Oracle integrating server database, then you can refer to tables on the DRDA Server by using simple names as though the table were local to the Oracle integrating server.

    When the Oracle integrating server encounters a reference to a table that is on the DRDA Server, the applicable portion of the SQL statement is sent to the gateway for processing. Any host variables that are associated with the SQL statement are bound to the gateway and, therefore, to the DRDA Server.

    The gateway is responsible for sending these SQL statements to the DRDA Server for execution and for fielding and returning responses. The responses are either data or messages. Any conversions between Oracle data types and DRDA data types are performed by the gateway. Both the Oracle integrating server and the application read and process only Oracle data types.

  • Oracle Tools and the Gateway

    1-10 Oracle Transparent Gateway for DRDA Installation and User's Guide

    SQL DifferencesNot all SQL implementations are the same. The Oracle Database 10g supports a larger set of built-in functions than the databases that are currently accessed through the gateway. The Oracle integrating server and the gateway work together to convert SQL to a form that is compatible with the specific DRDA Server.

    During this conversion, an Oracle Database 10g function can be converted to a function that is recognizable to the specific DRDA Server. For example, the Oracle Database 10g NVL function is converted to the DB2 VALUE function.

    Alternatively, the Oracle integrating server withholds functions that are not executable by the DRDA Server and performs them after rows are fetched from the DRDA database. This processing generally applies to SELECT statements. The Oracle integrating server and the gateway cannot perform this kind of manipulation on UPDATE, INSERT, or DELETE statements because doing so changes transaction semantics.

    1.8 Oracle Tools and the GatewayUse the Oracle Transparent Gateway to run applications, such as Oracle Database tools, that read and write data that is stored in DRDA databases.

    While the Oracle Transparent Gateway for DRDA provides no new application or development facilities, it extends the reach of existing Oracle Database tools to include data in non-Oracle databases that support DRDA.

    Using the Oracle Transparent Gateway for DRDA with other Oracle products can greatly extend the capabilities of the stand-alone gateway.

    1.8.1 SQL*PlusUse SQL*Plus and the Oracle Transparent Gateway for DRDA to create a distributed database system, providing an easy-to-use transfer facility for moving data between the distributed databases. One possible use is to distribute the data in your corporate Oracle Database to departmental DRDA databases. You can also distribute data in your corporate DRDA database to departmental Oracle Databases.

    1.9 FeaturesFollowing is a list of important features that characterize release of the Oracle gateway. The features are:

    ■ Heterogeneous Services Architecture

    ■ Performance Enhancements

    ■ Fetch Reblocking

    ■ Oracle Database 10g Passthrough Supported

    ■ Retrieving Result Sets Through Passthrough

    ■ Support for TCP/IP

    ■ Native Semantics

    ■ Columns Supported in a Result Set

    ■ EXPLAIN_PLAN Improvement

    ■ Heterogeneous Database IntegrationMinimum Impact on Existing Systems

  • Features

    Introduction 1-11

    ■ Large Base of Data Access

    ■ Application Portability

    ■ Remote Data Access

    ■ Support for Distributed Applications

    ■ Application Development and End User Tools

    ■ Password Encryption Utility

    ■ Support for DB2/OS390 V6, V7 and V8 Stored Procedures

    ■ Codepage Map Facility

    ■ IBM DB2 Universal Database Support

    ■ IBM DB2 Version 5.1 ASCII Tables

    ■ Read-Only Support

    ■ Support for Graphic and Multi-byte Data

    ■ Support for DB2/UDB on Intel Hardware

    ■ Data Dictionary Support for DB2/UDB

    Heterogeneous Services ArchitectureThE 10.2 release of the Oracle Transparent Gateway for DRDA utilizes the Oracle Heterogeneous Services component within the Oracle Database 10g. Heterogeneous Services is the building block for the next generation of Oracle Open Gateways.

    For detailed information about heterogeneous services, refer to Oracle Database Heterogeneous Connectivity Administrator's Guide.

    Performance EnhancementsOracle Transparent Gateway for DRDA contains several internal performance enhancements. This product has shown major improvements in response time and CPU utilization for all relevant address spaces for a variety of workloads compared to version 9 gateways. The actual performance improvement at your site might vary, depending on your installation type and workload.

    Fetch Reblocking The array size of the application for SELECT is effective between the application and the Oracle integrating server. However, the array blocksize and the block fetch between the Oracle integrating server and the gateway are controlled by two Heterogeneous Services initialization parameters: HS_RPC_FETCH_SIZE and HS_RPC_FETCH_REBLOCKING. These parameters are specified in the Gateway Initialization File. Refer to Oracle Database Heterogeneous Connectivity Administrator's Guide for more information.

    Oracle Database 10g Passthrough SupportedYou can use the Oracle Database 10g DBMS_HS_PASSTHROUGH.EXECUTE_IMMEDIATE method to pass commands or statements available in your DRDA database through the gateway.

    Retrieving Result Sets Through PassthroughOracle Transparent gateway for DRDA provides a facility to retrieve result sets from a select SQL statement issued with passthrough. Refer to "Retrieving Results Sets Through Passthrough" on page 13-27 for additional information.

  • Features

    1-12 Oracle Transparent Gateway for DRDA Installation and User's Guide

    Support for TCP/IPThis release of the gateway supports the TCP/IP communication protocol between the gateway and the DRDA Server. Refer to Chapter 9, "Configuring TCP/IP", for further information.

    Native Semantics This release of the gateway supports the ability to selectively enable or disable post-processing of various SQL functions by the DRDA Server. Refer to "Native Semantics" on page 13-18 for further information.

    Columns Supported in a Result SetOracle Transparent gateway for DRDA supports up to 1000 columns in a result set.

    EXPLAIN_PLAN ImprovementThe EXPLAIN_PLAN table contains the actual SQL statements passed to the DRDA Server from the Oracle Database 10g through the gateway.

    Heterogeneous Database IntegrationThe gateway support for ANSI-standard SQL enables read/write access to DRDA databases. Even if your data exists on different platforms in different applications, new applications can use all data, regardless of location.

    Minimum Impact on Existing SystemsThe gateway does not require installation of additional Oracle software on your OS/390 (MVS), AS/400, VM, or UNIX target system. The database interface that it uses is provided by IBM and is built into the DRDA database products and SNA or TCP/IP facilities that already exist on these platforms.

    Configuring an IBM system for DRDA access typically consists of defining the SNA or TCP/IP resources involved and establishing access security definitions specific to the target database.

    Large Base of Data AccessDRDA Application Server Function is supported by most IBM DB2 database products.

    Application PortabilityThe gatewa’s ability to interface with heterogeneous databases makes it possible to develop a single set of portable applications that can be used against both Oracle and IBM databases, and any other databases for which Oracle Corporation provides gateways.

    Remote Data AccessLocation flexibility is maximized because the gateway architecture permits network connections between each of the components. The application can use the Oracle client-server capability to connect to a remote Oracle integrating server through Oracle Net. The Oracle integrating server can connect to a remote gateway using a database link. The gateway connects to DRDA Server through SNA or TCP/IP network facilities.

    The benefits of remote access are:

    ■ Provides a means to allocate the appropriate resource to a given task

  • Features

    Introduction 1-13

    You can, for example, move application development off expensive processors and onto cost-efficient workstations or microcomputers.

    ■ Expands the number of available data sources

    Without remote access, you are limited to the data available in the local environment. With remote access, your data sources are limited only by your networks.

    ■ Provides a means to tailor an application environment to a given user

    For example, some users prefer a block-mode terminal environment, while others prefer a bit-mapped, graphics driven terminal environment. Remote access can satisfy both because you are not constrained by the interface environment imposed by the location of your data.

    Support for Distributed ApplicationsBecause the gateway gives your application direct access to DRDA data, you eliminate the need to upload and download large quantities of database data to other processors. Instead, you can access data where it is, when you want it, without having to move the data between machines and risk unsynchronized and inconsistent data. Avoiding massive data replication can also reduce aggregate disk storage requirements over all your systems.

    However, if your system design requires moving data among the machines in a network, SQL*Plus and the gateway can simplify the data transfer. With a single SQL*Plus command, you can move entire sets of data from one node of the network to another and from one database to another.

    You can pass commands and statements specific to your DRDA database through the gateway to be executed by the DRDA database. For example, you can pass DB2/OS390 commands through the gateway for DB2 to execute. You can also execute stored procedures defined in non-Oracle databases.

    Application Development and End User ToolsThrough the gateway, Oracle extends the range of application development and end-user tools you can use to access your IBM databases. These tools increase application development and user productivity by reducing prototype, development, and maintenance time. Current Oracle Database users do not have to learn a new set of tools to access data stored in DRDA databases. Instead, they can access Oracle Database and DRDA data with a single set of tools.

    With the gateway and the application development tools available from Oracle you can develop a single set of applications to access Oracle Database and DRDA data. Users can use the decision support tools available from Oracle to access Oracle Database and DRDA data. These tools can run on remote machines connected through Oracle Net to the Oracle integrating server.

    When designing applications, keep in mind that the gateway is designed for retrieval and relatively light transaction loads. The gateway is not currently designed to be a heavy transaction processing system.

    Password Encryption UtilityThe 10.2 release of the gateway includes a utility to support encryption of plain-text passwords in the Gateway Initialization File. Refer to Chapter 14, "Security Considerations" for details.

  • Features

    1-14 Oracle Transparent Gateway for DRDA Installation and User's Guide

    Support for DB2/OS390 V6, V7 and V8 Stored ProceduresThe 10.2 release of the gateway supports the native stored procedure catalogs in DB2 V6, V7 and V8 (SYSIBM.SYSROUTINES and SYSIBM.SYSPARMS).

    Codepage Map FacilityThis release of the gateway supports external mapping of IBM CCSIDs to Oracle Character Sets. Refer to "Gateway Codepage Map Facility" on page D-6 in Appendix D, "National Language Support".

    IBM DB2 Universal Database SupportThe 10.2 release supports IBM DB2 Universal Database.

    IBM DB2 Version 5.1 ASCII TablesIBM DB2 Version 5.1 supports ASCII and EBCDIC character sets. The character set selection is defined during table creation. The Oracle Transparent gateway for DRDA supports access to EBCDIC tables and ASCII tables. Refer to Appendix D, "National Language Support".

    Read-Only Support The 10.2 release enables the gateway to be configured as a read-only gateway. In this mode, no modifying of user data will be allowed. For more information, refer to "DRDA_READ_ONLY" on page C-8.

    Support for Graphic and Multi-byte DataThe 10.2 release of the gateway adds support for DB2 GRAPHIC and VARGRAPHIC data types. Refer to Chapter 13, "Developing Applications".

    Support for DB2/UDB on Intel HardwareThe 10.2 release of the gateway adds support for DRDA Servers running on Microsoft Windows and Linux on Intel hardware.

    Data Dictionary Support for DB2/UDBThe 10.2 release of the gateway adds Oracle data dictionary support for DB2 UDB V7. Refer to "Sample SQL scripts" on page 11-6.

  • Release Information 2-1

    2Release Information

    This chapter provides information specific to the 10g release of the Oracle Transparent Gateway for DRDA. It includes the following sections:

    ■ Product Set

    ■ Changes and Enhancements

    ■ Bugs Fixed in Release 10.2.0

    ■ Known Problems

    ■ Known Restrictions

    2.1 Product SetThe following production components are included on the product CD-ROM:

    ■ Oracle Transparent Gateway for DRDA, release 10.2.0.1.0

    ■ Oracle Net, release 10.2.0.1.0

    2.2 Changes and EnhancementsThe following are the changes and enhancements unique to the 10g release of the gateway.

    Desupport of SunLink Peer-to-Peer SNASupport for Sun Microsystems SunLink SNA Peer-to-Peer has been removed. SunLink SNA Peer-to-Peer has been desupported by the vendor.

    Gateway Password Encryption ToolThe Gateway Password Encryption tool (g4drpwd) has been replaced by a generic feature which is now part of Heterogenous Services. Refer to Chapter 14, "Security Considerations".

    2.3 Product MigrationRefer to Chapter 15, "Migration and Coexistence with Existing Gateways" for information on migrating product configurations from previous releases for additional changes or requirements.

  • Bugs Fixed in Release 10.2.0

    2-2 Oracle Transparent Gateway for DRDA Installation and User's Guide

    2.4 Bugs Fixed in Release 10.2.0The following bugs are fixed in this release:

    4013463GARBAGES CONTAINED IN ERROR MESSAGE FROM TG4DRDA

    3882675TG4DRDA SELECT FOR UPDATE ERROR WITH G4DRSRVD

    3650803MEMORY LEAK IN G4DRSRV DOING SELECT STATEMENT

    3640384ORA-28500 ON SELECT FOR UPDATE FROM TG4DRDA

    3610131INDEX STATS MAY NOT BE QUERIED CORRECTLY

    3514233SETTING DRDA_OPTIMIZE_QUERY=TRUE DOES NOT GENERATE TABLE STATS

    3429017LINKING ERROR FOR G4DRSRV WHEN USING REDHAT AS V3

    3421215IU GUIDE DIDN'T SAY HOW TO CONFIG DRDA_CONNECT_PARM IN LINUX

    3287626ENGLISH NAME OF "TAIWAN" DOESN'T SEEM TO BE APPROPRIATE

    3143686QA - 10G - CAN NOT SELECT FROM DATA DICTIONARY TABLES

    4218317COUNT(COLNAME) NOT TRANSLATED TO COUNT(*)

    4260112ORA-1001 WITHOUT THE DETAIL RETURNS FROM TG4DRDA

    4065600GARBAGES CONTAINED IN ORA-1 ERROR MESSAGE FROM TG4DRDA

    3965425ORA-07445 [_MEMCPY()+772] REPEATABLE READ ISOLATION LEVEL IS NOT WORKING

    3709345PSR 9.2.0.5.0 BREAKS CALL DB2 STORED PROCEDURE WITH DECIMAL PARM. SQLCODE -310

  • Known Restrictions

    Release Information 2-3

    3130329TG4DRDA LOOPS IF QRWTSRVR JOB KILLED WHILE GATEWAY IS IN GDJCRCV

    2.5 Known ProblemsThe problems that are documented in the following section are specific to the Oracle Transparent Gateway for DRDA, and are known to exist in this release of the product. These problems will be fixed in a future gateway release. If you have any questions or concerns about these problems, contact Oracle Support Services.

    A current list of problems is available online. Contact your local Oracle office for information about accessing this online information.

    2.6 Known RestrictionsThe following restrictions are known to exist for the products in the 10g release. Restrictions are not scheduled to change in future releases. Refer to Chapter 13, "Developing Applications", for information or limitations when developing your applications.

    Accessing DB2 Alias ObjectsIf you need to access DB2 alias objects on a remote DB2 system, then you must specify DRDA_DESCRIBE_TABLE=FALSE initialization parameter in the Gateway Initialization File.

    Oracle SQL Command INSERTWhen copying data from an Oracle Database to a DRDA Server, the Oracle SQL command INSERT is not supported. The SQL*Plus COPY command must be used. Refer to Chapter 12, "Using the Oracle Transparent Gateway for DRDA", for more information.

    The following are the considerations and limitations:

    Stored Procedure and User Defined Function SupportThe gateway supports execution of stored procedures and user defined functions through the following DRDA Servers:

    DB2/OS390 V4.1 or later

    DB2/400 V3.1 or later

    DB2/UDB V7.1 or later

    2.6.1 DB2 ConsiderationsThe following considertaions are exist in the 10g release:

    DD Basic Tables and ViewsThe owner of DD basic tables and views is OTGDB2. This cannot be changed.

    SUBSTR Function Post-ProcessedThe SUBSTR function can be used with the Oracle Database in ways that are not compatible with a DRDA Server database, such as DB2/OS390. Therefore, the SUBSTR function is post-processed. However, it is possible to allow the server to process it

  • Known Restrictions

    2-4 Oracle Transparent Gateway for DRDA Installation and User's Guide

    natively using the "Native Semantics" feature. Refer to Chapter 13, "Developing Applications", for details.

    AVS Mapping User IDs (DB2/VM)APPC VTAM Support (AVS) has problems mapping user IDs that are sent using lowercase letters or special characters. Contact your IBM representative for additional information about this problem.

    Su