EDBC® for CA-Datacom/DB Release 2.3 SP4
Installation and Operations Guide
EDBC-2.3SP4-CDIO-01
This documentation and related computer software program (hereinafter referred to as the “Documentation”) is for the end user’s informational purposes only and is subject to change or withdrawal by Ingres Corporation (“Ingres”) at any time.
This Documentation may not be copied, transferred, reproduced, disclosed or duplicated, in whole or in part, without the prior written consent of Ingres. This Documentation is proprietary information of Ingres and protected by the copyright laws of the United States and international treaties.
Notwithstanding the foregoing, licensed users may print a reasonable number of copies of this Documentation for their own internal use, provided that all Ingres copyright notices and legends are affixed to each reproduced copy. Only authorized employees, consultants, or agents of the user who are bound by the confidentiality provisions of the license for the software are permitted to have access to such copies.
This right to print copies is limited to the period during which the license for the product remains in full force and effect. The user consents to Ingres obtaining injunctive relief precluding any unauthorized use of the Documentation. Should the license terminate for any reason, it shall be the user’s responsibility to return to Ingres the reproduced copies or to certify to Ingres that same have been destroyed.
To the extent permitted by applicable law, INGRES PROVIDES THIS DOCUMENTATION “AS IS” WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. IN NO EVENT WILL INGRES BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS DOCUMENTATION, INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF INGRES IS EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
The use of any product referenced in this Documentation and this Documentation is governed by the end user’s applicable license agreement.
The manufacturer of this Documentation is Ingres Corporation.
For government users, the Documentation is delivered with “Restricted Rights” as set forth in 48 C.F.R. Section 12.212, 48 C.F.R. Sections 52.227-19(c)(1) and (2) or DFARS Section 252.227-7013 or applicable successor provisions.
Copyright © 2008 Ingres Corporation.
All Rights Reserved.
Ingres, OpenROAD, and EDBC are registered trademarks of Ingres Corporation. All other trademarks, trade names, service marks, and logos referenced herein belong to their respective companies.
Contents
Chapter 1: Introduction
In This Guide...... 1-1 Audience...... 1-2 Conventions...... 1-2
Chapter 2: Overview of EDBC for CA-Datacom/DB
The EDBC Solution...... 2-1 A Gateway Installation ...... 2-2 CA–Datacom/DB Gateway ...... 2-3 EDBC Server ...... 2-4 Ingres Distributed Option...... 2-5 Security System Support ...... 2-6 User Interfaces ...... 2-7 Structured Query Language (SQL) ...... 2-7
Chapter 3: Gateway Function and Architecture
Gateway Functions and Structure ...... 3-1 Gateway Functions...... 3-1 EDBC Architecture ...... 3-2 Remote Access ...... 3-3 Communication Address Space ...... 3-3 EDBC Address Space ...... 3-3 CA-Datacom/DB Address Space...... 3-4 Local Access ...... 3-5 User Address Space ...... 3-5 EDBC Address Space ...... 3-6 CA-Datacom/DB Address Space...... 3-6 Gateway System Catalogs...... 3-7
Chapter 4: Preparing for Installation
Before Beginning the Installation ...... 4-1 Software Requirements ...... 4-1
Contents iii
Storage Requirements...... 4-3 Disk Storage ...... 4-3 Virtual Storage Requirements ...... 4-3 User Address Space ...... 4-4 Installer’s Requirements ...... 4-4 Installer’s Access to Resources ...... 4-5 Installation Overview ...... 4-6 Installation Summary...... 4-6 Installing the EDBC Server and the Gateway ...... 4-6 Verifying Gateway Functionality ...... 4-7 Supporting Gateway Users ...... 4-7
Chapter 5: Installing the Gateway
Installation Summary ...... 5-1 Installation Framework ...... 5-4 Installation Expectations...... 5-4 EDBC Product Tape ...... 5-5 Allocating and Loading the Installation Data Sets...... 5-5 Creating JCL to Restore the Stage0 Jobstream ...... 5-5 Customizing the Stage0 Installation Jobstream ...... 5-7 Gateway Data Sets That are Allocated and Restored ...... 5-9 Customizing the Stage1 Input...... 5-10 IGWFJOB Statement: Specifying Jobcard Parameters ...... 5-11 IGWFUSER Statement: Specifying Initial Gateway Users ...... 5-13 IGWFINET Statement: Specifying EDBC Parameters ...... 5-13 IGWFDCOM Statement: Specifying CA-Datacom/DB Gateway Parameters ...... 5-16 IGWFPSVR Statement: Specifying Protocol Server Parameters...... 5-20 IGWFREPS Statement: Specifying CA-Datacom/DB Replication Server Parameters ...... 5-24 IGWFPIPE Statement: Specifying EXCI Interface Parameters ...... 5-25 IGWFBLD Statement: Specifying IIVP Sysgen Parameters ...... 5-26 The Stage1 Jobstream...... 5-29 Customizing and Executing the Stage1 Jobstream ...... 5-29 Submitting the Stage2 Jobstream Jobs ...... 5-30 Functions of Stage2 Jobs ...... 5-32 Final Installation Procedures ...... 5-40 Completing the Installation ...... 5-40 Customizing the TSO Logon Procedure...... 5-41 Verifying the Installation Functionality ...... 5-41
iv EDBC for CA-Datacom/DB Installation and Operations Guide
Chapter 6: Configuring the EDBC Server
Install and Configure Communication Interfaces ...... 6-1 SNA LU0 for z/OS...... 6-1 Requirements ...... 6-1 Installation and Configuration ...... 6-2 Starting and Stopping the SNA_LU0 Interface ...... 6-2 Connecting from a Remote Client ...... 6-2 SNA LU0 Abend Codes and Messages ...... 6-3 SNA LU62 for z/OS ...... 6-3 Requirements ...... 6-3 Installation and Configuration ...... 6-4 Starting and Stopping the SNA_LU62 Interface ...... 6-4 Connecting from a Remote Client ...... 6-4 SNA LU6.2 VTAM Logmode Entries ...... 6-5 Sense Code 08120007 and Possible Loop in VTAM ...... 6-6 KNET TCP/IP for z/OS...... 6-6 Requirements ...... 6-6 Installation and Configuration ...... 6-6 Starting and Stopping the TCP_KNET Interface ...... 6-7 Connecting from a Remote Client ...... 6-7 IBM TCP/IP for z/OS ...... 6-7 Requirements ...... 6-7 Installation and Configuration ...... 6-8 Starting and Stopping the TCP_IBM Interface ...... 6-8 Connecting from a Remote Client ...... 6-8 IBM TCP/IP Problem Diagnosis ...... 6-8 CCI for z/OS ...... 6-9 Requirements ...... 6-9 Installation and Configuration ...... 6-9 Starting and Stopping the CCI Interface ...... 6-9 Connecting from a CCI Client ...... 6-10 CCI Abend Codes and Messages ...... 6-10 SNS/TCP for z/OS ...... 6-11 Requirements ...... 6-11 Installation and Configuration ...... 6-11 Starting and Stopping the TCP_SNS Interface...... 6-11 Connecting from a Remote Client ...... 6-12 Enable and Test Security Interfaces...... 6-12 IBM Resource Access Control Facility (RACF) ...... 6-12 Installing and Customizing the RACF Interface ...... 6-13 CA Access Control Facility 2 ...... 6-14 Installing and Customizing the CA-ACF2 Interface...... 6-14
Contents v
CA Top Secret Security Facility...... 6-15 Installing and Customizing the CA-TSS Interface ...... 6-15 Force Inactivate Timeout ...... 6-17 Local Time Zone ...... 6-17 Year 2000 Support ...... 6-18 Alternate Translation Tables ...... 6-18
Chapter 7: Maintaining the Gateway
Database Management Functions ...... 7-1 Starting and Stopping the EDBC Server...... 7-2 Starting the EDBC Server as a Started Task ...... 7-2 Stopping the EDBC Server ...... 7-2 Starting the EDBC Server as a Batch Job...... 7-3 Gateway Hot Connect Function...... 7-3 Maintaining the EDBC Server ...... 7-4 Display Active Command...... 7-6 Starting and Stopping the CA-Datacom/DB Replication Server ...... 7-9 Starting the Replication Server ...... 7-9 Stopping the Replication Server ...... 7-10 Adding a New Gateway User ...... 7-10 Presenting Additional Gateway Objects to a User ...... 7-11 Defining an Additional EDBC Server ...... 7-12 Using IIVP to Create a Second EDBC Server...... 7-12 Cloning an EDBC Server to a Different LPAR...... 7-15 Connecting from One EDBC Server to Another...... 7-15 Verifying the Connection ...... 7-17
Chapter 8: Working with CA-Datacom/DB Data
The Database in EDBC and in CA-Datacom/DB ...... 8-1 Creating CA-Datacom/DB Multi-user Facilities and Tables ...... 8-2 Connecting to CA-Datacom/DB ...... 8-2 Creating Tables in CA-Datacom/DB...... 8-4 Rules Governing CA-Datacom/DB Tables ...... 8-4 Creating Tables in CA-Datacom/DB Through the Gateway ...... 8-5 Table Names in CA-Datacom/DB ...... 8-7 Synonyms ...... 8-7 Table Creation by the Gateway DBA ...... 8-7 Accessing Existing Tables and Views in CA-Datacom/DB ...... 8-8 Table Access Privileges Using the SQL Security Model ...... 8-8
vi EDBC for CA-Datacom/DB Installation and Operations Guide
Dropping Tables Through the Gateway ...... 8-8 Sharing Application Objects in the Gateway ...... 8-9 SQL and the Gateway ...... 8-9 OpenSQL...... 8-10 Restrictions to OpenSQL ...... 8-11 Extensions to OpenSQL ...... 8-11 The With Clause ...... 8-12 The Direct Execute Immediate Statement ...... 8-13 Data Types and Utilities ...... 8-13 Date Support ...... 8-13 CA-Datacom/DB Date and Time Values ...... 8-14 Data Types ...... 8-14 DCLGEN Utility...... 8-17 Using the EDBC Terminal Monitor ...... 8-18
Chapter 9: Using Database Procedures
Database Procedures Defined ...... 9-1 Select Procedures and Message Procedures ...... 9-2 Coding Database Procedures ...... 9-3 Coding Conventions ...... 9-3 Library Considerations ...... 9-4 Procedure Completion ...... 9-4 Input Parameters ...... 9-4 Assembler Macros ...... 9-6 Other Notes ...... 9-6 Non-Function Call Macros ...... 9-7 DBPPROLG ...... 9-7 DPBREGS ...... 9-8 DBPWORKA ...... 9-8 DBPSQLDA ...... 9-9 DBPEXCI ...... 9-9 DBPEPILG ...... 9-10 Function Call Macros ...... 9-11 ALLOC_MEMORY ...... 9-11 FREE_MEMORY ...... 9-12 END_TRANSACTION ...... 9-13 DEFINE_MESSAGE ...... 9-13 SEND_MESSAGE ...... 9-14 PROC_TRACE ...... 9-15 CALL_EXCI ...... 9-15 SEND_DESCRIPTOR...... 9-16
Contents vii
SEND_DATA ...... 9-17 GET_VARIABLE...... 9-18 PUT_VARIABLE...... 9-20 GET_OUTPUT_VARIABLES ...... 9-21 PUT_OUTPUT_VARIABLES...... 9-22 Data Handling in Assembler...... 9-22 Implementing Database Procedures ...... 9-23 Assembler Database Procedures...... 9-24 Registering Database Procedures...... 9-24 Register Procedure Statement...... 9-25 Permissions ...... 9-26 Executing Database Procedures ...... 9-26 Preparing to Execute Procedures ...... 9-26 Execute Procedure Statement ...... 9-26 Select Procedure Statement...... 9-27 Removing Database Procedures ...... 9-27 Verifying Database Procedures ...... 9-28 Planning for EXCI Database Procedures...... 9-28
Chapter 10: Optimizing and Troubleshooting
Optimizing Gateway Applications ...... 10-1 CA-Datacom/DB Optimization ...... 10-1 Gateway Overhead ...... 10-1 Gateway Query Handling...... 10-2 Other Ways to Increase Gateway Performance ...... 10-2 Error Handling ...... 10-4 CA-Datacom/DB Error Reporting ...... 10-4 Gateway Error Reporting...... 10-4 Debugging the Gateway ...... 10-5 Syntax Errors ...... 10-5 Incorrect Return Codes ...... 10-6 Incorrect Semantics ...... 10-6 Data Type Errors ...... 10-6 Gateway Traces ...... 10-7 Resetting the Z/OS Subsystem...... 10-8
Appendix A: Logical Symbols and IIPARM CLIST
Logical Symbol Library Organization...... A-1 Logical Name Format ...... A-3
viii EDBC for CA-Datacom/DB Installation and Operations Guide
Detailed Descriptions of Logical Symbols ...... A-3 ISVREDBC Logical Symbol Members...... A-3 SABExxxx or Unnnnnnn Logical Symbol Member ...... A-16 Optional Logical Symbols ...... A-16 IIPARM CLIST Description ...... A-17 Description of IIPARM Parameters...... A-17 IIPARM Customization...... A-19 Examples of IIPARM Use ...... A-20
Appendix B: Customization
EDBC.V2R3.SAMPLE.CNTL...... B-1 EDBC.V2R3.FILES.CLIST ...... B-4 EDBC.V2R3.FILES.PROCLIB ...... B-4
Appendix C: Multiple Multi-User Facility Support
How Multiple Datacom MUF Support Works ...... C-1 System Logicals—Define Datacom MUFs to EDBC ...... C-2 Adding the First Datacom MUF to an existing EDBC Server ...... C-3 Adding the Next Datacom MUF to an Existing EDBC Server ...... C-4 Stage2 Job Notes ...... C-5 A0 Job ...... C-5 I0 Job...... C-6
Appendix D: Installing Multiple Gateways
Index
Contents ix
Chapter 1: Introduction
EDBC® for CA–Datacom/DB enables EDBC users to access data stored in CA-Datacom/DB databases. It also allows EDBC users on a client to develop database applications on a UNIX or Microsoft Windows platform that can be executed against CA–Datacom/DB data without requiring additional programming.
In this guide the term: