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 Linux Intel
ODBC Driver
Installation Notes
Mounting the CD
Installing from a Remote Host
Machine Requirements
Syscheck
Environment Configuration
Security
Preprocessor and Compiler Support
Interoperability
GUI Database Administration Tools
Replicator Issues
Frequently Asked Questions


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

ingstart -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 Linux Intel

This release of Ingres requires a Linux system based on the glibc 2.1 or 2.2 C-language libraries and the 2.2 or 2.4 Kernel. A list of such systems includes, but is not limited to: RedHat 6.2 & 7.1, Caldera Open Linux, SuSE 6.4 & 7.2, & Debian "potato".

The Netscape iPlanet WEB server is not currently supported on RedHat 7.x and equivalent level Linuxes. We therefore do not support the use of Ingres ICE with the iPlanet WEB server on these platforms.

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.


ODBC Driver

The Ingres/ODBC 3.5 driver is automatically installed with this version of the Ingres DBMS or Ingres/Net.

The Ingres/ODBC 3.5 driver requires a driver manager. We suggest the use of the Merant ODBC Driver Manager.

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 version 4.1 on SuSE Linux. (Note: iPlanet is not supported on RedHat 7.x)

*       Apache HTTP server 1.3


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 visual tools which can be used on UNIX platforms; they are part of the Ingres Visual Management Tools package. Prior to using these visual tools, you must add /usr/local/CAlib to your shared library path.

Additionally, the following must be executed:

For C shell:

% setenv MWHOME $II_SYSTEM/ingres/mwrun/mw

% source $MWHOME/setmwruntime.csh

For Bourne shell:

$ export MWHOME=$II_SYSTEM/ingres/mwrun/mw

$ . $MWHOME/setmwruntime

If multiple installations of Ingres are installed on the same UNIX machine, then all installations should use one common MWHOME. Each installation may use it's own visual tools, but MWHOME should be set to the same directory for all installations. The visual management tools may hang if there are multiple MWHOME settings. In order to keep multiple installations independent, it recommended that MWREGISTRY is set to point to location unique to each installation before running $MWHOME/setmwruntime. This location should be writable by all users intended to use the Visual Management Tools and should be of the form:

For C shell:

% setenv MWREGISTRY <absolute path to directory>/<registry filename>

For Bourne shell:

$ export MWREGISTRY= <absolute path to directory>/<registry filename>


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. To mount the CD-ROM drive from a local host and perform the installation, do one of the following (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)

Login as root user and place the CD-ROM media in the CD-ROM drive and execute the following command:

$ /bin/mount /mnt/cdrom

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


Installing from a Remote Host

The unload command from a remote host for Linux machines is as follows:

% rsh <remotehost> "dd if=<distribname> bs=20b | compress" | \

% uncompress | dd \ bs=20b | tar xvf - install


Machine Requirements

Minimum hardware requirement:

- 486x33 Processor

- 16Mb RAM with 32Mb swap

- 200Mb disk available

On a minimal system Ingres should probably not be run with memory-hungry Linux applications such as the X windowing system.


Syscheck

Ingres provides a system-requirement checking program called syscheck that tries to determine whether the machine on which Ingres is running has sufficient resources. For this release of Ingres for Linux this program always returns a good result, regardless of the system parameters. During ingstart processing the message "Your system has sufficient resources to run Ingres" will always be displayed, regardless of the hardware and software resources available.


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 shown in the following examples:

For C-style shells (such as tcsh):

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

For Bourne-style shells (such as bash):

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


Security

Ingres for Linux provides C2 security and support for systems using traditional UNIX-style /etc/passwd files and "shadow password" /etc/shadow support. After installation and before running Ingres for remote connections be sure to run the mkvalidpw program as root and, if Ingres is running, stop and then restart it. Also, if the shadow password status of the system changes (e.g. via the shadowconfig utility available on some Linux systems), mkvalidpw must be re-run (the Linux version of Ingres checks for the presence of the file /etc/shadow and compiles ingvalidpw.c differently depending on whether this file exists or not). It is easy to check ingvalidpw from the command line to determine if it is working correctly. For example:

$ ingvalidpw

myuserid mypassword

$ echo $status [tcsh shell]

$ echo $? [bash shell]

This will provide the return code from ingvalidpw. The codes are documented in ingvalidpw.c, which is delivered as source:

/*

** error return codes

*/

#define E_OK 0

#define E_NOUSER 1

#define E_NOCRYPT 2

#define E_NOMATCH 3

#define E_NOTROOT 4

#define E_BADLOG 5

#define E_BADINPUT 6

#define E_EXPIRED 7


Preprocessor and Compiler Support

The following compilers are supported for this release:

GCC-2.95.3 & 2.96

EGCS-2.91.66

GNAT ADA (to be confirmed)

A default C compiler (egcs-2.91.66) is included with RedHat 6.2 and other equivalent Linux distributions and is supported. However, we STRONGLY recommend upgrading to GCC-2.95.3. EGCS-2.91.66 is rapidly becoming obsolete and applications built with this release may well run in to difficulties when migrating to a more up to date release of Linux in the future.

The version of the compiler you are using can be obtained by running "gcc –version" at the command prompt.


Interoperability

This release supports the following communication packages:

Network Protocol

Version

Ingres NET Protocol ID

Native TCP/IP

All versions

TCP_IP


GUI Database Administration Tools

QUEL Support

Views defined in QUEL will now be displayed in Visual DBA.

Copying a Table Using Drag-and-Drop Method

In Visual DBA, copying a table using the drag-and-drop technique does a "COPY INTO" of the table rows into a local temporary file, followed by a "COPY FROM" into the new table, and then removes the temporary file.


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.


Frequently Asked Questions

Question: Linux provides multiple sh-type shells. Which should I use with Ingres?

Answer: On Linux systems the file /bin/sh is a link to a shell such as bash, ash, ksh, or zsh. This is the shell that is invoked when a Bourne shell script is run. Ingres was developed and tested on a Linux system using GNU bash, version 1.14.7(1). Limited, successful testing has also been done with the ksh and zsh shells. Testing has turned up problems running Ingres with version 2.0.3 of the bash shell (this will manifest itself, for example, as a permissions problem running ckpdb). The problem with bash 2.x is not unique to Ingres; the release NOTES file supplied with the source code to bash release 2.0.3 explains this issue and provides an "*unofficial*" patch to bash. This patch will, indeed, correct the problems running Ingres.

Question: I am having trouble creating databases with the createdb program; the program is issuing strange error messages. Why?

Answer: Make sure that you are not running the "createdb" program that is provided by PostgreSQL. Make sure that the PATH setting for the shell from which you install and start Ingres includes Ingres executable directories before other executable directories.

Question: Where are the function keys PFK1 through PFK4 on my PC keyboard?

Answer: Although key bindings and terminal settings vary with equipment and with character sets, the following should work if you are running Ingres on a Linux console in vt100 mode. Set TERM to vt100 and set TERM_INGRES to vt100f. The keys PFK1 through PFK4 should be bound to the top row of the numeric key pad.

Question: How can I map the function keys PFK1 through PFK4 for an xterm?

Answer: Running Ingres in an xterm, set TERM to xterm and set TERM_INGRES to vt100fx. Then use xmodmap to determine and set your function keys. "xmodmap -pke" should show current settings. (Use "man xmodmap" to determine the syntax for your version of xmodmap.) You will probably find that there are no bindings for KP_F1 through KP_F4; you will need to bind them.

For example: to bind keys Shift-F1 through Shift-F4 create a file "mykeys" that contains:

keycode 67 = F1 KP_F1

keycode 68 = F2 KP_F2

keycode 69 = F3 KP_F3

keycode 70 = F4 KP_F4

Then issue the command:

xmodmap mykeys

Shift and F1 through F4 will now be defined as PFK1 through PFK4.

Question: What compiler and compiler switches were used to create the Linux version of Ingres? Are there additional switches needed for compiling C-language application programs?

Answer: Ingres was compiled using the GCC compiler version 2.95.3 with the following switches:

-O -fPIC -fsigned-char -fno-strength-reduce -fwritable-strings –D_REENTRANT

–D_GNU_SOURCE –DLINUX -DXLIB_ILLEGAL_ACCESS

Question: Do I need to modify system kernel parameters before running Ingres?

Answer: No. Standard kernels and kernels compiled with default values (without modifying the Linux source headers) should provide adequate resources. For additional information, please refer to the Readme.txt.

However, it may be necessary to increase the maximum allowable size for shared memory segments. This can be done by running "/sbin/sysctl –w kernel.shmmax=<new value>" as root change is immediate and does NOT require a reboot.

If the DBMS server is failing to start and E_DM938D_SHARED_MEM_ALLOCATE is being written to $II_SYSTEM/ingres/files/errlog.log, this will probably resolve it. Increasing SHMMAX to double the current value would be a good place to start. See the "sysctl" man page for details.

Question: Do I need to change the permissions for /dev/kmem in order to run Ingres on Linux?

Answer: No. While this step is required on some Unix-type systems, this is not required for this version of Ingres for Linux.

Question: When I try and compile the Fortran code generated by the ESQLF pre-compiler using g77, it fails with 'Unrecognized statement name.....'. Why?

Answer: The g77 compiler (which is bundled with many if not all Linux distributions) does not support some of the statements that the ESQLF pre-compiler generates. Further information is available at: http://www.gnu.org/

Question: When using alternative Ingres character sets, is there anything else I need to do, apart from setting II_CHARSETXX, to get the characters to display correctly?

Answer: As long as the terminal you are working from is using the same character set as Ingres there shouldn't be a problem. If you are having trouble with characters not being displayed properly, try starting the terminal with specific character set.

e.g. If you are using shiftjis (Japanese DoubleByte character set) as the II_CHARSETXX setting in a 'kterm', start the kterm with the following command:

kterm -km sjis

This will ensure the terminal starts up with the correct character set. It is also worth mentioning that you may encounter problems using double byte character sets and kterm. If you do, try using the rxvt terminal instead.

e.g.

rxvt -km sjis

for shiftjis.


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