Advantage Ingres
Version 2.6


Welcome

General Considerations
Operating System (OS) Version
Upgrading Your Installation
Shutting Down an Ingres Installation that Includes an Ingres/ICE Server
Execution of Remote Commands
Exclusive Database Access to imadb
OpenROAD Support
Support for Unicode
New Character Sets for Euro Currency Symbol Support

Known Issues
DBMS Server and Tools Bugs
DBA Tools Bugs
Application Development Tools Bugs

Behavior changes between previous releases and Ingres 2.6
Query compilation and OPF memory
Transaction Log File Size
Row order changes

Contacting Technical Support

Acknowledgements

Appendix: Supplemental Information for Tru64 UNIX

Installation Notes
Mounting the CD
Installing from a Remote Host
Disk Space Requirements
Semaphores and Shared Memory
Syscheck -v
Environment Configuration
Preprocessor and Compiler Support
Interoperability
Replicator Issues


Welcome

Before you start using the software, you should review this README file for important information to help you with your installation and use of the product. The information provided is for use with the Ingres 2.6 Getting Started guide and the Ingres 2.6 Migration Guide. The appendix provides information that is specific to your operating system.

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


General Considerations


Operating System (OS) Version

It is very important in your planning that you review the list of operating system versions supported for this version. Please make sure that your operating system is supported by this version. As the list of supported operating systems changes frequently, you may wish to review the latest information available at esupport.ca.com. Your implementation of this version may require you to upgrade your OS version. In this situation, the new OS version may not be supported by your current Ingres installation, and in this case the only recommended approach is to use the unload/reload procedure rather than any upgradedb procedures.


Upgrading Your Installation

All of the utilities that were available in OpenIngres 2.0 and Ingres II versions 2.0 and 2.5 are present in Ingres 2.6. If you are upgrading to Ingres 2.6, please review the Ingres Migration Guide before performing the upgrade.

When upgrading from a release older than 2.0, the database "imadb" will not be created. After the upgrade has been completed you should create this database by hand by executing the following commands as the user ingres:

Windows

 
rmcmdstp
 createdb -fnofeclients -u$ingres imadb
 sql -u$ingres imadb < %II_SYSTEM%\ingres\vdba\makiman.sql >
%II_SYSTEM%\ingres\vdba\makiman.out
 rmcmdgen
 ingst art -rmcmd

UNIX

 
rmcmdstp
 createdb -fnofeclients  – u\$ingres imadb
 sql  – u\$ingres imadb < $II_SYSTEM%/ingres/vdba/makimau.sql >
$ II_SYSTEM/ingres/vdba/makimau.out
 rmcmdgen
 ingstart -rmcmd

Note: All checkpoints taken with previous Ingres versions are not compatible with Ingres 2.6/0201. Checkpoints of the iidbdb are strongly recommended at frequent intervals. Generally, these checkpoints require little processor overhead. For table-level rollforwarddb, the -noblobs option has been removed as it makes the table physically inconsistent and unusable. Rollforwarddb no longer supports the
-noblobs option.


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. The Ingres/ICE server detects these connections as active sessions. To disconnect these sessions the HTTP server extension should be unloaded or if this is not possible, the HTTP server should be shut down. Then, the Ingres installation may be shut down.

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 Ingres/ICE server.


Execution of Remote Commands

Some of the options and/or dialogs in Ingres Visual DBA result in the launch of an Operating System level command on the server. These "remote commands" are performed by a remote command process, "rmcmd" on behalf of Visual DBA.

The rmcmd utility is started and stopped together with Ingres, according to the settings for this component defined in the Ingres Configuration Manager, or in CBF, for the "Remote Command" component.

By default, only the 'ingres' user can use the remote commands from Visual DBA. It is possible for other users to execute commands, by granting them that privilege in the Create/Alter User dialog in Visual/DBA.

The command is launched by the 'ingres' user with the -uusername option (described in the System Administrator's Guide), where the username specified is the username used to connect to Visual DBA. This restriction means that Ingres commands that do not support the -u option are not supported.

If you choose not to grant the Visual/DBA privilege through Visual/DBA, you can do so by executing the following SQL statements while connected to the imadb database as the "ingres" user:

grant select,insert,update,delete on remotecmdinview to <user>

grant select,insert,update,delete on remotecmdoutview to <user>

grant select,insert,update,delete on remotecmdview to <user>

grant execute on procedure launchremotecmd to <user>

grant execute on procedure sendrmcmdinput to <user>

grant register,raise on dbevent rmcmdcmdend to <user>

grant register,raise on dbevent rmcmdnewcmd to <user>

grant register,raise on dbevent rmcmdnewinputline to <user>

grant register,raise on dbevent rmcmdnewoutputline to <user>

grant register,raise on dbevent rmcmdstp to <user>

Note that NO grants should be made to the underlying tables directly.


Exclusive Database Access to imadb

Because the remote command server maintains a connection to imadb, you need to stop the remote command server before performing any operations that require exclusive database access to imadb. Use the rmcmdstp command to stop the remote command server and ingstart –rmcmd to restart it.


OpenROAD Support

This version of Ingres does not support OpenROAD running in the local installation. OpenROAD applications must be run through Ingres/Net.


Support for Unicode

This release contains the first phase of Ingres support for Unicode; further Unicode support will be added to future releases. In this release the DBMS supports three new data-types, nchar, nvarchar, and long nvarchar. These data-types store character data using two bytes for each character. Collation of these data-types uses the standard collation algorithm as defined by the Unicode organization, and the data-types may be used in indexes and database statistics. The native two-byte (UCS2) format is supported and maintained through the entire Ingres process, from the front-end application, through the DBMS, to the data representation on disk. The embedded SQL pre-processor for C and C++ supports declaration of wchar_t variables, which are assumed to contain multi-byte Unicode character strings, VDBA also supports these new data-types. Support for the ODBC and JDBC drivers is present through their normal Unicode interfaces. These new data-types are not supported in any of the Ingres character based tools, or any of the terminal monitors. This release does not support coercion between Unicode data-types and non-Unicode data-types such as char and varchar.


New Character Sets for Euro Currency Symbol Support

Two new character sets which contain the Euro currency sign (€, Unicode U+20AC) have been added: IS885915 and WIN1252.

To set the Ingres Money Format to the Euro Currency Symbol you must issue the following command:

 
ingsetenv II_MONEY_FORMAT L:€

alternatively, this value may be set in the Ingres Visual Manager (IVM)

Windows

WIN1252 corresponds to Windows code page 1252 Latin 1. This is the common character set of most American and Western European Windows PCs and also includes the Euro sign. Users wishing to use the Euro Symbol in a Windows GUI environment will need to select the WIN1252 character set at installation time. To set this code page in a Windows Command Prompt environment, you must issue the following Windows command

 
chcp 1252

The default font in a Windows Command Prompt does not provide support for the Euro Currency Symbol, to counter this you must set the font to Lucida Console. The Lucida Console font has moved the line drawing characters, used in Ingres forms, into an area not accessible to Ingres binaries, so we have provided rudimentary line drawing in the IBMPCD terminal entry. To set this terminal type you must issue the following command

 
ingsetenv TERM_INGRES IBMPCD

or set TERM_INGRES through IVM or specify this terminal type at install time.

UNIX

IS885915 corresponds to the ISO 8859-15 Latin 9 character set which is almost identical to the ISO 8859-1 Latin 1 set, except for eight characters, chief among them is the Euro currency sign (€, Unicode U+20AC).

If you have an existing installation and would like to change the installation's character set, please be aware that this is not normally supported since characters already in your databases could be displayed incorrectly by the new character set. However, since the ISO 8859-15 only has eight characters different from ISO 8859-1, if you can verify that none of the eight characters are already present in your databases, then you could safely change the set (by changing II_CHARSETxx). The following table details these differences, with the corresponding Unicode character names:

Hex

 

ISO 8859-1

 

ISO 8859-15

A4

€

CURRENCY SYMBOL

€

EURO SIGN

A6

¦

BROKEN BAR

Š

LATIN CAPITAL LETTER S WITH CARON

A8

¨

DIAERESIS

Š

LATIN SMALL LETTER S WITH CARON

B4

΄

ACUTE ACCENT

Ž

LATIN CAPITAL LETTER Z WITH CARON

B8

Έ

CEDILLA

Ž

LATIN SMALL LETTER Z WITH CARON

BC

Ό

VULGAR FRACTION ONE QUARTER

Œ

LATIN CAPITAL LIGATURE OE

BD

½

VULGAR FRACTION ONE HALF

Œ

LATIN SMALL LIGATURE OE

BE

Ύ

VULGAR FRACTION THREE QUARTERS

Ÿ

LATIN CAPITAL LETTER Y WITH DIAERESIS



Known Issues

Contact Computer Associates Technical Support for a workaround/patch for the following known problems.


DBMS Server and Tools Bugs

Bug Number

Description

106470

gather_write is not supported on Solaris and HP.

106091

The XML import and export utilities do not support float and decimal data types.


DBA Tools Bugs

Bug Number

Description

105480

The option to only refresh performance data when Visual DBA is uppermost is ignored and the refresh happens regardless of whether Visual DBA is uppermost or not.

105483

Table level views are not supported in IJA on UNIX.

105485

Recovering a database level transaction through IJA is not supported on UNIX.

106479

When the maximum number of sessions defined in the VDBA preferences has been reached, VDBA provides a "Connection failure." error, the "Errors" button specifies why it's failing. Clicking the OK button causes VDBA to crash.

106461

In VDBA, when running an SQL query from the SQL Test window VDBA will hang or crash if the results are displayed as XML.

106480

In VCBF editing the protocol status for a bridge server will cause VCBF to crash on UNIX. Use CBF for this task instead.

105486

On UNIX the Ingres Import Assistant does not provide a file format confirmation page as it does on Windows.


Application Development Tools Bugs

Bug Number

Description

105475

OpenROAD is not supported in a local Ingres 2.6 installation.


Behavior changes between previous releases and Ingres 2.6


Query compilation and OPF memory

The Ingres query optimizer has been altered 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 than 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.


Transaction Log File Size

The minimum transaction log file size was increased for Ingres 2.5 and beyond, 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.6.


Row order changes

Because of enhancements to the Ingres query optimizer the default order in which query results are returned where an 'order by' clause is not explicitly specified may differ from previous releases. If results are required in a particular order, then the 'order by' clause should be used to specify this.


Contacting Technical Support

For further technical assistance with this product, please contact Technical Support at esupport.ca.com for a complete list of locations and phone numbers. Technical support is available 24 hours a day, 7 days a week.


Acknowledgements

Copyright © 2001 Computer Associates International, Inc.

All trademarks, trade names, service marks, and logos referenced herein belong to their respective companies.

This product includes software developed by the Apache Software Foundation http://www.apache.org; (c) 1999 The Apache Software Foundation. All rights reserved. THE APACHE SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE APACHE SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Appendix: Supplemental Information for Tru64 UNIX

This release of Ingres is supported on Compaq Tru64 machines running the Compaq Tru64 UNIX operating system versions 5.0a and 5.1.

For an up-to-date list of supported operating environments, please visit the Ingres product page from the CA Support web site at esupport.ca.com.

OS threads

By default, this version of Ingres 2.6 utilizes operating system threads. If OS threads are used, please insure that Tru64 has the following patches:

Tru64 Rev

CSP #

5.0A

C.162

5.1

C.679

5.1A

C.15

Please contact Compaq support to obtain these patches, or if you are unsure of your patch level.

Third Party Web Servers

This version of Ingres has been designed to work with the following third party web servers:

*       iPlanet™ Web Server Enterprise Edition versions 4.1

*       Apache HTTP server 1.3

Cluster Node Failover

Ingres supports the Compaq UNIX TruCluster Cluster Application Availability (CAA) for high availability via cluster node failover. As such, the Ingres installation(s) can be attached to the virtual hostname and failover as a service across nodes of the cluster.

Ingres must be installed with the OS shell environment variable II_HOSTNAME set to the name of the virtual hostname in order to exploit this feature. See the Tru64 UNIX TruCluster documentation for the details of CAA and support.ca.com/techbases/ingres/4295.html for example scripts and instructions on how to set up Ingres as a service.

Memory Requirements for rollforwarddb

With the implementation of variable page sizes in Ingres, the default memory requirement for rollforwarddb has increased considerably. This may require an increase in the size of UNIX swap space depending on your current configuration. As an alternative, command line overrides may be provided to reduce the amount of memory needed by rollforwarddb. Multiple overrides may be provided for pages not in use.

By not allocating DMF cache buffers for 32K and 64K page sizes, the following example reduces the memory utilization of rollforwarddb for an installation using page sizes of 2K through 16K only:

 
rollforwarddb <dbname> -dmf_cache_size_32K=0 -dmf_cache_size_64K=0

Ingres Visual Management Tools

The Ingres Visual Management Tools package is not provided on this platform.

 


Installation Notes

Use the following information in conjunction with the Getting Started guide. Information presented here supersedes information in the Getting Started guide.

This release of Ingres contains does not support the Ingres Visual Management Tools package.

This version of Ingres 2.6 supports operating system threads. Important Note: As noted above, when operating system threads, Tru64 operating system may need patches from Compaq in order to efficiently support large numbers of semaphores, and/or to allow the allocation of shared process semaphores in shared memory segments over eight megabytes in size.


Mounting the CD

Please note that the instructions provided in this section for mounting the CD-ROM drive on your machine should be taken as an example only. If your machine does not use /etc/fstab to store information on mountable devices, please check wit your system administrator for the correct procedure for mounting a CD-ROM drive.

To mount the CD-ROM drive from a local host and perform the installation, do one of the following command (as root):

 
$ /usr/sbin/mount  – rt cdfs  – o noversion /dev/rz4c /cdrom

If you do not know the CD-ROM device name, login as root, and issue the following command:

 
$ file /dev/rrz*c | grep RRD

The results should look something like the following:

 
/dev/rrz4c: character special (8/4096) SCSI #0 RRD44 disk #32

(Note that if you have automount enabled on your system for the CD-ROM drive, then neither of these will be necessary, and an attempt to execute the mount command will produce an error indicating that the device is busy)

EITHER:

1. Login as root and put the following entry in /etc/vfstab:

/dev/dsk/c0t6d0s2 /cdrom hsfs ro,noauto 0 0

2. Place the CD-ROM media in the CD-ROM drive and execute the following command:

$ /usr/sbin/mount /cdrom

3. Continue as with any other installation. See the Getting Started for more information.

OR:

1. Log in as root and execute the following command

$ /usr/sbin/mount -F hsfs -o ro /dev/dsk/c0t6d0s2 /cdrom

Continue as with any other installation. See the Getting Started for more information.


Installing from a Remote Host

To install Ingres from a remote tape drive, use the following command on your Tru64 UNIX installation machine:

 
$ rsh <rmthost> "dd if=<distribname> bs=20b | compress" | uncompress | dd bs=20b | tar xvf - install

When using the ingbuild installation utility and installing from a remote host, the format for the Distribution: field is as follows:

Distribution: <rmthost>:<distribname>


Disk Space Requirements

These are the disk space requirements for Solaris with the following system configurations:

System Configuration

Space Required

DBMS Server with Ingres Net

110 MB

DBMS Server with Ingres Tools

240 MB


Semaphores and Shared Memory

Ingres requires a certain amount of semaphore and shared memory resources. The following is an list of minimum values for parameters controlling the IPC (Inter Process Communication) resources.

 

sem_mni

1000

Maximum number of System V semaphores that can be used on the system at one time.

sem_msl

50

Maximum number of System V semaphores that can be used by a single process at one time.

sem_opm

10

Maximum number of operations that can be outstanding on a single System V semaphore at one time.

sem_ume

10

Maximum number of undo operations that can be outstanding on a single System V semaphore at one time.

sem_vmx

32767

Maximum integer value that any System V semaphore can contain.

sem_aem

16384

maximum adjustment that can be made to any System V semaphore when a process exits.

shm_max

30000000

Maximum size, in bytes, of a single System V shared memory region.

shm_min

1

Minimum size, in bytes, of a single System V shared memory region.

shm_mni

100

Maximum number of shared memory regions that can be used on the system at one time.

shm_seg

10

Maximum number of System V shared memory regions that can be attached to a single process at one time.

Notes:

1.       You must rebuild the Tru64 UNIX kernel and reboot for these parameters to take affect. Please consult your Tru64 UNIX documentation and/or system administrator for further details on the preferred way to modify system kernel parameters.

2.       T he minimum value required sem_mni is the sum of the number of semaphores required by non-Ingres processes, plus 5 for each Ingres installation running, plus 30 for each Ingres DBMS server running. Thus, a system running two Ingres installations, with three DBMS servers each, requires that semmni be set to at least 190, and may require a higher value to accommodate other software. We recommend that this value be configured generously.

3.       The minimum value required for shm_max is at least as large as the largest shared memory segment that Ingres will allocate on your system. The recommended value of 30000000 is generally sufficient. Small systems with only a few users may be able to run with shm_max set to 5000000 or less. Conversely, a very large shared DMF cache may require that shmmax be set to 150000000 or more. The syscheck utility can be used to determine the size of the shared memory segments Ingres will allocate and whether the current value of shmmax is adequate.

 


Syscheck -v

You may see a discrepancy between what the C-shell command "limit" returns and what syscheck –v returns for the per-process limit on open file descriptors. This is because Ingres extends its default per-process limit for open file descriptors. The output from syscheck -v is correct. Here is a description of how to interpret the output:

System Hard Limit

This is the absolute maximum number of open file descriptors that the operating system will permit. On Tru64 UNIX, this value is 4096.

System Soft Limit

This is the maximum number of open file descriptors that Ingres could conceivably get, depending on how many open files other processes have at that point in time. This value is also 4096 because Ingres uses SETRLIMIT() to extend the default value. Ingres requires semaphores and shared memory to be loaded.


Environment Configuration

This release of Ingres supports the use of shared libraries. The LD_LIBRARY_PATH environment variable must be set to add the Ingres shared libraries to your shared library path.

Set this variable as follows:

For C shell:

$ setenv LD_LIBRARY_PATH "/lib:$II_SYSTEM/ingres/lib:$LD_LIBRARY_PATH"

For Bourne shell:

$ LD_LIBRARY_PATH=/lib:$II_SYSTEM/ingres/lib:$LD_LIBRARY_PATH

$ export LD_LIBRARY_PATH


Preprocessor and Compiler Support

The following compilers are supported for this release:

Compaq C++ for Tru64 UNIX 6.3A

Compaq Fortran for Tru64 UNIX Systems 5.4A

Compaq COBOL for Tru64 UNIX 2.7

Compaq C for Tru64 UNIX 6.4

It is also possible to use Micro Focus COBOL with Ingres 2.6 (axp.osf/00). However, a couple of steps must be taken first (since Compaq COBOL is the default, as installed) as described below:

1.   In the $II_SYSTEM/ingres/files directory, make backup copies of the following files, for example by copying:

eqsqlca.cob to eqsqlca.save

eqsqlcd.cob to eqsqlcd.save

eqsqlda.cob to eqsqlda.save

eqdef.cob to eqdef.save

2.   Copy the following files:

eqmsqlca.cbl to eqsqlca.cob

eqmsqlcd.cbl to eqsqlcd.cob

eqmsqlda.cbl to eqsqlda.cob

eqmdef.cbl to eqdef.cob

You should then be able to follow the Micro Focus procedures detailed in the Embedded SQL Companion Guide for COBOL.


Interoperability

This release supports the following communication packages:

Network Protocol

Version

Ingres/Net Protocol ID

Compaq TCP/IP

All versions

TCP_IP

DECnet

4.01

DECnet


Replicator Issues

Replicator Manager CreateKeys

If the BothQueue&ShadowTable option of CreateKeys (under Configuration, Table Registration) is used, the rows placed in the input queue will not be transferred immediately to the distribution queue. To affect the transfer, ensure that all users disconnect from the database.

User Defined Procedures

In previous versions of Replicator, the ability to customize Change Recording procedures existed. The rationale for this customization capability was the non-deterministic order of firing of multiple rules on a given table. Since Change Recording is now implemented in the DBMS Server, this customization capability is no longer necessary. If you have custom "rules" (actually, procedure template files) from a previous release, you can implement them in Ingres 2.6 as regular database procedures triggered by rules.


Copyright © 2001 Computer Associates International, Inc.
All trademarks, trade names, service marks, and logos referenced herein belong to their respective companies.