
              Release Notes for Ingres Release 2.5/0011 DBL

                             November 2000



 Proprietary and Confidential Information

 This documentation contains, and is part of a computer software
 program which is proprietary and confidential information owned by
 Computer Associates International, Inc.  No part of this 
 documentation may be copied, photocopied, reproduced, translated,
 microfilmed, or otherwise duplicated on any medium without the
 express written consent of Computer Associates International, Inc.

 Use of the software programs described herein and this 
 documentation is subject to the Computer Associates license
 agreement enclosed in the software package.

 All product names referenced herein are trademarks of their
 respective companies.



 




 Restricted Rights Legend 

 Use, duplication, or disclosure by the United States
 Government ("the Government") is subject to restrictions set
 forth in A) subparagraph (c) (2) of the Commercial Computer
 Software Restricted Rights clause at FAR 52.227-19, and/or
 B) subparagraph (c)(1)(ii) of the Rights in Technical Data
 and Computer Software clause of DFAR 252.227-7013.  This
 software is distributed to the Government by:

              Computer Associates International, Inc.
                  One Computer Associates Plaza
                     Islandia, NY 11749-7000

 Unpublished copyrighted work all rights reserved under the
 copyright laws of the United States.

 This material may be reproduced by or for the United States
 Government pursuant to the copyright license under the
 clause at DFAR 252.227-7013 (OCTOBER 1988).

 Copyright 1991-2001 Computer Associates International, Inc. 
 One Computer Associates Plaza, Islandia, NY 11749-7000
 All rights reserved.

 Call Computer Associates technical services for any
 information not covered in this document or the related
 publications. In North America, see your Computer Associates
 product Support Directory for the appropriate telephone
 number to call for direct support, or you may call
 1-800-645-3042 or 1-631-342-4683 and your call will be
 returned as soon as possible.

 Outside North America, contact your local Computer
 Associates technical support center for assistance.







                   Ingres Release 2.5/0011
                    (Dated November 2000)

 For use with the Ingres 2.5 Getting Started Guide

 Please make sure that copies of these release notes are 
 distributed to the system administrator, database administrator, 
 and applications developers using Ingres at your site. This 
 document contains release notes of interest to each of these areas.

 The Ingres 2.5/0011 Generic Release Notes and platform 
 specific supplemental information are both contained in this
 document. This document contains information that is not 
 covered in the Getting Started guide or in any other Ingres 
 document.

 The platform specific information contained in the appendix 
 provides information that is specific to a given operating 
 system. 

 Read the "Read This Before You Install" section in the
 Ingres 2.5/0011 Release Notes and the platform specific 
 appendix before installing Ingres.







                              Table of Contents


 1.0 PREFACE....................................................
     1.0.1 Before You Begin.....................................
     1.0.2 Audience.............................................
     1.0.3 Related Guides.......................................


 2.0 READ THIS BEFORE YOU INSTALL...............................
     2.0.1 Conversion Notes.....................................
     2.0.2 Installation Notes...................................
     2.0.3 General Notes........................................
     2.0.3.1 Shutting down an Ingres installation that includes 
             an Ingres/ICE server...............................


 3.0 NEW FEATURES FOR Ingres 2.5................................

 3.1 Ingres 2.5 DBMS Features...................................
     3.1.1 Sort Enhancements....................................
     3.1.2 Parallel Index Creation..............................
     3.1.3 ANSI/ISO Constraint Enhancements.....................
     3.1.4 Large Cache Support..................................
     3.1.5 Dynamic WriteBehind Threads..........................
     3.1.6 Partitioned Transaction Log File.....................
     3.1.7 Optimizedb Enhancements..............................
     3.1.8 Miscellaneous Enhancements...........................
     3.1.9 Read-only Database Support...........................
     3.1.10 New SQL Functionality...............................
         3.1.10.1 Bit-wise Operator Support.....................
         3.1.10.2 Miscellaneous Functions.......................
     3.1.11 Extended Date Support...............................
     3.1.12 64 Bit File Support.................................
     3.1.13 Large Catalogs......................................
     3.1.14 Row Locking for System Catalogs.....................
     3.1.15 Update Mode Locking.................................
     3.1.16 Value Locking for serializable transaction with equal predicate.
     3.1.17 Case Expression Support.............................
     3.1.18 Expression in Order By..............................
     3.1.19 Expression in Group By..............................
     3.1.20 Query Optimization/Execution Enhancements...........

 3.2 Ingres 2.5 Star Enhancements...............................

 3.3 Ingres Net Enhancements....................................

 3.4 Ingres/ICE 2.5 Features ...................................
     3.4.1 Security.............................................
     3.4.2 Session Management...................................
     3.4.3 Storage Management...................................
         3.4.3.1 HTML Templates.................................
         3.4.3.2 Document Cache Management......................
     3.4.4 Macro Language Extensions............................
         3.4.4.1 User Identification............................
         3.4.4.2 State Maintenance..............................
         3.4.4.3 Variables......................................
         3.4.4.4 Conditional Statements.........................
         3.4.4.5 Include Statements.............................
         3.4.4.6 Functions......................................

 3.5 Ingres Visual DBA 2.5 New Features ........................
     3.5.1 DOM Windows - New Design and Features................
     3.5.2 SQL/Test New Design and Features.....................
     3.5.3 Star Management......................................
     3.5.4 Full Replicator Management...........................
     3.5.5 ICE Management.......................................
     3.5.6 Enterprise Access....................................
     3.5.7 Miscellaneous New Features...........................

 3.6 Ingres 2.5 Replicator Enhancements.........................
     3.6.1 Generic Replicator Server............................
     3.6.2 Increased Replicator Concurrency.....................

 3.7 Ingres OpenAPI Enhancements................................
     3.7.1 Environment Handles..................................
     3.7.2 Changes to Existing Functions........................
         3.7.2.1 IIapi_initialize().............................
         3.7.2.2 IIapi_setConnectParam()........................
         3.7.2.3 IIapi_connect()................................
     3.7.3 Name Server Connections..............................
         3.7.3.1 Name Server Query Statement....................
         3.7.3.2 Syntax and Examples of Name Server Query Text..
             3.7.3.2.1  Create a Remote User Authorization......
             3.7.3.2.2  Destroy a Remote User Authorization.....
             3.7.3.2.3  Define an Installation Password.........
             3.7.3.2.4  Create a Connection Data Entry..........
             3.7.3.2.5  Destroy a Connection Data Entry.........
             3.7.3.2.6  Display Connection Data Entries.........
             3.7.3.2.7  Create an Attribute Data Entry..........
             3.7.3.2.8  Destroy an Attribute Data Entry.........
             3.7.3.2.9  Display Attribute Data Entries..........
             3.7.3.2.10 Display Servers in the Installation.....
             3.7.3.2.11 Using ~V Marker.........................
    3.7.4 New OpenAPI Functions.................................
             3.7.4.1 IIapi_releaseEnv().........................
             3.7.4.2 IIapi_autocommit().........................
             3.7.4.3 IIapi_getEvent()...........................
             3.7.4.4 IIapi_setEnvParam()........................
                 3.7.4.4.1 Parameter Block for TRACE_FUNC.......
                 3.7.4.4.2 Parameter Block for PROMPT_FUNC......
                 3.7.4.4.3 Parameter Block for EVENT_FUNC.......
             3.7.4.5 IIapi_formatData().........................
             3.7.4.6 IIapi_abort()..............................

 3.8 JDBC Driver................................................
     3.8.1 JDBC Driver Introduction.............................
     3.8.2 Driver Packaging.....................................
     3.8.3 Loading the Driver...................................
     3.8.4 Accessing the Driver.................................   
     3.8.5 Driver Properties....................................
     3.8.6 Configuring the JDBC Server..........................
     3.8.7 Running the JDBC Server..............................

 3.9 Known Problems in Ingres...................................
     3.9.1 Server Bugs..........................................

 3.10 Ingres Tuxedo Support ....................................

 3.11 Dates after the Year 1999 ................................


 4.0 APPLICATION MIGRATION AND DEVELOPMENT INFORMATION..........

 4.1 Upgrading 1.x/2.0 Ito 2.5 nstallation Notes ...............
     4.1.1 New Ingres 2.5 Installations ........................
     4.1.2 Upgrading 6.4/1.x/2.x Databases to Ingres 2.5........
         4.1.2.1 Additional notes for unloading/reloading databases
     4.1.3 OpenROAD 4.0 Image File Formats......................

 4.2 Ingres 1.x and 2.0 Support.................................

 4.3 Behavior changes between previous releases and Ingres 2.5.
     4.3.1 Query compilation and OPF memory.....................


 5.0 DOCUMENTATION ANNOUNCEMENTS ...............................
     5.0.1 Changes to Documentation Format .....................

 APPENDIX - PLATFORM-DEPENDENT INFORMATION .....................





 1.0 PREFACE

 These Release Notes provide important information for installing 
 Ingres Release 2.5.  In response to customer requests, 
 these notes have been reorganized to highlight critical information
 that you must have before installing this release.  This critical
 information is contained in Section 2, READ THIS BEFORE YOU INSTALL. 

 Section 3, NEW FEATURES FOR Ingres 2.5, describes new features 
 in this release.

 Section 4, APPLICATION MIGRATION AND DEVELOPMENT INFORMATION, 
 provides a discussion of issues that can affect the smooth
 migration of your Release 1.x and 2.0 applications to Release 2.5.

 Section 5, DOCUMENTATION ANNOUNCEMENTS, describes documentation 
 announcements.

 Appendix A, contains information about Ingres 2.5 that is specific 
 to your hardware platform.

 Once you have installed Ingres 2.5 you may keep up to date with all
 the latest support information on the product by visiting our
 support web-site at

        http://support.ca.com

 This contains valuable current information to enable you to fully
 research any questions you may have prior to contacting the CA
 support centers.

 1.0.1 Before You Begin

 Refer to the Getting Started Guide before you begin installing 
 this Ingres Release 2.5/0011.

 The Ingres 2.5/0011 Release Notes apply across many supported operating 
 systems and provide additional information that is not covered in the 
 Getting Started Guide. Platform specific information is contained in 
 the appendix to this document.


 1.0.2 Audience

 This section is directed toward the system manager who will be  
 installing the products.  Subsequent sections contain migration 
 and reference information appropriate to experienced developers
 and users of Ingres and Ingres tools.


 1.0.3 Related Guides

 The Release Notes are part of a series of guides describing the 
 full range of Ingres II products.  The guides that are relevant 
 to the information in these notes are:

        *  Getting Started
        *  Command Reference Guide
        *  Database Administrator's Guide
	*  Distributed Transaction Processing User Guide
        *  Embedded SQL Companion Guide for C
        *  Embedded SQL Companion Guide for COBOL
        *  ICE User Guide
        *  OpenAPI User Guide
	*  OpenROAD User Guide
	*  OpenROAD Language Reference Guide
	*  OpenROAD Programming Guide
        *  QUEL Reference Guide
        *  Replicator User Guide
        *  SQL Reference Guide
        *  System Administrator's Guide
	*  Using Character-Based Application Development Tools	
	*  Using Forms-Based Application Development Tools

 These guides are available in PDF format on the Ingres 2.5 CDs.


 2.0 READ THIS BEFORE YOU INSTALL

 This section covers critical information that system managers 
 must have before they upgrade or install this release.  This
 information includes warnings and changes of major impact that
 might affect the timing or successful completion of an upgrade 
 or installation.


 2.0.1 Conversion Notes

 The operating system specific conversion notes are included in the appendix.


 2.0.2 Installation Notes

 The installation notes are included in the appendix.


 2.0.3 General Notes

 All of the utilities that were available in CA-OpenIngres 1.x, 
 OpenIngres 2.0 and Ingres 2.0 are present in Ingres 2.5.  If you are 
 upgrading from 1.x or 2.0, you must checkpoint your database before 
 you carry out any operation on the database, an operating system backup is
 also reccomended, do this while Ingres is not running. All previous 
 checkpoints from 1.x, OpenIngres 2.0, Ingres II 2.0 and Ingres II 2.5 BETA1 
 are not compatible with Ingres 2.5/0011.

 Checkpoints of the iidbdb are strongly recommended at frequent
 intervals.  Generally, these checkpoints require little processor
 overhead.

 For table-level rollforwarddb, the -noblob option has been removed
 as it makes the table physically inconsistent and unusable.
 Rollforwarddb no longer supports the -noblob option.

 2.0.3.1 Shutting down an Ingres installation that includes an Ingres/ICE server

 In order to shutdown an Ingres installation that includes an Ingres/ICE
 server the following should be noted.
 Ingres/ICE HTTP server extensions maintain a pool of client connections to
 the Ingres/ICE server.
 These connections are detected as active sessions by the Ingres/ICE server.
 To disconnect these sessions the HTTP server extension should be unloaded or
 if this is not possible, the HTTP server should be shutdown. Then the Ingres
 installation may be shutdown.
 An alternative method without shutting down the HTTP server would be to force
 the shutdown of Ingres/ICE before shutting down the remainder of the Ingres
 installation. This can be achieved through the "stop server" command when
 in iimonitor for the ICE server.

 2.0.4 Special Notes

       IMPORTANT NOTE REGARDING OPERATING SYSTEM (OS) VERSION.

       It is very important in your planning that you review for your platform
       the minimum OS level that is specified for this Release.
       This is provided in the Appendix to this document
       Appendix - PLATFORM DEPENDENT INFORMATION
       This release has been built to support more recent operating system
       versions where applicable and so may supersede the list of versions
       previously specified with Ingres II 2.0 and prior releases. Your
       implementation of this maintenance release may therefore require you
       to upgrade your OS version. If this is the case then it is required
       that you only use the unload/reload procedure rather than any upgradedb
       procedures.

 3.0 NEW FEATURES FOR Ingres 2.5
 
 3.1 Ingres 2.5 DBMS Features

 3.1.1 Sort Enhancements

 Changes were made to improve the performance of both the in-memory (QEF) 
 sort and disk (DMF) sort of Ingres. The QEF sort was improved by fine 
 tuning the sort algorithm resulting in fewer comparisons between 
 sort rows (the major consumer of CPU time in a sort). It was also improved 
 by a change which results in the rows being partially sorted as they 
 arrive in the sort. This change introduces two distinct benefits. First, 
 duplicate rows are detected and discarded much more quickly from duplicates 
 removal sorts (e.g. as required by "select distinct ..."). This in turn 
 increases the number of rows which can be processed in memory for a 
 duplicates removal sort, resulting in the avoidance of more expensive 
 disk sorts in many instances. The second benefit introduced by the 
 algorithm changes is that the first rows in the sort sequence can be 
 returned before the remaining rows are completely sorted. The new algotithmn 
 can allow first sorted row to be available with as few as 20% of the overall 
 comparisons required to complete the sort. This means that browsing/scrolling 
 applications will see the first set of rows in much less time than was 
 previously the case.

 The first set of DMF sort enhancements also involve fine tuning of the 
 sort algorithms, which should result in a 5-10% reduction in CPU time 
 of typical sorts. As with the QEF sort, duplicate rows are detected 
 and discarded sooner in duplicates removal sorts. This should result 
 in smaller disk work files and faster overall sort performance. Prior 
 to release 2.5, the entire result of a DMF sort was spooled to an 
 internal temporary table before the sorted rows were returned to the 
 caller. In Ingres 2.5, the temporary table has been eliminated and the rows 
 are returned directly from the sort structures to the caller. This has 
 the same effect as the early return of sorted rows described above for 
 the QEF sort. That is, the first rows should be returned much sooner than 
 was previously the case.

 The final DMF sort enhancement is the introduction of a "parallel sort" 
 technique. Sorts which exceed a user-configurable threshold spawn 
 additional threads. The sort is split up and its rows delivered to 
 the sub-threads for sorting. The sorted subsets of the rows are then 
 delivered back to the parent thread executing the query, where they 
 are merged to form a single sorted stream of rows. On multi-CPU machines, 
 this results in a significant reduction in the elapsed time required to 
 sort (between 25% and 50% in testing). An added benefit to the parallel 
 sort technique is that it is encapsulated within the DMF sort. This sort 
 is used for the execution of queries with sorting requirements (e.g., 
 for order by, group by and distinct requests, or for implementing certain 
 join algorithms). However, it is also used to sort rows for index 
 creation/update in modify, create index and copy operations. All users 
 of the DMF sort derive the performance benefit of the parallel sort.

 3.1.2 Parallel Index Creation

 The "parallel sort" technique outlined above is used to sort rows for
 parallel index creation, greatly reducing the time taken for index
 creation in multi-CPU environments.

 3.1.3 ANSI/ISO Constraint Enhancements

 Ingres referential and unique/primary key constraints result in the 
 creation of indexes "under-the-covers" to improve the performance of 
 the constraint enforcement mechanisms. Prior to release 2.5, these 
 indexes were vanilla B-tree indexes stored in the default location 
 of the database. However, B-tree is not always the best choice (for 
 example, hash is better for many unique key applications), and use of 
 the default location can degrade performance if many large indexes 
 are created. 

 Release 2.5 solves these and other problems by including a "with" clause 
 for constraint definition. The with clause allows the overriding of 
 default index options with anything normally coded in an index creation 
 with clause. For example, the index structure and location, as well as 
 fillfactor and other index options can be explicitly specified for 
 each constraint. The with clause applies to column and table constraints 
 defined with both the create and alter table statements. A unique/primary 
 key constraint can even be generated to use the base table structure for 
 its enforcement, rather than a separate secondary index.

 Release 2.5 also introduces the ANSI/ISO notion of referential actions 
 for the definition of referential (foreign key) constraints. In releases
 prior to Ingres 2.5 an attempt to delete a referenced row for which 
 matching referencing rows exist, or to update the primary key of a 
 referenced row to some other value while matching referencing rows 
 still exist for the old value, is met with an error which aborts the 
 request. Either operation must first be preceded by a delete of the 
 matching referencing rows, or an update of the foreign keys to some 
 value which exists in another referenced row. 

 Release 2.5 allows the definition of referential actions for each 
 referential constraint which defines alternative actions to be taken 
 in the circumstances defined above. A separate action can be defined 
 for both the delete case (deletion of a referenced row with matching 
 referencing rows) and the update case (updating the key of a referenced 
 row with matching referencing rows). The options include "cascade", 
 in which case the delete or update is cascaded to the matching 
 referencing rows (so that the referencing rows are also deleted or 
 updated to the same value), and "set null", in which case the foreign 
 key of the matching referencing rows is set to null. These actions permit 
 a more complete definition of the semantics of the referential relationship, 
 and allow the application to execute more efficiently.

 3.1.4 Large Cache Support

 In Ingres 2.5 the total number of pages in all caches has been revised 
 from an un-enforced limit of 65536 to 2**32-1.  As a result of this
 enhancement Ingres 2.5 now supports a 4 GB cache.   
 
 In previous releases, when those pages belonging to a specific table 
 needed to be located, the buffer manager sequentially searched every 
 buffer in every cache to find them. Even in installations with small 
 caches, this was an expensive operation, especially in those frequent 
 instances in which there were no table-pages in any cache. This operation 
 occurred, for example, when a table's TCB was about to be released, 
 typically when all referencing transactions had lost interest in a table.

 In Ingres 2.5 a cross-cache table hash queue has been added to the buffer 
 manager into which pages are added as they are faulted in and removed 
 when they are tossed. Thus when the need to know a table's pages arises, 
 a hash on the table's database id and table id is made and that list 
 searched for matching pages. This change results in a significant decrease 
 in the number of cache pages visited and is most dramatic in installations 
 configured with very large or multiple caches.

 3.1.5 Dynamic WriteBehind Threads

 In releases prior to Ingres 2.5 a fixed number of WriteBehind threads 
 were configured in each server in an installation and initiated when 
 the server started. These threads served all caches and were awakened 
 when the number of modified pages in any cache exceeded a predefined 
 threshold. In a shared cache environment, all WriteBehind threads in 
 all servers were simultaneously activated when this threshold was 
 reached. This led to a "thundering herd" phenomenon in which n WriteBehind 
 threads concurrently pounded through the caches competing for modified 
 pages to flush.

 The optimum number of WriteBehind threads is the minimum number required 
 to 1) maintain the modified buffer count below the WriteBehind start 
 threshold and 2) supply sufficient free pages to avoid synchronous writes.
 The optimum number of WriteBehind threads varies with the instantaneous 
 demand for free pages in a particular cache, and always begins at one when 
 the threshold is first breached and a WriteBehind event signaled. 
 In Ingres 2.5, if the single WriteBehind thread is unable to keep up with 
 the demand, then additional WriteBehind threads are created until either 
 equilibrium or futility is achieved. If better-than-equilibrium is achieved 
 (more modified pages are being freed than there is demand for), the 
 excess WriteBehind threads will terminate one-by-one, while the remaining 
 threads continue to monitor the free buffer demand while achieving the 
 write-behind end threshold.

 Ingres 2.5 introduces cache-specific WriteBehind threads resulting in 
 increased concurrency and eliminating the chance of free page starvation. 


 3.1.6 Partitioned Transaction Log File

 The structure of the Ingres log file in Ingres 2.5 is changed from a single
 file to one through sixteen logically striped files of equal size. 
 Properly configured, partitioning in this manner encourages better log 
 performance by spreading disk contention across multiple disks instead 
 of being concentrated on a single device.
 
 The full log file paths are now defined via Configuration Manager / CBF 
 rather than through the symbol table.


 3.1.7 Optimizedb Enhancements

 A variety of enhancements have been made to optimizedb. The new flag 
 "-zlr" causes optimizedb to retain the original repetition factor 
 when rebuilding an existing histogram. This is useful when a histogram 
 (and its repetition factor) is built once by reading the whole table, 
 then updated later using sampling (which can produce inaccurate 
 repetition factors). A minor bug was fixed to allow the "l" flag to 
 request an exclusive lock on the database during optimizedb processing 
 (just as for other command line utilities). The current limit of 
 1000 parameters coded in a separate file using the "-zf" parameter 
 has been lifted. There is now no limit to the number of such parameters. 

 A "-o filename" option (similar to that in statdump) has been added to 
 optimizedb. It creates a statdump-style output file which can then be 
 input back to optimizedb with the "-i filename" option. But more 
 importantly, it doesn't update the catalog iistatistics and iihistogram 
 tables. This allows a busy shop to construct histograms at anytime, with 
 no worry about update conflicts. Then at some schedulable later time, 
 optimizedb can be run with the "-i" option to add the histograms to 
 the catalog.

 In addition to the flag enhancements, an enhancement has been 
 introduced to allow more accurate histograms to be built on columns 
 with significant skew in their value sets. Specifically, a column 
 with many distinct values which would generate an inexact histogram 
 will now produce exact cells for values which occur significantly more 
 than the average. This will permit much more accurate estimates in 
 the compilation of queries with restrictions on such columns, and 
 therefore, better query plans.

 3.1.8 Miscellaneous Enhancements

 Expressions are now permitted in both the order by and group by clauses. 
 Several synonyms have been added to existing Ingres data types (e.g., 
 character large object and clob for long varchar, binary large object and 
 blob for long byte). The query compiler has been enhanced to compile 
 more efficient strategies for complex queries involving aggregate views 
 and unions.

 3.1.9 Read-only Database Support 

 Ingres 2.5 provides the ability to distribute a read-only database on a 
 CD ROM or other read-only media.

 Example: 

 To create a read-only database called mydatabase on UNIX:

         1. Log in as ingres

         2. Change location to the staging directory
                cd  /stagingarea

         3. Create directory and subdirectories
                mkdir  ingres
                mkdir  ingres/data
                mkdir  ingres/data/default

         4. Place appropriate permissions
                chmod  755  ingres
                chmod  700  ingres/data
                chmod  777  ingres/data/default

        5. Change location to the database files
                cd  /install/inst1/ingres/data/default

        6. Copy the database directory and its subdirectories to the new area.
                cp  -r  mydatabase  /stagingarea/ingres/data/default/.

        7. Copy the directory structure to the CD-ROM or other device
                cp  -r  ingres/data/default/mydatabase  /cdrom

        8. Create a new database location using the create location 
           statement, or using the accessdb utility

                create location cdromloc with area=/cdrom, usage=(database);
 
         9. Use the createdb command to access the read-only database in 
            the installation
                createdb -r cdromloc mydatabase

 3.1.10 New SQL Functionality
 
 3.1.10.1 Bit-wise Operator Support

 The following functions have been added to Ingres 2.5 to provide support
 for bit-wise operations:

        bit_add         Logical "add" of two byte operands
        bit_and         Logical "and" of two byte operands
        bit_not         Logical "not" of two byte operands
        bit_or          Logical "or" of two byte operands
        bit_xor         Logical "exclusive or" of two byte operands 
 
 For all of these bit functions, all operations proceed right to left.  The
 shorter of two operands is padded with hex zeroes on the left.  The result 
 is a byte field equal in size to the longer operand.


 3.1.10.2 Miscellaneous Functions

 The following functions have been added to Ingres 2.5 
 
        ii_ipaddr       Convert an IP address to a byte 4
        intextract      Extract the number at the given location

 ii_ipaddr

     Syntax:

        ii_ipaddr ('ip_addr')

     Return Values

	Returns a byte representation of the IP address.

     Example:

        ii_ipaddr('141.202.36.10') 

        Yields the value x'8DCA240A'

 intextract 

     Syntax:
 
        intextract(byte, int)
 
     Return Values:

        Returns an i4.  Returns 0 if the value of int is less than 1 or greater 
        than the length of the byte field. Any non-integer values in the 
	"int" parameter will cause the query to abort, please see the SQL
	refference manual for further details.

     Example:

        select intextract(ii_ipaddr('141.202.36.10', 2));

        Yields the value 202

 3.1.11 Extended Date Support
 
 Ingres 2.5 allows users to insert dates in the range 01-Jan-0001 
 to 31-Dec-9999.

 3.1.12 64 Bit File Support

 A major enhancement to Ingres 2.5 on operating systems that support 64 bit 
 file systems is the ability to support file sizes greater than 2GB.  This 
 means that larger table, dump, work, journal and checkpoint files can 
 be accommodated in a single location.  

 3.1.13 Large Catalogs

 In this release, Ingres allows system catalogs to use pages larger than 2K.
 This means that the user does not have to configure a 2K cache size in 
 the DBMS just for system catalogs. 

 3.1.14 Row Locking for System Catalogs

 For improved concurrency, the Ingres II 2.5 DBMS will automatically 
 use row locking on system catalogs when catalogs are created using 
 pages larger than 2K.  This feature is keyed from the system default 
 page size which is configurable through CBF or the Ingres Configuration
 Manager. createdb will create a database with system catalogs that have the 
 default page size, running sysmod on an existing database, however, will not 
 automatically convert the system catalogs to use the default page size, the
 user must use the "with page_size" keyword to achieve this.

 3.1.15 Update Mode Locking
 
 Prior to Ingres II 2.5, when the DBMS fetched a row for a cursor mode 
 update, it would acquire an exclusive lock. In serializable mode, this 
 lock would be held until the end of transaction, even when the row was 
 not updated. In this release, the Ingres DBMS acquires an update mode 
 lock for the row that is a candidate for update. If the row is actually 
 updated, the update mode lock is converted to logical exclusive lock 
 otherwise it is converted down to shared lock or released, depending 
 on the current isolation level. Update mode locking is now the default 
 for cursor updates.

 3.1.16 Value Locking for serializable transaction with equal predicate.

 Prior to Ingres II 2.5, the Ingres DBMS would hold a page lock on the 
 leaf pages on Btree tables for a serializable update transaction, 
 even when using row locking. This was done to prevent other users from 
 inserting a row in the qualified range to be updated.  In Ingres II 2.5, 
 the DBMS uses a value locking protocol for serializable transactions with 
 an equal predicate, thereby allowing better concurrency.

 3.1.17 Case Expression Support

 The SQL '99 case expression is implemented in this release. This is 
 a particularly useful addition to SQL allowing column or expression 
 values to be decoded using a case statement embedded in select statement. 
 Please see the SQL Reference Guide for details of this new SQL addition.

 3.1.18 Expression in Order By

 In Ingres 2.5, an "order by" clause may now include columns not present 
 in the select list of the corresponding query, as well as expressions 
 including at least one column from one of the tables in the "from" clause. 
 The clause now conforms to the SQL 99 standard. Please see the SQL 
 Reference Guide for details.

 3.1.19 Expression in Group By

 Ingres 2.5 allows expressions in the "group by" list of an SQL statement. 
 This implementation allows both expressions in the group by list (as long 
 as they don't contain set functions) and an ordinal "entry in select list" 
 number, as well as the standard simple column notation. The select list 
 and having clause can contain non-set function expressions as long as 
 all columns are also contained singly or in other expressions in the 
 group by list. Please see the SQL Reference Guide for details.

 3.1.20 Query Optimization/Execution Enhancements

 Ingres 2.5 incorporates a variety of enhancements to the compilation/
 execution of queries. Included amongst these are:
   - improved estimates for queries with "is null" predicates,
   - improved histograms (and better estimates) for date columns,
   - improved performance of "key joins",
   - elimination of sort node from some queries requesting descending
     sort on columns mapped by B-tree indexes,
   - model histograms for temporary table columns (to provide much
     more accurate estimates during query optimization),
   - improved optimization of complex queries involving combinations 
     of nested views, aggregate operations and unions, and
   - new transformation of "not exists", "not in" and "<>" (not equals)
     subselects into equivalent outer joins.
 The last 2 entries in the above list will result in different (improved)
 query plans. In some unusual cases (typically involving highly duplicated
 data), the subselect transformation may produce longer execution times. 
 This is abnormal, but if it happens, the "set noflatten" statement will
 improve the execution of the query. 


 3.2 Ingres Star Enhancements

 In Ingres 2.5 the Ingres/Star Server now contains support for the 1Pcplus 
 commit protocol, which allows a single site that is not capable of 
 supporting two-phase commit protocols to participate in a multi-site 
 update within Star. This change allows a single database that is being 
 accessed through an Ingres Enterprise Access Gateway that does not support 
 the SQL "prepare" statement to participate in a multi-site star update.



 3.3 Ingres 2.5 Net Features

 GCF has responsibility for authenticating and validating clients for 
 Ingres servers.  Previously, Ingres security was built around Operating 
 System capabilities.  The following improvements have been made to 
 Ingres security for Ingres 2.5:

        Support for third-party security systems such as Kerberos.
        Enhancements for data encryption and direct network server connections.
        Improve existing security by addressing known problems.
        Provide backward compatibility for existing applications.

 Support for third-party security systems requires dynamic configuration 
 capabilities since these systems are not a requirement for installation.  
 In an architecture similar to the emerging standard GSS-API, the Ingres 2.5
 GCF security architecture is built around independent modules 
 called mechanisms.  Standard default mechanisms are provided for 
 basic Ingres security and backward compatibility.  Third-party security 
 systems are supported through additional mechanisms, which are 
 dynamically loaded as needed.

 GCF security mechanisms provide the following capabilities:

        User authentication and validation.
        Password validation.
        Trusted Server authentication and validation.
        Distributed (single sign-on) authentication and validation.
        Data Encryption.

 Management of GCF security has been enhanced with new configuration 
 parameters viewable through CBF and the Configuration Manager.
 Ingres 2.5 also sees the addition of attributes to the Ingres/Net 
 VNODE database, and new IMA objects, many of which can be set at 
 runtime, for enhanced IMA support.

 3.4 Ingres/ICE 2.5 Features

 3.4.1 Security

 The security model for Ingres/ICE has been enhanced to provide 
 additional levels of control for access and for content.  The model 
 also assists in the maintenance of large number of Internet users by 
 defining profiles and roles.

 Profiles enable Internet users to register themselves by automatically 
 transferring a predefined set of privileges to the user when first attempting 
 to login.

 Password authentication for intranets may be specified as OS for use 
 with domain servers and authentication servers.

 3.4.2 Session Management

 Ingres/ICE uses cookies to identify individual sessions.  The session 
 identifier enables maintenance of session context between pages.  Sessions 
 have a configurable inactivity timeout which when reached will rollback 
 any uncommitted transactions.

 3.4.3 Storage Management

 3.4.3.1 HTML Templates

 Document content is made available via template files.  In Ingres 2.5 
 access to the template file is abstracted to prevent exposure of queries 
 and schema.

 3.4.3.2 Document Cache Management

 All files accessed within Ingres/ICE are subject to cache management 
 which specifies when the file may be closed or removed.

 3.4.4 Macro Language Extensions

 3.4.4.1 User Identification

 Support for users to be identified via the ii_action HTML variable.  The 
 value may be connect or disconnect to begin or end a session.

 3.4.4.2 State Maintenance

 Transaction control has been implemented by the inclusion of a TRANSACTION 
 option for the SQL macro.  The named transaction may be committed or rolled 
 back using the COMMIT or ROLLBACK macros.

 3.4.4.3 Variables

 Variables may be declared containing any text.  A variable is declared 
 using the DECLARE macro and may be scoped by preceding the variable name 
 with page, session or server.

 3.4.4.4 Conditional Statements

 Variables may be tested using the IF or SWITCH macros to provide 
 conditional flow within template pages.

 3.4.4.5 Include Statements

 The INCLUDE macro enables the inclusion of complete or partial HTML and 
 macro files.  This also allows common statements to be extracted and reused.  
 Include statements may take HTML variables.

 3.4.4.6 Functions

 The FUNCTION macro provides a mechanism for invoking C callable shared 
 libraries and dynamic link libraries.


 3.5 Visual DBA Features

 Note that Visual DBA is part of the visual tools suite, which is only
 available on NT/Windows 2000 and some Unix platforms. Please check the
 platform specific appendix to these release notes to determine whether the
 visual tools are available on your platform.

 3.5.1 DOM Windows - New Design and Features

 As with the Monitor Windows, property panes are now available in 
 DOM Windows, providing object lists and detailed information on DOM 
 objects (databases, tables, views, procedures, etc.), when the 
 corresponding branch is selected in the tree.

 When a table is selected, some special right panes are available:
        - Rows (available also for views)
        - Statistics
        - Pages (available also for indexes)

 New root branch and corresponding right panes for the installation 
 level settings:
        - Security auditing, including right panes for the audit levels, 
          the audit all users, and the display of the audit log
        - Installation level grantees
        - Installation level security alarms

 New Create/Alter database dialog box:
        - Integrates features from createdb, accessdb, relocatedb, upgradefe
        - STAR database option
        - Read-only database option

 Sub-branches of a schema now include the objects owned by the schema.

 Update of the interface for Ingres II 2.5 new features:
        - Parallel index creation
        - ANSI constraint support
        - Read-only databases
        - Read-only tables (in the modify structure dialog)
        - ICE management - described in section 3.6.5 

 Other miscellaneous new features accessible in DOM windows:
        - Duplicate database (equivalent to relocatedb -new_database)
        - infodb
        - fastload
        - Table expiration date.
        - Default profile now available/editable in the "profiles" branch
        - Commands such as checkpoint, rollforwarddb, statdump, etc. are
          now context sensitive: if they are invoked when a table is selected
          in the tree, the table will be pre-selected in the dialog box.
          

 3.5.2 SQL/Test new design and features

 The following new features have been added to the SQL/Test Dialog:

        - The history of results is now kept in a tab control
        - The maximum number of result tabs to be kept in memory is 
          user configurable.
        - Special tab for "trace output"
        - "Load" now accepts / converts special character sequences in existing
          scripts (\g \q , etc.)
        - The maximum number of rows to be kept in memory is user configurable:
          the next rows will now be fetched only when scrolling (down) 
          in the VDBA results tab
        - Graphical representation of QEPs: preview mode convenient for 
          complex queries (the detail for that node is gotten in this 
          case by clicking on the node)
        - The default mode is user configurable.

 3.5.3 Star Management

 The following new features have been added to Visual DBA to facilitate
 the management of STAR database:

        - Automatic detection of STAR databases
        - Special icons in DOM windows for STAR and coordinator Databases
        - Check "system objects" to see coordinator Databases
        - STAR databases specific Properties Panes
        - STAR databases sub-branches are different: tables, views, 
          procedures, and coordinator Database.
        - Different icons for registered and local tables.
        - Checkbox in the "Create database" dialog for creating 
          distributed (STAR) databases
        - Transparent connection (/star suffix added internally)
        - New dialogs and menu items for registering a table/view/procedure:
            - Gateway tables/views are accepted as well 
            - Special warning when trying to create a table 
              (since "register as link" is the recommended method)
        - Drag and drop into a STAR Database: 
            - Proposes the "register as link" dialog
        - "drop" will de-register when appropriate

 3.5.4 Full Replicator Management

 The following features have been added to Visual DBA Replicator Management:

        - Replication monitoring is now available:
           - Global view of all Replicator servers required for a 
             given replication scheme, the node on which they should 
             be started, and their localDB
           - Configure/Start/Stop replication servers even remotely from 
             this global view
           - GUI for startup settings (no "-XYZ" syntax required) 
             (works remotely as well)
           - Start/Stop server: log file directly accessible in the GUI
           - Icon differentiation for started and stopped servers
           - Right pane tabs equivalent to the repmgr monitor features 
             [activity (queues counts, outgoing/incoming records with 
             detail /database and /table), Servers, raise events, 
             Collisions, Integrity, Distrib]
           - Introduction of tabs for send events and assignments
           - Although typically not recommended, it is possible to 
             specify a replication server running on a node 
             which differs from its local database.

        -  Manual Collision resolution:
           - Collisions grouped by transaction in the tree
           - For a given collision, shows conflicting rows and proposes a
             list from which the "winning" one can be chosen.

        - CDDS definition:
            - Appropriate default values for server numbers and target 
              types are automatically assigned but can be changed manually.
            - Warning /error messages (depending on the situation) when 
              inconsistent propagation paths are entered
            - Propagate (moveconfig) proposes to install replication objects 
              on the fly if they where not installed yet
            - You no longer need to define a node for the local installation

 3.5.5 ICE Management

        - Metadata managed in DOM windows, through new tree branches and 
          right pane tabs:
            - Security definitions 
            - Business units and attached facets, pages, security and locations
            - Server branch for session groups, locations, and variables

        - Monitoring available in Monitor windows:
            - Expand the ICE server branch
            - ICE specific sub-branches / properties panes available

 3.5.6 Enterprise Access

        - Expand the "servers" sub-branch of the node in the "nodes" window.
        - Connect from the chosen "server" (gateway)
        - If the default server-class is that of the gateway, you can connect
          directly from the node branch

        - DOM windows for a gateway:
            - Branches: databases, tables, views, schemas
            - Right pane information available
            - Create table/view available
            - Drag and drop available

        - SQL / Test available


 3.5.7 Miscellaneous New Features

        - The new "users" sub-branch for nodes, in the nodes window, now
          allows users to connect with the equivalent of the SQL "-u" option 

        - Node definition:
           - New dialog for defining a node
           - New "attributes" sub-branch in the "Advanced Node Parameters"
             (related to Ingres II 2.5 new security features)
           - Special menu item and dialog for "Add Installation Password".
             Special display for the resulting node
           - "Test Node" feature now available (in the right click menu)

        -Monitor windows :
           - "blocked" sessions now have a red icon
           - New "blocking session" sub-branch for blocked sessions/locklists 
           - New pie chart tab for the Log file (when selecting the 
             "log information branch)
           - Open/Close server feature
           - New "Express Background Refresh" button in the properties panes

        - New default settings for background refresh:
           - Background refresh active
           - 1 day for Metadata
           - 90 seconds for monitor data
        
        - User interface improvements:
           - Visual animation during query execution
           - Right pane lists (DOM / Monitor windows):
              - Icons in the lists
              - Double click in the list expands/ puts the selection in the
                left pane tree on the object

        - VDBA now "callable in context" from the command line. Example:
          VDBA /c MAXAPP MAXWIN DOM database mydb

        - History of SQL errors dialog now accessible directly from error
          message boxes

        - New "general display" preferences
        - Ctrl key no longer needed for drag and drop operations
        - Remote command dialog box is now resizable


 3.6 Ingres 2.5 Replicator Enhancements

 3.6.1 Generic Replicator Server

 Ingres 2.5 introduces a Generic Replicator Server which is functionally 
 identical to the custom repserver built by the user in previous Ingres 
 releases.  The Generic Replicator Server can automatically handle any 
 table that is configured by RepManager or VDBA, without the need to 
 compile or link a custom executable.

 3.6.2 Increased Replicator Concurrency 

 In previous releases of Ingres, updates to the Replicator shadow, 
 archive, and input queue tables performed by the DBMS as a result 
 of a replicated user update would use the same isolation level as 
 the original update (serializable by default). This isolation level 
 is unnecessary, since the unique key value in the base table must 
 have already been locked for the update to take place. In this release, 
 the isolation level has been decreased to "read committed", allowing 
 for improved concurrency of replicated updates.
 

 3.7 OpenAPI Enhancements

 3.7.1 Environment Handles

 A new type of handle called an Environment Handle is available to the 
 application with API version 2. The Environment Handle identifies 
 storage for information about a specific environment set up. An 
 application requests an Environment Handle with the IIapi_initialize() 
 function by setting the API version to IIAPI_VERSION_2. The application 
 then specifies the handle whenever it issues requests within the context 
 of that environment. 

 When the application no longer needs the Environment Handle, it releases 
 the handle with the IIapi_releaseEnv() function. An application gets a new 
 Environment Handle every time it invokes the IIapi_initialize() function.

 3.7.2 Changes to Existing Functions

 3.7.2.1 IIapi_initialize()

 Initializes OpenIngres or Ingres II OpenAPI to the input version specified.

 Syntax

 II_VOID IIapi_initialize ( IIAPI_INITPARM *initParm );

 typedef struct _IIAPI_INITPARM
 {
        II_LONG                in_timeout;
        II_LONG                in_version;
        IIAPI_STATUS           in_status;
        II_PTR                 in_envHandle;
 } IIAPI_INITPARM;

 Description

 IIapi_initialize() allocates an Environment Handle and returns it to 
 the application.

 New Parameter for IIapi_initialize()

 Parameter      Type    Description
 =========      ====    ===========
 in_envHandle   Output  The Environment Handle returned to the application 
                        if the OpenAPI version specified is IIAPI_VERSION_2.

                        NULL if the OpenAPI version being used by the 
                        application is IIAPI_VERSION_1.


 3.7.2.2 IIapi_setConnectParam()

 Assigns a connection parameter and value to a connection.

 Syntax

 II_VOID IIapi_setConnectParam ( IIAPI_SETCONPRMPARM *setConPrmParm );

 typedef struct _IIAPI_SETCONPRMPARM
 {
        IIAPI_GENPARM          sc_genParm;
        II_PTR                 sc_connHandle;
        II_LONG                sc_paramID;
        II_PTR                 sc_paramValue;
 } IIAPI_SETCONPRMPARM;

 Description

 The application can specify either connection handle or environment 
 handle as input handle to IIapi_setConnectParam() with OpenAPI version 2.

 Changed Parameter for IIapi_setConnectParam()

 Parameter      Type                    Description
 =========      ====                    ===========
 sc_connHandle  Input and immediate     Either the connection handle 
                output                  identifying the immediate 
                                        connection to the target DBMS 
                                        Server or the Environment Handle 
                                        returned by IIapi_initialize(). 
                                        If input is null, a new connection 
                                        handle is returned.

 3.7.2.3 IIapi_connect()

 Connects to the DBMS Server or Name Server based on the connection type.

 Syntax

 II_VOID IIapi_connect ( IIAPI_CONNPARM *connParm );

 typedef struct _IIAPI_CONNPARM
 {
        IIAPI_GENPARM         co_genParm;
        II_CHAR               *co_target;
        II_CHAR               *co_username;
        II_CHAR               *co_password;
        II_LONG               co_timeout;
        II_PTR                co_connHandle;
        II_PTR                co_tranHandle;
        II_LONG               co_sizeAdvise;
        II_LONG               co_apiLevel;
        II_LONG               co_type;
 } IIAPI_CONNPARM;

 Description

 With OpenAPI version 2, applications can specify an Environment Handle 
 as the connection handle to the IIapi_connect(), connection type. The 
 supported connection types are:

 IIAPI_CT_NS            Establish connection to the Name Server 

 IIAPI_CT_SQL           Establish connection to a relational DBMS Server.

 IIAPI_CT_JAS           Establishment connection to an internally supported 
                        Jasmine Server.

 Changed Parameter for IIapi_connect()

 Parameter      Type                 Description
 =========      ====                 ===========
 co_connHandle  Input and Immediate  The connection handle or environment 
                Output               handle. This parameter identifies 
                                     the connection or environment for 
                                     subsequent CA-OpenIngres/API function 
                                     calls that invoke SQL statements and 
                                     transactions within the context of 
                                     this connection.

                                     This may be the connection handle 
                                     returned by IIapi_setConnectParam() 
                                     or Environment Handle returned by 
                                     IIapi_initialize(), otherwise set 
                                     to NULL.

 New Parameter for IIapi_connect()

 Parameter      Type    Description
 =========      ====    ===========
 co_type        Input   Connection Type. 

 The valid values are:

         IIAPI_CT_NS,
         IIAPI_CT_JAS,
         IIAPI_CT_SQL


 3.7.3 Name Server Connections

 In Ingres 2.5 OpenAPI enables applications to perform operations on the 
 Name Server database. The following table lists the operations that 
 are available to the application.

 Operations on the Name Server Database

 Operation     Description
 =========     ===========
 Create        Creates a new connection data entry or remote user 
               authorization or attribute data entry.
 Destroy       Destroys a connection data entry or remote user 
               authorization or attribute data entry.
 Show          Displays information to the application.

 The following table describes the values for IIapi_connect() parameters to 
 the Name Server.

 Values for IIapi_connect() parameters

 Parameter      Value
 =========      =====
 co_type        IIAPI_CT_NS
 co_target      NULL for local installation or vnode name for 
                remote installation.
 co_username    Optional
 co_password    Optional. It is not required if current user has 
                NET_ADMIN privilege. 
 co_timeout     Timeout value in seconds
 co_connHandle  Environment handle returned by IIapi_initialize(). 
                Can't be NULL. 
                Can be the connection handle returned by 
                IIapi_setConnectParam(), but connection parameters 
                settings are ignored.
 co_tranHandle  NULL

 The application should make the following sequence of OpenAPI calls 
 as indicated in the table below to connect, perform operations on the 
 Name Server Database, disconnect. Only autocommit transactions are 
 supported.

 Operations on Name Server Database and the OpenAPI Functions
        
 Operation              OpenAPI Function
 =========              ================
 Connect                IIapi_initialize()
                        IIapi_connect()
                        IIapi_autocommit()
 Create, Destroy        IIapi_query()
                        IIapi_setDescriptor() **
                        IIapi_putParms()      **
                        IIapi_getQueryInfo()
                        IIapi_close()
 Show                   IIapi_query()
                        IIapi_setDescriptor() **
                        IIapi_putParms()      **
                        IIapi_getColumns()
                        IIapi_getQueryInfo()
                        IIapi_close()
 Disconnect             IIapi_autocommit()
                        IIapi_disconnect()
                        IIapi_releaseEnv()
                        IIapi_terminate()
 ** API Functions are optional.


 3.7.3.1 Name Server Query Statement

 The name server query text is divided into fields, which are 
 separated by a blank space. The first four fields of a query text 
 describe the action to be performed and the virtual node name with 
 which the action is associated. These four fields appear in the order 
 given below in each query statement.


 Fields of a Name Server Query Text
        
 Field  Parameter       Value                       Description
 =====  =========       =====                       ===========
 1      Function        Create, Destroy or Show     The task that will 
                                                    be performed
 2      Type            Global or Private.          The registration type 
                                                    of the object. A global 
                                                    object is available 
                                                    to all users on the 
                                                    local node. A private 
                                                    object is available to 
                                                    a single user. Private 
                                                    objects are created and 
                                                    destroyed for the 
                                                    currently logged in user. 
                                                    Only a user with a GCA 
                                                    privilege NET_ADMIN 
                                                    (generally a System 
                                                    Administrator) can 
                                                    create and destroy 
                                                    global objects.
 3      Object          Login or Connection,        The object to be created, 
                        Attribute.                  destroyed, or shown.
                                                    "Attribute" refers to 
                                                    the attribute of the 
                                                    virtual node.
                                                    "Connection" refers to 
                                                    a connection data entry.
                                                    "Login" refers to a 
                                                    remote user authorization.
 4      Virtual Node     Vnode name                 The virtual node name 
        Name.                                       (vnode). Each query 
                                                    statement must contain 
                                                    Vnode identifier.

                
 Note: Single letter abbreviation is sufficient to first three fields 
 ( Function, Type, and Object  ).  Values in the Virtual Node Name field 
 may not be abbreviated.

 On the query text that specify either the Destroy or Show function, 
 the asterisk character (*) may be entered as a wildcard in any field 
 other than the Function, Type, and Object fields. Wildcards may not 
 be used with Create function.

 3.7.3.2 Syntax and Examples of Name Server Query Text for Specific Operations

 The following sections provide the syntax necessary to create, destroy, 
 or display attribute, connection data entries and remote user 
 authorizations, display servers running.


 3.7.3.2.1 To Create a Remote User Authorization

 Syntax:

 create <type> login <vnode> <login> <password>

 Where:

 type           Global or Private
                A global object is available to all users on 
                the local node. A private object is available
                to a single user.

 vnode          The virtual node name associated with this authorization.

 login          The name of the account to be used on the
                remote installations host machine.

 password       The password of the remote account. 
        
 Example 1:
        Create a private authorization for vnode "apitest" for user Tom.
        C P L apitest tom tompassword

 Example 2:
        Create a global authorization for vnode "dbtest" using an 
        installation password.

        cr gl login dbtest * installationpasswd


 3.7.3.2.2 To Destroy a Remote User Authorization

 Syntax:

 destroy <type> login <vnode>

 Where:

 type           Global or Private.

 vnode          The virtual node name associated with this authorization.

 Example 1:
        Destroy a private login on vnode "apitest."
        DE PR L apitest        

 The entry to be destroyed is uniquely identified by its type and the 
 vnode name. No additional fields are necessary.

 Example 2:
        Destroy a private login on all the vnodes where it occurs.
        DE PR L *

 Using a wildcard in the vnode field allows you to destroy all instances 
 of a particular login with a single query text statement.


 3.7.3.2.3 To Define an Installation Password for the Local Installation

 Syntax:

 create global login <local_vnode> * <password>

 Where:

 local_vnode    The name that has been configured as local_vnode 
                on this installation.  This name can be found on 
                the Configure Name Server screen of the CBF utility.
 
 password       The installation password you have chosen for this 
                installation.

 Example: 
        Define an Installation Password for the local installation, which has 
        a local_vnode name of "apitest"

        create gl login apitest * apitest_password



 3.7.3.2.4 To Create a Connection Data Entry

 Syntax:

 create <type> connection <vnode> <net_addr> <protocol> <port>

 Where:

 type           Global or Private
                A global object is available to all users on the local node.
                A private object is available to a single user.

 vnode          The virtual node name associated with this connection entry.

 net_addr       The address or name of the remote node.
                Your Network Administrator specifies this address or 
                name when the network software is installed. Normally, 
                the node name as defined at the remote node is sufficient 
                for this field.

                The format of a net address depends on the type of 
                network software that the node is using.

 protocol       The Ingres key word for the protocol used to connect to 
                the remote node.

 port           The unique identifier used by the remote Communication 
                server for interprocess communication.
                The format of a listen address depends on the network protocol.


 Example: 
        Create a global connection data entry on vnode "apitest" where:
                net_addr = apitest
                protocol = TCP/IP
                port = mg0
        C G C apitest apitest tcp_ip mg0  

        Note that the virtual node name and the host are different objects, 
        although it is common for them to have the same value. 

        If a connection entry already exists that matches the specified 
        one in all respects, the operation will have no effect, and no 
        error will be reported.



 3.7.3.2.5 To Destroy a Connection Data Entry

 Syntax:

 destroy <type> connection <vnode> <net_addr> <protocol> <port>

 Where:

 type           Global or Private
                A global object is available to all users on the local 
                node. A  private object is available to a single user.

 vnode          The virtual node name associated with this connection entry.

 net_addr       The address or name of the remote node.

 protocol       The Ingres key word for the protocol used to connect to 
                the remote node.

 port           The unique identifier used by the remote Communication 
                server for interprocess communication.

 Example 1: 
        Destroy a private connection data entry on vnode "apitest", where:
                net_addr  = apitest
                protocol = TCP/IP
                port  = mg2
        D P C apitest apitest tcp_ip mg2

 Example 2: 
        Destroy all global connection data entries for vnode "payroll" that 
        include the TCP_IP protocol.
        D GL C payroll * tcp_ip *

        Note a wildcard may be used in the vnode, net_addr, protocol 
        or port fields to select a range of records.

 3.7.3.2.6 To Display Connection Data Entries

 Syntax:

 show <type> connection <vnode> <net_addr> <protocol> <port>

 Where:

 type           Global or Private
                A global object is available to all users on the local
                node. A  private object is available to a single user.

 vnode          The virtual node name associated with this connection entry.

 net_addr       The address or name of the remote node.

 protocol       The Ingres key word for the protocol used to connect to
                the remote node.

 port           The unique identifier used by the remote Communication
                server for interprocess communication.

 The asterisk character (*) may be entered as a wildcard in the vnode, 
 net_addr, protocol, or port fields. ( A wildcard may not be used in the 
 type field.)

 Example: 

        Display global connection data entries on vnode "apitest" where:
                Net_addr = apitest
                protocol = * (Not to be used in selecting records.)
                port = * (not to be used in selecting records.)

        The following is displayed:
                global connection apitest apitest tcp_ip mg2

 3.7.3.2.7 To Create an Attribute Data Entry

 Syntax:

        create <type> attribute <vnode> <attr_name> <attr_value>

 Where:

        type        Global or Private
                    A global object is available to all users on the local
                    node. A  private object is available to a single user.

        vnode       The virtual node name associated with this connection entry.

        attr_name   The name of the attribute.        

        attr_value  The value of the attribute.

 Example: 

        Create a global attribute data entry on vnode "apitest" where:
                attr_name = connection_type
                attr_value = direct

        C G A apitest  connection_type direct

 If an attribute entry already exists that matches the specified one 
 in all respects, the operation will have no effect, and no error will 
 be reported.

 3.7.3.2.8 To Destroy an Attribute Data Entry

 Syntax:

        destroy type attribute attr_name attr_value

 Where:

        type           Global or Private
                       A global object is available to all users on the local
                       node. A  private object is available to a single user.

        attr_name      The name of the attribute.

        attr_value     The value of the attribute.

 Example 1: 

        Destroy a private attribute data entry on vnode "apitest", where
                attr_name = connection_type
                attr_value = direct
        D p a apitest connection_type direct

 Example 2: 

        Destroy all global attribute data entries for vnode "payroll" that 
        include the connection_type

        D gl a payroll connection_type  *

 A wildcard may be used in the attr_name, attr_value fields to select a 
 range of records.

 3.7.3.2.9 To Display Attribute Data Entries

 Syntax:

        show <type> attribute <attr_name> <attr_value>

 Where:

        type           Global or Private
                       A global object is available to all users on the local
                       node. A  private object is available to a single user.

        attr_name      The name of the attribute.

        attr_value     The value of the attribute.

 The asterisk character (*) may be entered as a wildcard in the attr_name, 
 attr_value fields. ( A wildcard may not be used in the type field.)

 Example: 

        Display global attribute data entries on vnode "apitest" where:
                attr_name= * (Not to be used in selecting records.)
                attr_value= * (Not to be used in selecting records.)

        The following is displayed.

        global attribute apitest connection_type direct


 3.7.3.2.10 To display Servers in the Local Installation
 
 Syntax:

        s server servers

 To display a specific server, provide the server class of the server. 

 For example to display INGRES server in an installation use the following 
 syntax:
        s  server INGRES

 3.7.3.2.11 Using ~V marker in the Name Server Query text

 A ~V marker may appear in any of the sub fields of the objects such as 
 Login, Connection, Attribute and in the type field in a Name server 
 query text. The ~V marker must be preceded and followed by a space character. 
 Values for the parameter markers are sent with the query using 
 IIapi_setDescriptor() and IIapi_putParams(), in the same order as 
 the parameter markers appear in the query text.

 As an example, the following query text is a valid query text with ~V marker.
 S server ~V 
 When sent with parameter value of `servers' is identical to the query 
 S server servers


 3.7.4 NEW OPENAPI FUNCTIONS

 3.7.4.1 IIapi_releaseEnv()

 Release resources associated with an Environment Handle.
   
 Syntax

        II_VOID IIapi_releaseEnv ( IIAPI_RELENVPARM *relEnvParm );

        typedef struct _IIAPI_RELENVPARM
        {
                II_PTR                re_envHandle:
                IIAPI_STATUS        re_status;        
        } IIAPI_RELENVPARM;

 Description

 The IIapi_releaseEnv() function frees an Environment Handle and any 
 resources associated with the Environment Handle.

 An application calls IIapi_releaseEnv() to free an Environment Handle 
 allocated by IIapi_initialize(). Any active DBMS server connections 
 associated with the Environment Handle are aborted and the respective 
 connection handle is freed, as are all associated transaction, statement 
 and database event handles. While this function may be used to clean-up 
 quickly after a connection failure, applications are encourage to continue 
 calling IIapi_close(), IIapi_commit()/IIapi_rollback() and 
 IIapi_disconnect() to cleanly  shutdown DBMS connections.  A warning 
 status is returned if a connection is aborted.  

 The application may continue to make CA-OpenIngres/OpenAPI function 
 calls after calling this function, but will do so in the context of 
 the default Environment Handle shared by all version 1 applications.  
 The application must still call IIapi_terminate() to release global 
 resources used by CA-OpenIngres/OpenAPI.


 Parameters for IIapi_releaseEnv()

 Parameter        Type        Description
 =========        ====        ===========
 re_envHandle     input       The Environment Handle for which resources 
                              should be freed.
 re_status        output      The status of the function upon its return.  
                              Its value is one of the following: 
                                      IIAPI_ST_SUCCESS 
                                      IIAPI_ST_WARNING 
                                      IIAPI_ST_NOT_INITIALIZED 
                                      IIAPI_ST_INVALID_HANDLE

                

 3.7.4.2 IIapi_autocommit()

 Enable or disable an autocommit transaction.
    
 Syntax

 II_VOID IIapi_autocommit( IIAPI_AUTOPARM *autoParm );

 typedef struct _IIAPI_AUTOPARM
 {
        IIAPI_GENPARM     ac_genParm;
        II_PTR            ac_connHandle;
        II_PTR            ac_tranHandle;

 } IIAPI_AUTOPARM;

 Description

 The IIapi_autocommit() function controls the autocommit state
 of the DBMS server through an autocommit transaction handle.

 This function is called with a NULL transaction handle to enable
 the autocommit state in the DBMS server.  This is equivalent to 
 the SQL statement 'SET AUTOCOMMIT ON'.  An autocommit transaction
 handle is returned to be used in place of a regular transaction
 handle in IIapi_query().  SQL statements executed in the context
 of an autocommit transaction are automatically committed when they
 complete execution.

 When called with an existing autocommit transaction handle, this
 function disables the autocommit state in the DBMS server.  This
 is equivalent to the SQL statement 'SET AUTOCOMMIT OFF'.  The
 autocommit transaction handle is freed and may not be referenced
 further by the application.

                Parameters for IIapi_autocommit()

 Parameter        Type                  Description
 =========        ====                  ===========
 ac_genParm       Input and output      The generic parameters.  
                                        Refer to the section 
                                        "Generic Parameters" 

 ac_connHandle    Input                 The connection handle on which the 
                                        autocommit transaction is to be 
                                        enabled.  Set to NULL when 
                                        disabling an existing autocommit 
                                        transaction.

 ac_tranHandle    Input and immediate   The transaction handle to be used 
                  output                while autocommit is enabled.  
                                        Set to NULL when enabling an 
                                        autocommit transaction.

 3.7.4.3. IIapi_getEvent()

 Wait for database event.
    
 Syntax

 II_VOID IIapi_getEvent( IIAPI_GETEVENTPARM *getEventParm );

 typedef struct _IIAPI_GETEVENTPARM
 {

        IIAPI_GENPARM        gv_genParm;
        II_PTR               gv_connHandle;
        II_LONG              gv_timeout;        

 } IIAPI_GETEVENTPARM;

 Description

 The IIapi_getEvent() function checks for database events which
 are received independent of other query results being returned
 by the DBMS server.  Database event information is retrieved
 using IIapi_catchEvent() (which should be called prior to calling
 IIapi_getEvent()).

 An application prepares to process database events by registering
 with the DBMS server (IIapi_query()) and OpenAPI (IIapi_catchEvent())
 for specific events.  The application can then receive event
 notification while processing other queries on the connection.

 IIapi_getEvent() can be called to receive database events when the 
 application does not have any query processing to be performed on
 the desired connection.  No queries may be issued on the connection 
 handle specified until IIapi_getEvent() completes.

                Parameters for IIapi_getEvent()

 Parameter        Type               Description
 =========        ====               ===========
 gv_genParm       Input and output   The generic parameters.  Refer to the 
                                     section "Generic Parameters" for a 
                                     description of these parameters.
 gv_connHandle    Input              The connection handle to check for 
                                     database events
 gv_timeout       Input              The number of milliseconds to wait 
                                     for an event to be received.  Set 
                                     to -1 to wait indefinitely for an 
                                     event.  To poll for events without 
                                     waiting, set to 0. Support for time-outs 
                                     is platform dependent.  If time-outs 
                                     are not supported, all values will be
                                     treated the same as -1.

 3.7.4.4 IIapi_setEnvParam()

 Assigns an environment parameter and value in the Environment Handle.
    
 Syntax

 II_VOID IIapi_setEnvParam ( IIPI_SETENVPRMPARM *setEnvPrmParm );

 typedef struct _IIAPI_SETENVPRMPARM
 {
        II_PTR                      se_envHandle;
        II_LONG                     se_paramID;
        II_PTR                      se_paramValue;
        IIAPI_STATUS                se_status;
 } IIAPI_SETENVPRMPARM;

 Description

 The IIapi_setEnvParam() allows the application to override the 
 default environment logical settings established by the 
 IIapi_initialize() for a specific Environment Handle.

 Settings for environment parameters, which correspond to connection 
 parameters, will be used as the default connection parameter value 
 unless explicitly overridden by IIapi_setConnectParam().

 Environment parameters also affect the conversions performed by 
 IIapi_formatData() and control interactions between OpenAPI and the 
 application.

 Parameters for IIapi_setEnvParam()

 Parameter        Type        Description
 =========        ====        ===========
 se_envHandle     Input       The Environment Handle for which the 
                              parameter is being assigned.
 se_paramID       Input       The parameter being assigned. Refer to the 
                              table below for valid parameter ID macros.
 se_paramValue    Input       The value of the parameter being assigned. 
                              Refer to the table below for the data type 
                              and description of value associated with 
                              each parameter ID.
 se_status        Output      The status of the function upon its return.  
                              Its value is one of the following:
                                      IIAPI_ST_SUCCESS 
                                      IIAPI_ST_FAILURE 
                                      IIAPI_ST_NOT_INITIALIZED    
                                      IIAPI_ST_INVALID_HANDLE

 The following table lists valid parameter ID macros for the se_paramID  
 Parameter.

 Values for se_paramID

 Parameter ID               Data Type      Description
 ============               =========      ===========
 IIAPI_EP_CHAR_WIDTH        II_LONG        The maximum length of a character 
                                           (IIAPI_BYTE_TYPE, IIAPI_CHA_TYPE,
                                           IIAPI_CHR_TYPE, IIAPI_VCH_TYPE) 
                                           data type.
 IIAPI_EP_TXT_WIDTH         II_LONG        The maximum length of a text
                                           (IIAPI_TXT_TYPE) data type.
 IIAPI_EP_INT1_WIDTH        II_LONG        The length of an integer1 
                                           (IIAPI_INT_TYPE) data type.
 IIAPI_EP_INT2_WIDTH        II_LONG        The length of an integer2 
                                           (IIAPI_INT_TYPE) data type.
 IIAPI_EP_INT4_WIDTH        II_LONG        The length of an  integer4 
                                           (IIAPI_INT_TYPE) data type.
 IIAPI_EP_FLOAT4_WIDTH      II_LONG        The length of a float4 
                                           (IIAPI_FLT_TYPE) data type.
 IIAPI_EP_FLOAT8_WIDTH      II_LONG        The length of a float8 
                                           (IIAPI_FLT_TYPE) data type.
 IIAPI_EP_FLOAT4_PRECISION  II_LONG        The precision of a float4 
                                           (IIAPI_FLT_TYPE) data type.
 IIAPI_EP_FLOAT8_PRECISION  II_LONG        The precision of a float8 
                                           (IIAPI_FLT_TYPE) data type.
 IIAPI_EP_MONEY_PRECISION   II_LONG        The precision of a money 
                                           (IIAPI_MNY_TYPE) data type.
 IIAPI_EP_FLOAT4_STYLE      II_CHAR        The format style of a float4 
                                           (IIAPI_FLT_TYPE) data type.
 IIAPI_EP_FLOAT8_STYLE      II_CHAR        The format style of a float8 
                                           (IIAPI_FLT_TYPE) data type.
 IIAPI_EP_NUMERIC_TREATMENT II_CHAR        The treatment of numeric literal. 
                                           Valid values are one of the 
                                           following:
                                               IIAPI_EPV_DECASFLOAT
                                               IIAPI_EPV_DECASDEC
 IIAPI_EP_MONEY_SIGN        II_CHAR        The money sign of a 
                                           (IIAPI_MNY_TYPE) data type
 IIAPI_EP_MONEY_LORT        II_LONG        The leading or trailing money sign. 
                                           Valid values are one of the 
                                           following: 
                                               IIAPI_CPU_MONEY_LEAD_SIGN 
                                               IIAPI_CPU_MONEY_TRAIL_SIGN 
 IIAPI_EP_DECIMAL_CHAR      II_CHAR        The decimal character.
 IIAPI_EP_MATH_EXCP         II_CHAR        The treatment of math exceptions. 
                                           Valid values are the following:
                                               IIAPI_EPV_RET_FATAL
                                               IIAPI_EPV_RET_WARN
                                               IIAPI_EPV_RET_IGNORE
 IIAPI_EP_STRING_TRUNC      II_CHAR        The truncation of strings.
 IIAPI_EP_DATE_FORMAT       II_LONG        The date format. Valid values are 
                                           one of the following: 
                                               IIAPI_EPV_DFRMT_US
                                               IIAPI_EPV_DFRMT_MULT 
                                               IIAPI_EPV_DFRMT_FINNISH 
                                               IIAPI_EPV_DFRMT_ISO
                                               IIAPI_EPV_DFRMT_GERMAN 
                                               IIAPI_EPV_DFRMT_YMD 
                                               IIAPI_EPV_DFRMT_MDY  
                                               IIAPI_EPV_DFRMT_DMY
 IIAPI_EP_TIMEZONE          II_CHAR        The name of the timezone
 IIAPI_EP_NATIVE_LANG       II_CHAR        The name of the language used  
                                           for error reporting. This is 
                                           converted to a language code 
                                           prior to send it to the server.
 IIAPI_EP_NATIVE_LANG_CODE  II_LONG        The language code of the native 
                                           language used for error reporting. 
                                           IIAPI_EP_NATIVE_LANG may be used 
                                           when the language code is not known.
 IIAPI_EP_CENTURY_BOUNDARY  II_LONG        The date century  boundary.
 IIAPI_EP_SEGMENT_LEN       II_LONG        BLOB segment length.
 IIAPI_EP_TRACE_FUNC        II_PTR         Callback Function pointer to the 
                                           application for trace messages
 IIAPI_EP_PROMPT_FUNC       II_PTR         Callback Function pointer to the 
                                           application for prompt message.
 IIAPI_EP_EVENT_FUNC        II_PTR         Callback Function pointer to the 
                                           application for database event 
                                           message.


 3.7.4.4.1 Parameter Block for TRACE_FUNC in IIapi_setEnvParam()

 An application can set IIAPI_EP_TRACE_FUNC in the IIapi_setEnvParam() 
 by providing the address of an application function to call back. OpenAPI 
 invokes this application function to send diagnostic information from the 
 backends to the application using the following C structure.

 Syntax

 II_VOID traceFunc( IIAPI_TRACEPARM *Parm );

 typedef struct _IIAPI_TRACEPARM
 {
        II_PTR           tr_envHandle;
        II_PTR           tr_connHandle;
        II_INT4          tr_length;
        II_CHAR         *tr_message;
 } IIAPI_TRACEPARM;


 The application must invoke IIapi_setEnvParam() by providing se_paramID 
 to be IIAPI_EP_TRACE_FUNC and se_paramValue to be traceFunc. 

 Parameter        Type        Description
 =========        ====        ===========
 tr_envHandle     Input       Environment handle.
 tr_connHandle    Input       Connection handle identifying the connection.
 tr_length        Output      Output trace message length.
 tr_message       Output      Output trace message.


 3.7.4.4.2 Parameter Block for PROMPT_FUNC  in IIapi_setEnvParam()

 An application can set IIAPI_EP_PROMPT_FUNC in the IIapi_setEnvParam() 
 by providing the address of an application function to call back. 
 OpenAPI invokes this application function to receive reply from the 
 application for the prompt message from the back-end using the following 
 C structure.

 Syntax

 II_VOID promptFunc( IIAPI_PROMPTPARM *Parm );

 typedef struct _IIAPI_PROMPTPARM
 {
        II_PTR          pd_envHandle;
        II_PTR          pd_connHandle;
        II_LONG         pd_flags;
        II_LONG         pd_timeout;     
        II_UINT2        pd_msg_len;
        II_CHAR        *pd_message; 
        II_UINT2        pd_max_reply;
        II_LONG         pd_rep_flags;
        II_UINT2        pd_rep_len;
        II_CHAR        *pd_reply;
  }IIAPI_PROMPTPARM;
                                         
 The application must invoke IIapi_setEnvParam() by providing se_paramID 
 to be IIAPI_EP_PROMPT_FUNC and se_paramValue to be promptFunc. 

 IIAPI_PROMPTPARM Parameters

 Parameter        Type        Description
 =========        ====        ===========
 pd_envHandle     Input       Environment handle.
 pd_connHandle    Input       Connection handle identifying the connection.
 pd_flags         Input       Prompt flags. The valid values are: 
                                      IIAPI_PR_NOECHO 
                                      IIAPI_PR_TIMEOUT
 pd_timeout       Input       Timeout in seconds
 pd_msg_len       Input       Length of message
 pd_message       Input       Prompt message
 pd_max_reply     Input       Maximum length of the reply
 pd_rep_flags     Output      Response flags. The valid value is: 
                                      IIAPI_REPLY_TIMEOUT.
 pd_rep_len       Output      Prompt reply length
 pd_reply         Output      Prompt reply


 3.7.4.4.3 Parameter Block for EVENT_FUNC  in IIapi_setEnvParam()

 An application can set IIAPI_EP_EVENT_FUNC in the IIapi_setEnvParam() 
 by providing the address of an application function to call back. 
 OpenAPI invokes this function to send the Database event information to the 
 application using the following C structure.

 Syntax

 II_VOID eventFunc( IIAPI_EVENTPARM *Parm );

 typedef struct _IIAPI_EVENTPARM
 {
        II_PTR                 ev_envHandle;
        II_PTR                 ev_connHandle;
        II_CHAR                *ev_eventName;
        II_CHAR                *ev_eventOwner;
        II_CHAR                *ev_eventDB;
        IIAPI_DATAVALUE        *ev_eventTime;
  } IIAPI_EVENTPARM;
                                         

 The application must invoke IIapi_setEnvParam() by providing se_paramID 
 to be IIAPI_EP_EVENT_FUNC and se_paramValue to be eventFunc. 

 IIAPI_EVENTPARM parameters

 Parameter        Type        Description
 =========        ====        ===========
 ev_envHandle     Input       Environment handle.
 ev_connHandle    Input       Connection handle identifying the connection.
 ev_eventName     Output      The name of the event caught.
 ev_eventOwner    Output      The owner of the event caught.
 ev_eventDB       Output      The database of the event caught.
 ev_eventTime     Output      The time the event occurred; a IIAPI_DTE_TYPE 
                              data value.

 3.7.4.5 IIapi_formatData()

 Converts Ingres II data values to compatible type. It uses the environment 
 handle returned by the application instead of default Environment Handle.

 Syntax

 II_VOID IIapi_formatData( IIAPI_FORMATPARM *formatParm );

 typedef struct _IIAPI_FORMATPARM
 {
        II_PTR                     fd_envHandle;
        IIAPI_DESCRIPTOR           fd_srcDesc;
        IIAPI_DATAVALUE            fd_srcValue;
        IIAPI_DESCRIPTOR           fd_dstDesc;
        IIAPI_DATAVALUE            fd_dstValue;
        IIAPI_STATUS               fd_status;
 } IIAPI_FORMATPARM;

 Description

 This function provides similar functionality as IIapi_convertData(): 
 IIapi_convertData() always uses the default environment while
 IIapi_formatData() uses the Environment Handle provided by  the 
 application.

 Please refer to the description of  IIapi_convertData() for further details.

 Parameters for IIapi_formatData()

 Parameter        Type        Description
 =========        ====        ===========
 fd_envHandle     Input       The Environment Handle for which the data 
                              values to be converted.

 fd_srcDesc       Input       Description of the original data type. 
                              Refer to "OpenAPI Common Data Types,"
                              for a description of CA-OpenIngres/API 
                              data types.
 fd_srcValue      Input       Original data value, must not be NULL.
 fd_dstDesc       Input       Description of the desired result data type. 
                              Refer to "OpenAPI Common Data Types," for a 
                              description of OpenAPI data types.
 fd_dstValue      Output      Resulting data value. There must be enough 
                              memory allocated to hold the resulting data 
                              value as described by fd_dstDesc (dv_length 
                              must be equal or greater than ds_length).
 fd_status        Output      Returns IIAPI_ST_SUCCESS if the conversion 
                              succeeded. Returns IIAPI_ST_FAILURE if there 
                              is an invalid parameter value, insufficient 
                              space to hold the resulting data value, or 
                              the input data value could not be converted 
                              to the requested type.
 

 3.7.4.6 IIapi_abort()

 Closes a connection and frees the connection handle.

 Syntax

 II_VOID IIapi_abort ( IIAPI_ABORTPARM *abortParm );

 typedef struct _IIAPI_ABORTPARM
 {
        IIAPI_GENPARM        ab_genParm;
        II_PTR               ab_connHandle;
 } IIAPI_ABORTPARM;

 Description

 The IIapi_abort() function closes a connection opened with 
 IIapi_connect() and frees all the resources associated with the 
 connection handle.

 Any transaction associated with the connection is aborted, and 
 the transaction handle freed, as are all associated statement and 
 database event handles.

 While this function may be used to cleanup quickly when a problem 
 is detected on a connection, applications are encouraged to continue 
 calling IIapi_close(), IIapi_commit()/IIapi_rollback() and 
 IIapi_disconnect() to cleanly shutdown DBMS connections.

 Parameters for IIapi_abort()

 Parameter        Type                 Description
 =========        ====                 ===========
 ab_genParm       Input and output     The generic parameters.  Refer to 
                                       the section "Generic Parameters" 
                                       for a description of these parameters.

 ab_connHandle    Input                The connection handle to be 
                                       disconnected immediately. All 
                                       resources associated with this 
                                       connection are also freed.


 3.8 JDBC Driver

 3.8.1. JDBC Driver Introduction

 The Ingres JDBC Driver is a pure Java implementation of the JDBC 1.20 
 Interface.  The driver supports both application and applet access to 
 Ingres data sources via a middle-ware Ingres JDBC Server.

 The driver supports the full JDBC 1.20 Interface with the exception of 
 the CallableStatement interface for executing database procedures.  
 Database procedures may be executed through the driver using the 
 Statement.executeUpdate() method and the Ingres 'EXECUTE PROCEDURE' 
 statement.  

 The following restrictions are imposed when executing database procedures 
 in this way:

	- Byref (OUT) parameters are not supported.

	- The procedure return value is not accessible.

	- Transaction control statements are not permitted in the procedure.

 The database procedure may send messages to the application which may be 
 retrieved as SQLWarning objects using the Statement.getWarnings() method.


 3.8.2. Driver Packaging

 The Ingres JDBC Driver is delivered as a Java archive named edbc.jar located 
 in the lib directory of the Ingres installation.  In addition, the class files 
 for a Java utility program, EdbcInfo, which displays the driver version 
 information are also located in the same directory.

 Access to the Ingres JDBC Driver may require,depending on the Java environment 
 utilized, adding the Java archive to the CLASSPATH environment setting or 
 as a resource in the appropriate utility.  For browser/applet access, 
 the Java archive may need to be copied to the Web Server directories.


 3.8.3. Loading the Driver

 The following Java source line should be added to an application or applet 
 prior to attempting to establish a connection using the Ingres JDBC Driver:

	Class.forName( "ca.edbc.jdbc.EdbcDriver" ).newInstance();

 Depending on the Java environment, calling the forName() method may be 
 sufficient to load and initialize the Ingres JDBC Driver classes.  Some 
 environments, most notably Microsoft Internet Explorer, require the 
 instantiation of an EdbcDriver object to fully initialize the driver.


 3.8.4. Accessing the Driver

 The Ingres JDBC Driver may be accessed using a DriverManager getConnection 
 method with a URL in the following format:

	jdbc:edbc://host:port/db;attr=value

	host	The network name or TCP-IP address of the host on which 
		the target Ingres JDBC Server is running.

	port	The network port used by the Ingres JDBC Server.  This may 
		be a numeric port number or an Ingres symbol port address 
		such as II7.

	db	The target database specification.  Any valid Ingres database 
		designation may be used including vnode and server class: 
		vnode::database/class.

	attr	Attribute name and value pairs which are optional and 
		repeatable.  Multiple attribute pairs are separated by a 
		semi-colon.
  
 Attributes correspond to a subset of the Properties supported by the JDBC 
 Driver.  The supported attributes and their corresponding Properties are 
 listed below.

	Attr	Property	Desscription
	----	----------	------------
	UID	user		The name of the user connecting to 
				the database.

	PWD	password	The user's password.

 Driver properties may also be provided as attributes using the property 
 name as the attribute name.  Thus 'UID=user1' and 'user=user1' are 
 semantically the same.  Refer to the following section for further 
 information on driver properties.

 3.8.5. Driver Properties

 The following properties are supported by the Ingres JDBC Driver when 
 passed in the DriverManager.getConnection() method:

	Property	Description
	--------	-----------

	user		The user name to be associated with the connection.

	password	The user's O.S. password.

	role		The desired role identifier.  If a role password is 
			required, include it with the role name as follows: 
			name/password

	group		The user's group identifier.

	eff_user	The effective user name to be associated with the 
			connection (administrator privileges required).

	dbms_password	The user's DBMS password.

	connect_pool	Server connection pool control.  Set to off to 
			request a non-pooled connection when server pooling 
			is enabled.  Set to on to request a pooled 
			connection when server pooling is optional.

 Properties may also be passed as attributes in the URL (see preceding 
 section).  When provided both as properties and attributes, the property 
 value takes precedence.

 3.8.6. Configuring the JDBC Server

 The Ingres JDBC Server may be configured using CBF.  Multiple server 
 configurations may be specified in CBF (using the duplicate option).  
 For each server configuration, the following parameters may be configured:

      - protocol		
	
	The network protocol designation for TCP-IP on the server platform.

      - port		
	
	The network port.  This may be a numeric port identifier or an 
	Ingres symbol port identifier such as II7.  This port must not be 
	used by any other JDBC or communication server on the platform.
	
      - client_max
	
	Maximum number of client connections permitted.  Set to -1 for no limit.

      - client_timeout	
	
	Time, in minutes, to wait for client requests.  If the time expires 
	with no request from the client, the client and DBMS connections 
	are aborted.  Set to 0 for no timeout.

      - connect_pool_status	
	
	The operational mode of the connection pool.  A value of 'OFF' 
	disables pooling.  A value of "ON" enables pooling unless explicitly 
	disabled by the client.  A value of "OPTIONAL" enables pooling but 
	only when requested by the client.

      - connect_pool_size
	
	Maximum number of connections in the pool.  Set to -1 for no limit.

      - connect_pool_expire
	
	Time, in minutes, for which a connection will remain in the connection 
	pool.  The DBMS connection will be closed if a pooled connection 
	is not used in this amount of time.  Set to 0 for no expiration.

 3.8.7. Running the JDBC Server

 The Ingres JDBC Server is started and stopped via the standard installation 
 startup and shutdown commands.  The server may also be stopped using the 
 following command:

	iigcstop <addr>

 The server address may be obtained using the iinamu utility and issuing 
 the following:

	show jdbc

 3.9 Known Problems in Ingres 2.5

 For a complete list of bugs fixed in this release please refer to
 http://support.ca.com

 Contact Computer Associates Technical Support for a workaround/patch for 
 the following known problems.  In each case the bug number precedes the 
 description of the problem.

 3.9.1 Server Bugs 

 100719
 RCP startup gets E_DMA464_LGREAD_BADFORMAT, E_CL0F0A, during the undo 
 phase of offline recovery.
 
 102438
 Using multiple servers with shared cache, if a consistency point is written
 to disk during the execution of ANY query, the session will hang. Under 
 certain conditions the server may hang.
 N.B. Because of this, cache_sharing has been disabled in CBF.

 103269
 In releases before Ingres 2.5 the Ingres system catalog "ii_atttype" 
 contains a column named "system_maintained".  Because of  the addition 
 of "system_maintained" as a key word this column was renamed to 
 "sys_maintained" in Ingres 2.5. The unloaddb command in releases prior
 to 2.5 will create a copy.in script that creates the catalog "ii_atttype" 
 with a column named "system_maintained". When running reload.ing, this script 
 will fail because of the keyword restriction. In order for the reload to 
 work, the copy.in script must be modified so that it creates the "ii_atttype" 
 table with a column named "sys_maintained". If you wish, you can edit the 
 copy.in file and make this change by hand, otherwise there is a script in the 
 Ingres utility directory that will perform the task for you. Before running 
 the script, you should ensure the your current directory is the unload 
 directory (i.e. the directory that contains the copy.in file), you should 
 then execute the following command at the command line:

 Unix:

 $II_SYSTEM/ingres/utility/iiunloadfix

 NT:

 %II_SYSTEM%\ingres\utility\iiunloadfix

 NOTE: You MUST NOT run this script against a copy.in file created under 2.5
 since the file may contain a valid occurence of the keyword 
 "system_maintained" which would be renamed to "sys_maintained" using this 
 script, causing the reload to fail.

 
 3.10 Ingres Tuxedo Support

 The Tuxedo support on this product distribution is certified
 for Tuxedo 6.x. If you require support for a higher release, 
 contact your technical support representative.


 3.11 Dates After the Year 2038

 Ingres 2.5 provides new features for users who wish to use dates beyond 
 the year 2038.

 The valid range for a date field is from 01-Jan-0001 to
 31-Dec-9999, inclusive.

 Ingres handles date input and output according to the
 setting of the environment variable, logical II_DATE_FORMAT.
 The settings of this variable are explained in the SQL
 Reference Guide, which states:

     "Year defaults to the current year. In formats that
     include delimiters (such as forward slashes or dashes),
     you can specify the last two digits of the year; the
     first two digits default to the current century (1900).
     For example, if you enter '03/21/93' using the format
     mm/dd/yyyy, the DBMS assumes that you are referring to
     March 21, 1993."

 This behavior forces the user to specify all 4 digits of the
 date when dealing with dates from different centuries.

 To modify this behavior, Ingres provides a new
 environment variable, II_DATE_CENTURY_BOUNDARY, which can be
 set with an integer value in the range 0 < n <= 100.

 On date input, if the century part of the date is not
 specified (the date_year component is < 100 and there is a
 valid setting of II_DATE_CENTURY_BOUNDARY), then the century
 is determined by the following calculation:


    if (current_year < boundary)
        if (input_year < boundary)
            output_year = input_year + current_century
        else
            output_year = input_year + previous_century
    else
        if (input_year < boundary)
            output_year = input_year + next_century
        else
            output_year = input_year + current_century

 For example, if II_DATE_CENTURY_BOUNDARY is 50, and the current year 
 is 1999, an input date of  '03/17/51' is treated as March 17, 1951; 
 but a date of '03/17/49' is treated as March 17, 2049. 

 If the II_DATE_CENTURY_BOUNDARY environment variable is not set in 
 the users environment or if it is set to 0 or 100, the current 
 century is used.  If the user enters the full four digits for the 
 year into a four-digit year field in the application, the year 
 will be accepted as entered, regardless of the 
 II_DATE_CENTURY_BOUNDARY environment variable setting. 

 In addition, a new value for II_DATE_FORMAT, MULTINATIONAL4,
 is provided.  This date format is identical to the existing
 MULTINATIONAL format, with the exception of the 4 digit
 year.  Input formats are accepted as for the MULTINATIONAL
 format.  This functionality has been implemented in response to 
 SIR/DAR 38800.

 The Ingres _date function returns a value that includes a two-digit 
 year and as such is non-Y2K compliant.   Rather than change this 
 functionality which may be used in client applications, a new 
 function _date4 has been introduced; this new function is identical 
 to _date except that it displays a four-digit year.  For a complete 
 description of the _date function, please see the SQL Reference Guide.


 4.0 APPLICATION MIGRATION AND DEVELOPMENT INFORMATION

 This section provides information that system managers and
 developers should consider to migrate their applications
 smoothly from Release 1.x and 2.0 to Release 2.5. This
 information includes differences between Release 1.x and 2.0
 and Release 2.5 that need to be taken into account when
 upgrading, as well as changes that affect development in
 Release 2.5

 In some cases, the information provided includes new
 functionality. However, in general, you should refer to Chapter
 3 "NEW FEATURES FOR INGRES 2.5" in these Release Notes for a brief 
 overview of new functionality and features.  For details about
 a specific feature, refer to the appropriate Ingres guide.

 Some of the core catalogs have been expanded to accommodate new
 features in Ingres Release 2.5. These core catalogs are 
 iirelation, iiattribute. Due to this modification, some of the
 standard catalogs have been changed also. These are mainly iitables,
 iicolumns, iiindexes, and iiphysical_tables. If any application 
 depends on these catalogs, verify that "select * from 
 <std_catalogs>" has not been used in the application. If it was 
 used, these references must be changed.

 The following reserved words have been added:

 COMMITTED, ISOLATION, LEVEL, OUTER, READ, REPEATABLE, SERIALIZABLE, 
 SYSTEM_MAINTAINED, UNCOMMITTED, WRITE

 These reserved words cannot be used as table or column names
 or as user-defined names. If these words have been used, upgradedb
 fails to upgrade your database. You should ensure that your
 databases do not contain these reserved words as names for the 
 following objects: user table, column, rule, constraint, synonym, 
 procedure, alarm, dbevent, group, profile, schema, user, index, or 
 view.

 In previous releases, Ingres would not allow direct coercion 
 between decimal and string data types. This type of coercion is 
 now allowed. As a result, an attempt to join a string type field 
 (c, char, varchar, or text) to a decimal field--where the string 
 field contains anything but pure numbers--results in the error:

 E_US100F String cannot be converted to a numeric type due to 
 incorrect syntax.

 Previously, Ingres would incorrectly allow coercion to take place
 if the non-numeric string contained only characters that could be 
 converted to the money data type (e.g., the string '$100.23'). 
 This was achieved by implicitly converting both the string field 
 and the decimal field to the money type, and displaying the result 
 as dollars and cents. This implicit conversion to the money type 
 without the developer's explicit wish could result in the incorrect 
 truncation of the decimal data. Users wishing to maintain the 
 previous behavior must, in both cases, explicitly ask the result to 
 be converted to dollars and cents using the money function 
 (for example, select money(col1)).

 4.1 Upgrading 6.4, 1.x and 2.0 to 2.5 Installation Notes

 Regardless of which installation method you use, it is
 important that the 1.x or 2.0 database(s) be structurally sound
 before you begin. The following procedures are recommended:

       1. Run "modify" on all your database tables.

       2. Run "sysmod <database>" on all databases.

       3. Run "verifydb -mreport -sdbname <database> -odbms_catalogs"

       4. Run "infodb <database>" to verify the status is "VALID".

       5. Take an off-line checkpoint of each database (it is also 
	  reccomended that you perform a system backup of the data files if
	  time and space allows).



 4.1.1 New Ingres 2.5 Installations

 If you are reloading data from a 2.0, 1.x or 6.4 databases, and your
 Ingres 2.5 installation is on a different platform,
 unload your original databases using "unloaddb -c <database>".

 Before running "reload.ing" on the Ingres 2.5 installation, edit 
 the "cp_ingre.in" file if unloading from 6.4 (or the "copy.in" 
 file if unloading from 2.0 or 1.x) and change the path references.

    Change:

           \include /<64path>/ingres/files/iiud.scr
           \include /<64path>/ingres/files/iiud64.scr

                 or

           \include /<OpIngpath 1.x>/ingres/files/iiud.scr
           \include /<OpIngpath 1.x>/ingres/files/iiud65.scr

                 or

           \include /<Ingpath 2.0>/ingres/files/iiud.scr
           \include /<Ingpath 2.0>/ingres/files/iiud65.scr


    To:

           \include /<Ingpath 2.5>/ingres/files/iiud.scr
           \include /<Ingpath 2.5>/ingres/files/iiud65.scr

 After the reload is complete, verify that the table "ii_id"
 has only 1 row. Type "isql <database>", and "select * from
 ii_id". If there is more than 1 row returned, then delete the
 row with the lowest "object_id". In order to do this you need to
 have "Security" privilege and connect to the database using the flags 
 "+U" and "-u\$ingres"


 4.1.2 Upgrading 6.4/1.x/2.0 Database to Ingres 2.5

 You can unload your database from Release 6.4/1.x/2.0 
 and reload into Ingres 2.5, or run the upgradedb utility to
 upgrade your database. Make sure that the new 2.5 reserved
 words are not used in your database or application. Note that unloading and
 reloading  your database is not a recommended way of upgrading your
 database and should only be used as a last resort. There are additional
 complications with this upgrade method when upgrading to 2.5 because of
 the addition of "system_maintained" as a key word. The Ingres system catalog
 "ii_atttype" contains a column named "system_maintained" in releases before 
 2.5. In order to avoid problems with the new keyword, this column was
 renamed to "sys_maintained" in 2.5. The unloaddb command in releases prior
 to 2.5 will create a copy.in script that creates the catalog "ii_atttype" 
 with a column named "system_maintained". When running reload.ing, this script 
 will fail because of the keyword restriction. In order for the reload to 
 work, the copy.in script must be modified so that it creates the "ii_atttype" 
 table with a column named "sys_maintained". If you wish, you can edit the 
 copy.in file and make this change by hand, otherwise there is a script in the 
 Ingres utility directory that will perform the task for you. Before running the 
 script, you should ensure the your current directory is the unload directory 
 (i.e. the directory that contains the copy.in file), you should then execute 
 the following command at the command line:

 Unix:

 $II_SYSTEM/ingres/utility/iiunloadfix

 NT:

 %II_SYSTEM%\ingres\utility\iiunloadfix

 If you are upgrading a 1.x database, any tables having long varchar, long
 binary or long spatial data must be unloaded under 1.x and reloaded into
 Ingres 2.5, since the format of blob extension was changed for Ingres 2.x.

 If you are upgrading from Ingres 6.4 or OpenIngres 1.x to Ingres 2.5 the
 imadb database may not exist in your installation.  If this is the case,
 you must execute the following commands to create and populate this
 system database. 

	createdb -u\$ingres imadb
	sql -u\$ingres imadb < $II_SYSTEM/ingres/vdba/mkimau.sql

 The minimum transaction log file size has been increased for the 2.5 release,
 if you have an existing transaction log file that is less than 16 Mb, you
 must destroy the transaction log and re-create it with a size of at least
 16 Mb before upgrading to Ingres 2.5

 4.1.2.1 Additional notes for unloading/reloading databases

 When running reload.ing on a database that does not contain system
 catalogs that were in the unloaded database, an error will occur when
 the reload script attempts to drop any of these catalogs. This error will
 cause the entire reload to terminate, and any work done up to that point
 will be rolled back (Noted as SIR 103642). The problem normally only
 occurs because of variant use of the -f flag when creating the reload
 database with createdb. The problem can easily be fixed in one of 3 ways:

 - run upgradefe on the database to create the missing catalogs (recommended)
 - remove the "drop table" statements from the reload script for the missing
   catalogs
 - remove the \nocontinue statement from the reload script (not recommended)

 4.1.3 OpenROAD 4.0 Image File Formats

 The image (.img) file format for OpenROAD images has changed 
 between OpenROAD 3.5 and OpenROAD 4.0. Image files built using 
 the two releases are not compatible. Attempting to run an image 
 from a different version will produce unpredictable results.

 OpenROAD 3.5 applications should be re-imaged for use under 
 OpenROAD 4.0


 4.2 Ingres 1.x and 2.0 Support

 Ingres 2.5 provides support for 1.x and 2.0 applications at
 the binary level. You can run 1.x and 2.0 applications that access an
 Ingres 2.5 server without rebuilding the application.  However, we 
 recommend that you rebuild all 1.x and 2.0 applications with Ingres 2.5. 

 Note:  6.4 binaries can be run using Ingres Net.  If the 
 binaries need to be run locally, they must be rebuilt.  If you
 do not rebuild the executables, they may not be able to read the 
 error message file.

 4.3 Behavior changes between previous releases and Ingres 2.5
 
 4.3.1 Query compilation and OPF memory

 The Ingres query optimizer has been altered in 2.5 to produce query plans
 more efficiently for certain types of queries. In most cases, less
 query optimizer memory will be used, but there are some cases where more
 optimizer memory is required that previous releases in order to optimize
 a query. If a query runs out of optimizer memory when it did not do
 so before, then one of these cases may have occurred. In order to fix
 the problem, increase the amount of optimizer memory available to the DBMS.

 5.0 DOCUMENTATION ANNOUNCEMENTS

 5.0.1 Changes to Documentation Format
 
 The following documents are included in the \doc directory of
 the CD and can be opened using Adobe's Acrobat Reader.

	*  Getting Started
	*  Command Reference Guide
	*  Database Administrator's Guide
	*  Distributed Transaction Processing User Guide
	*  Embedded SQL Companion Guide for C
	*  Embedded SQL Companion Guide for COBOL
        *  Getting Started
	*  ICE User Guide
	*  OpenAPI User Guide
	*  OpenROAD User Guide
	*  OpenROAD Language Reference Guide
	*  OpenROAD Programming Guide
        *  OpenSQL Reference Guide
	*  QUEL Reference Guide
        *  Querying and Reporting Tools User Guide
	*  Replicator User Guide
	*  SQL Reference Guide
	*  System Administrator's Guide
	*  Using Character-Based Application Development Tools
	*  Using Forms-Based Application Development Tools User Guide

 The Adobe Acrobat Reader for each supported platform is included in 
 the \doc directory of this CD for your convenience.   Please be sure to
 use Acrobat Version 4.05 or later as this has a search capability which
 allows you to mount the index and search across all books using the Query
 option under the Search menu item found on the Edit menu.

