Appendix - PLATFORM-DEPENDENT INFORMATION

                    Supplemental Information for SCO OpenServer
                           II 2.0/0001 (sos_us5/00)



Introduction

This Appendix contains information about Ingres 2.0 that is specific
to SCO OpenServer.

The section titled Read This Before You Install must be read before
installing Ingres 2.0.


Read This Before You Install

Certified Operating Environment

This release of Ingres is supported on Intel 386/486 and Pentium  machines 
running the SCO OpenServer release 5.0.0, 5.0.1, 5.0.2, 5.03, 5.0.4 operating 
systems. 

Support Qualifications

Upgrading Star

To successfully upgrade your Star databases, you must change the number of 
Star servers started to zero before beginning the upgrade procedure. To do this,
go into Configure-By-Forms (CBF) and highlight the Star server; choose the 
EditCount menu item, and set the value to zero.  After the upgrade has been 
completed, go back into CBF and return the number of Star servers to the 
previous value.

Installation Notes

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

Unload Command

Local Command

The unload command for SCO OpenServer Intel-based machines is as follows, 
when executed locally:

	% tar xvf <distribname> install

Unloading from CD-ROM Media

When unloading from CD-ROM media, use the procedure that follows.

The CD-ROM disk contains one file: ingres.tar. This file is the Ingres tar file 
needed for your installation.  Your system may also show a symbolic link to the 
directory, called cdrom0, which you can use in place of the long directory.

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/vfstab to store information on mountable devices, 
please check with 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:

1.	Login as root and create a directory for /cdrom:

	$ cd /
	$ mkdir cdrom

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

	$ /etc/mount -r -f HS /dev/cd0 /cdrom

3.	Login as ingres and change to the previously created ingres system 
	directory:

	For C shell:

	$ setenv II_SYSTEM <directory_name>
	$ cd $II_SYSTEM/ingres

	For Bourne shell:

	$ II_SYSTEM=<directory_name>
	$ export II_SYSTEM
	$ cd $II_SYSTEM/ingres

4.	Set umask to 0, and load the install program from the CD-ROM disk:

	$ umask 0
	$ tar xvf /cdrom/ingres.tar install

5.	Continue as with any other installation.

Installing From a Remote Host

Installing the distribution directly from a tape device on a remote host is not 
possible in this release.

Disk Space Requirements

These are the disk space requirements for SCO OpenServer with the following 
system configurations using defaults (includes iidbdb, imadb and 16K * 2 dual 
transaction log):

	System Configuration 		Space Required

	DBMS server with Ingres Net 	112 MB
	Full Installation 		142 MB


Upgrade Notes

This section gives detailed, step-by-step procedures for upgrading an existing 
CA-Ingres or CA-OpenIngres installation to an Ingres 2.0 installation.  It also 
provides an example of an upgrade from both an existing CA-Ingres 6.4 
installation as well as from an existing CA-OpenIngres installation. This should
be used in conjunction with the Ingres for UNIX 2.0 Getting Started guide and 
"Appendix D" of the System Reference Guide.

It is recommended that you backup your existing installation before upgrading.  
To do this you should perform a checkpoint of all the databases that are 
currently part of your existing installation. This includes the master database,
iidbdb.  You should turn journaling off for the master database as well as for 
all of your user databases.  These steps are described below.

1.	To perform a checkpoint, enter the following:

	For CA-Ingres 6.4 users:

	ckpdb -j iidbdb -u'$ingres'
	
	For CA-OpenIngres users:

	ckpdb -j iidbdb

2.	Execute the following command for each user database, where dbname is 
	the name of the user database to be checkpointed:

	ckpdb -j dbname

3.	You should now shut down your existing installation.

	For CA-Ingres 6.4 users:

	iishutdown

	For CA-OpenIngres users:

	ingstop

4.	Make sure that you have done a complete backup of your existing 
	installation.  You should then remove all files from both the 
	$II_SYSTEM/ingres/bin and $II_SYSTEM/ingres/utility directories.

You should now follow the instructions in Chapter 2, "Installing Ingres 
Step-By-Step" of the Ingres 2.0 Getting Started for UNIX guide.  If you are 
attempting to upgrade a Star database, please contact your Technical Support 
representative.

Note:  If you choose the Express Install procedure, you must run upgradedb 
after the installation is complete.  Express Install upgrades the existing 
installation, but does not upgrade your master database (iidbdb).

When running the DBMS server Setup program, you can upgrade all CA-Ingres 
and CA-OpenIngres databases for use with Ingres 2.0.  This also upgrades your 
tools system catalogs so that your installation can use the Ingres tools for 
release 2.0.

However, it is recommended that you postpone this task and upgrade user 
databases later with the upgradedb command (which also executes the 
upgradefe command that upgrades the tools catalogs).  Refer to your System 
Reference Guide for details.

Once the upgrade has been completed and all of your user databases have been 
upgraded, you should enable journaling by issuing the following command for 
all of your user databases:

	ckpdb +j dbname


Upgrade Examples

Below are examples of actual upgrades for CA-Ingres 6.4 and CA-OpenIngres 
(1.1 and 1.2).  These examples are provided to give you an idea of what the 
actual upgrade procedure will look like.  When performing the upgrade, there 
may be some areas that do not match exactly to what appears below. 


Upgrading a CA-OpenIngres Installation to an Ingres2.0 Installation

Setting up Application-By-Forms

The following directory will be used to store Application-By-Forms, Vision, and 
VisionPro applications:

/oping/install/II/ingres/abf

This default location can be changed later by redefining the Ingres variable 
ING_ABFDIR, using the command:

ingsetenv ING_ABFDIR

This variable can also be defined in the UNIX environment.

Press RETURN to continue:

ING_ABFDIR configured as /oping/install/II/ingres/abf

Note:  A version of abflnk.opt already exists, but needs to be upgraded. A copy 
of the existing file will be saved in abflnk.opt.old and a new version will be 
created.  Any customizations to the original version will need to be manually 
added to the new file.

Press RETURN to continue:

Note:  A version of abfdyn.opt already exists, but needs to be upgraded. A copy 
of the existing file will be saved in abfdyn.opt.old and a new version will be 
created.  Any customizations to the original version will need to be manually 
added to the new file.

Press RETURN to continue.

Application-By-Forms setup complete.

Press RETURN to continue:  Setting up the Ingres library.

Setting up the Ingres Intelligent DBMS...

This procedure will set up the following release of the Ingres Intelligent DBMS:

II 2.0/0001 (sos.us5/00)

to run on local host:

server87

This installation will be owned by:

ingres

Do you want to continue this setup procedure?  (y/n) [y].  Press RETURN.

Generating default configuration...

II_INSTALLATION configured as II.

This program prompts you for the default physical storage locations you want to 
use (if not already configured) for the database, backup, temporary, and 
transaction log files maintained by the Ingres Intelligent DBMS.  Before you 
respond to these prompts, you have the option of reading detailed instructions 
on configuring the default Ingres storage locations.

Do you want instructions on configuring your storage locations? (y/n) [y]. 
Press RETURN.

Ingres Location Variables

The Ingres storage locations and the corresponding Ingres variables are listed 
below:

Ingres Variable 	Description

II_DATABASE 		Default location for database files
II_CHECKPOINT 		Default location for full backup file
II_JOURNAL 		Default location for incremental backup files
II_DUMP 		Default location used to store transactions during 
			online backups
II_WORK 		Default location for temporary files
II_LOG_FILE 		Location for the Ingres transaction log file
II_DUAL_LOG 		Location for the backup Ingres transaction log

Press RETURN to continue:

Important! You cannot change the values you assign to the default Ingres storage
location variables once this setup procedure has been completed.  However, you 
can create additional storage locations and assign individual databases to them.
For information on creating additional storage locations, refer to the Database
Administrator's Guide.

Press RETURN to continue:

Default Database Location

The Ingres variable II_DATABASE stores the default location used to store 
Ingres database files.

Once a value has been assigned to II_DATABASE, you can change it only by 
removing and re-installing OpenIngres.  Refer to the Database Administrator's 
Guide for information on moving the default database file location.

Press RETURN to continue:

II_DATABASE configured as /oping/install/II

Default Checkpoint, Journal, and Dump Locations

The Ingres variables II_CHECKPOINT, II_JOURNAL, and II_DUMP are used to 
store the default locations used for full and incremental on-line backup files.
It is essential that II_CHECKPOINT, II_JOURNAL, and II_DUMP not be assigned to 
the same physical device as II_DATABASE.  If this restriction is ignored, you 
will be unable to recover lost data in the event that the II_DATABASE location
fails.

Once assigned, the values of II_CHECKPOINT, II_JOURNAL, and II_DUMP can only 
be changed by removing and re-installing OpenIngres.  Refer to the Database 
Administrator's Guide for information on moving the default backup locations.

Refer to the "Backup and Recovery" chapter in the Database Administrator's 
Guide for instructions on backup and recovery of Ingres databases.

Press RETURN to continue: 

II_CHECKPOINT configured as /oping/install/II
II_JOURNAL configured as /oping/install/II
II_DUMP configured as /oping/install/II

Default Work Location

The Ingres variable II_WORK stores the default location used for all temporary 
files created during external sorts and other DBMS server operations that
require large amounts of temporary file space.  Ingres lets you designate 
a separate storage device as the default location for these files.

When choosing the II_WORK location, be aware that temporary files tend to 
increase fragmentation on storage devices, which can lead to decreased 
performance.  For this reason, you should assign II_WORK to a physical device 
which does not contain database, checkpoint, journal, or dump files, if 
possible.  Your choice of the default work location does not affect your 
ability to recover lost data in the event of a storage device failure, although
it may affect performance.

Once assigned, the value of II_WORK can only be changed by removing and 
re-installing OpenIngres.  Refer to the Database Administrator's Guide for 
instructions on moving the default work location in this manner.

Press RETURN to continue:

II_WORK configured as /oping/install/II

Ingres Transaction Log Locations

The Ingres Intelligent DBMS uses a transaction log file to store 
uncommitted transactions and buffer committed transactions before they 
are written to the database file location(s).

In order to guarantee that no committed transactions can be lost in the event
of a single storage device failure, a backup of the Ingres transaction log 
must be maintained on a storage device which is independent of the primary 
transaction log file device.

By default, Ingres will maintain a backup of the primary transaction log file 
on a storage location which you select.

You have the option of disabling the backup transaction log file, although you 
should only do so if the location you intend to use for your primary 
transaction log file has built-in fault tolerance 
(for example, a fault-tolerant disk array or "mirrored" disk sub-system).

Press RETURN to continue:

Do you want to disable the backup transaction log? (y/n) [n]. Press RETURN.

You must verify that the location(s) you intend to select for the Ingres 
transaction log(s) have sufficient disk space.  The default transaction log 
size is:

16777216 bytes

This setup procedure will create the Ingres transaction log(s) as ordinary 
(operating system buffered) files, rather than unbuffered (raw) device files. 
For information on using the mkrawlog utility to create raw transaction log 
files after this setup procedure has been completed, please refer to the 
Getting Started guide.

II_LOG_FILE configured as /oping/install/II
II_NUM_OF_PROCESSORS configured as 4. 
II_TIMEZONE_NAME configured as na-eastern. 
II_CHARSETII configured as ISO88591. 

How many concurrent users do you want to support? [32] .

Press RETURN.

Updating configuration...

Ingres is configured to support 32 concurrent users.

Erasing existing Ingres transaction log.
Erasing the 33554432 byte transaction log file...

0%          25%         50%         75%         100%
||||||||||||||||||||||||||||||||||||||||||||||||||||

Finishing up...

Formatting the primary transaction log file...

Removing defunct utilities and files...

Before you can access the existing databases in this installation, they must be 
upgraded to support the new release of the Ingres server which you have 
installed.  You have the option of upgrading all the databases contained in 
this installation now.  Alternately, you can upgrade them later by hand using 
the upgradedb utility.

Be aware that the time required to upgrade all local databases will depend on 
their size, number, and complexity; therefore it is not possible to accurately 
predict how long it will take.  Also note that the Ingres system catalogs 
(iidbdb) will be upgraded at this time whether or not you choose to upgrade 
your databases.

Upgrade all databases in this installation now? (y/n) [y] <n>

Starting the Ingres server to upgrade system catalogs and databases...

OpenIngres/ingstart

Checking host server87 for system resources required to run OpenIngres...

Your system has sufficient resources to run OpenIngres.

Starting your Ingres installation...

Starting the name server...

Allocating shared memory for logging and locking systems...

Starting the recovery server...II_DBMS_SERVER = 36388

Starting the archiver process...

Starting DBMS server (default)...II_DBMS_SERVER = 36391

Starting Net server (default)...

Upgrading system catalogs and databases...

Checkpointing Ingres system catalogs...	

Shutting down the Ingres server...

Upgrade complete.

Ingres Intelligent DBMS setup complete.

Refer to the Getting Started guide for information about starting and using 
OpenIngres.

Press RETURN to continue:  

Setting up Ingres C2 Security Auditing...

This procedure will set up Ingres Security Auditing for local host:

server87

Generating default security auditing configuration...

Ingres C2 Security Auditing is now set up. 

Press RETURN to continue:  

Setting up Ingres Enhanced Security...

WARNING: This system is not configured for security label support.  
Ingres Enhanced Security will be configured without MAC support. 

Do you want to continue this setup procedure? (y/n) [y]. Press RETURN.

Ingres Enhanced Security has been successfully set up.

Press RETURN to continue:

Setting up Ingres Networking...

This procedure will set up the following version of Ingres Networking:

II 2.0/0001 (sos.us5/00)

to run on local host:

server87

The Ingres Intelligent DBMS has been set up on this host; therefore, this 
installation has the capacity to act as an Ingres "server," which means it 
can service queries against local Ingres databases.  An Ingres server can 
also service remote queries if Ingres Networking is installed.

If you do not need access to this Ingres server from other hosts, you do not 
need to set up Ingres Networking.

Do you want to continue this setup procedure? (y/n) [y] <Return>

Generating default configuration...

II_INSTALLATION configured as II. 

Configuring Net server listen addresses...

Users of other Ingres installations must be authorized to connect to this 
server installation.  For a user to be authorized, correct authorization 
information must be set up locally and on remote clients. You can authorize 
remote users for access to this server using  installation passwords 
(in addition to Ingres Networking user passwords supported in past releases).

Installation passwords offer the following advantages over user passwords:

*	Remote users do not need login accounts on the server host.

*	Installation passwords are independent of host login passwords. 

*	Installation passwords are not transmitted over the network in any 
	form, thus providing greater security than user passwords.

*	User identity is always preserved.

If you need more information about Ingres Networking authorization, please 
refer to the Ingres Net User Guide.

Press RETURN to continue: <Return>

You now have the option of creating an installation password for this server.  
If you choose not to set up an installation password on this server, then you 
must use the netutil program (as described in the Ingres Net User Guide) to 
authorize remote users for access to this server.

Be aware that simply creating an installation password on this server does not 
automatically authorize remote users for access.  To authorize a remote user, a 
valid password must be entered into the Ingres Networking authorization profile 
for that user on the client.  You can authorize remote users in either of the 
following ways:

*	Use netutil as described in the Ingres Net User Guide.

*	Select the installation password authorization option (only valid 
	if your network supports TCP/IP) during the setup procedure for 
	Ingres Networking on the client.  

	Note:  This option is not available when client setup is performed 
	remotely over NFS.

Do you want to create an installation password for this server? (y/n) [y] 
<Return> 

Starting the Ingres name server for password creation... 

Note that installation passwords must be unique in the first eight characters.

Enter installation password:  password

Retype password:  password

Installation password created.  The name server has been shutdown. 

Ingres Networking has been successfully set up in this installation.  
You can now use the ingstart command to start your Ingres server. Refer to 
the Getting Started guide for more information about starting and using Ingres.

Press RETURN to continue:  Setting up the Ingres Protocol Bridge...

This procedure will set up the following release of the Ingres Protocol Bridge:

II 2.0/0001 (sos.us5/00)

to run on local host: 

server87

This installation will be owned by:

ingres

II_INSTALLATION configured as II. 

Do you want to continue this setup procedure? (y/n) [y] <Return>

Generating default configuration...

II_INSTALLATION configured as II. 

Configuring Bridge server listen addresses...

Starting the Ingres name server ... 

Ingres Protocol Bridge has been successfully set up in this installation.

You can now use the ingstart command to start your Ingres client.

Refer to the Getting Started guide for more information about starting and 
using Ingres.

Press RETURN to continue:  Setting up Replicator... <Return>

Creating RepServer Directories...

Replicator setup complete.

Press RETURN to continue:  Setting up Ingres Star Distributed DBMS... <Return>

This procedure will set up the following version of the Ingres Star Distributed 
DBMS:

II 2.0/0001 (sos.us5/00)

to run on local host:

server87

Generating default configuration...

Ingres Star Distributed DBMS has been successfully set up in this installation.

Press RETURN to continue:  Installing Terminal Monitor utility files... 

All Installed products are now available for use.

[Press RETURN] 



Upgrading a CA-Ingres 6.4 installation to an Ingres 2.0 installation

Setting up Application-By-Forms

The following directory will be used to store Application-By-Forms, Vision, and 
VisionPro applications:

/ingres64/install/II/ingres/abf

This default location can be changed later by redefining the Ingres variable 
ING_ABFDIR, using the command: 

ingsetenv ING_ABFDIR location

This variable can also be defined in the UNIX environment.

Press RETURN to continue:

ING_ABFDIR configured as /ingres64/install/II/ingres/abf

Note:  A version of abflnk.opt already exists, but needs to be upgraded.  
       A copy of the existing file will be saved in abflnk.opt.old and a 
       new version will be created.  Any customizations to the original 
       version will need to be manually added to the new file.

Press RETURN to continue: 

Note:  A version of abfdyn.opt already exists, but needs to be upgraded.  
       A copy of the existing file will be saved in abfdyn.opt.old and a 
       new version will be created.  Any customizations to the original 
       version will need to be manually added to the new file.

Press RETURN to continue: 

Application-By-Forms setup complete.

Press RETURN to continue:  Setting up the Ingres library... 

Setting up the Ingres Intelligent DBMS...

This procedure will set up the following release of the Ingres Intelligent DBMS:

II 2.0/0001 (sos.us5/00)

to run on local host:

server28

This installation will be owned by:

ingres

Do you want to continue this setup procedure? (y/n) [y] <Return>

Generating default configuration...

II_INSTALLATION configured as II. 

This program prompts you for the default physical storage locations you want to 
use (if not already configured) for the database, backup, temporary, and 
transaction log files maintained by the Ingres Intelligent DBMS.  Before you 
respond to these prompts, you have the option of reading detailed instructions 
on configuring the default Ingres storage locations.

Do you want instructions on configuring your storage locations? (y/n) [y] 
<Return>

Ingres Location Variables

The Ingres storage locations and the corresponding Ingres variables are listed 
below:

Ingres Variable 	Description

II_DATABASE 		Default location for database files
II_CHECKPOINT 		Default location for full backup file
II_JOURNAL 		Default location for incremental backup files
II_DUMP 		Default location used to store transactions during 
			online backups
II_WORK 		Default location for temporary files
II_LOG_FILE 		Location for the Ingres transaction log file
II_DUAL_LOG 		Location for the backup Ingres transaction log

Press RETURN to continue:

Important!  You cannot change the values you assign to the default Ingres 
            storage location variables once this setup procedure has been 
            completed.  However you can create additional storage locations 
            and assign individual databases to them.  For information on
            creating additional storage locations, refer to the Database 
            Administrator's Guide.

Press RETURN to continue: 

Default Database Location

The Ingres variable II_DATABASE stores the default location used to store 
Ingres database files.

Once a value has been assigned to II_DATABASE, you can change it only by 
removing and re-installing OpenIngres.  Refer to the Database Administrator's 
Guide for information on moving the default database file location.

Press RETURN to continue: 

II_DATABASE configured as /ingres64/install/II

Default Checkpoint, Journal, and Dump Locations

The Ingres variables II_CHECKPOINT, II_JOURNAL, and II_DUMP are used to 
store the default locations used for full and incremental on-line backup files.
It is essential that I_CHECKPOINT, II_JOURNAL,and II_DUMP not be assigned 
to the same physical device as II_DATABASE.  If this restriction is ignored, 
you will be unable to recover lost data in the event that the II_DATABASE 
location fails.

Once assigned, the values of II_CHECKPOINT, II_JOURNAL, and II_DUMP can 
only be changed by removing and re-installing OpenIngres.  Refer to the Database
Administrator's Guide for information on moving the default backup locations.
Refer to the chapter on "Backup and Recovery" in the Database Administrator's 
Guide for instructions on backup and recovery of Ingres databases.

Press RETURN to continue: 

II_CHECKPOINT configured as /ingres64/install/II

II_JOURNAL configured as /ingres64/install/II

II_DUMP configured as /ingres64/install/II

Default Work Location

The Ingres variable II_WORK stores the default location used for all temporary 
files created during external sorts and other DBMS server operations that 
require large amounts of temporary file space.  Ingres lets you designate a 
separate storage device as the default location for these files.

When choosing the II_WORK location, be aware that temporary files tend to 
increase fragmentation on storage devices, which can lead to decreased 
performance.  For this reason, you should assign II_WORK to a physical device 
which does not contain database, checkpoint, journal, or dump files, if 
possible.  Your choice of the default work location does not affect your 
ability to recover lost data in the event of a storage device failure, 
although it may affect performance.

Once assigned, the value of II_WORK can only be changed by removing and 
re-installing OpenIngres.  Refer to the Database Administrator's Guide for 
instructions on moving the default work location in this manner.

Press RETURN to continue:

Please enter the default location for the Ingres Work Files:

[/ingres64/install/II] <Return>

Creating /ingres64/install/II/ingres/work...

Creating /ingres64/install/II/ingres/work/default...

Ingres Transaction Log Locations

The Ingres Intelligent DBMS uses a transaction log file to store uncommitted 
transactions and buffer committed transactions before they are written to the 
database file location(s).

In order to guarantee that no committed transactions can be lost in the 
event of a single storage device failure, a backup of the Ingres transaction 
log must be maintained on a storage device which is independent of the primary 
transaction log file device.

By default, Ingres will maintain a backup of the primary transaction log file 
on a storage location which you select.

You have the option of disabling the backup transaction log file, although you 
should only do so if the location you intend to use for your primary transaction
log file has built-in fault tolerance (for example, a fault-tolerant disk array
or "mirrored" disk sub-system).

Press RETURN to continue: 

Do you want to disable the backup transaction log? (y/n) [n]   <Return>

You must verify that the location(s) you intend to select for the Ingres 
transaction log(s) have sufficient disk space.  The default transaction log 
size is:

16777216 bytes 

This setup procedure will create the Ingres transaction log(s) as ordinary 
(operating system buffered) files, rather than unbuffered (raw) device files. 
For information on using the mkrawlog utility to create raw transaction log 
files after this setup procedure has been completed, please refer to the 
Getting Started guide.

Do you want to change the default transaction log size? (y/n) [n] <Return>

II_LOG_FILE configured as /ingres64/install/II

Please enter a location for the backup Ingres transaction log: 

[/ingres64/install/II] <Return>

You must now specify the number of CPUs (processors) in this machine so that 
Ingres may be set up for this server.  If you do not know the exact number of 
CPUs, but know that this is a multi-cpu machine, enter a value of 2.

The value you specify will be used to set the Ingres variable 
II_NUM_OF_PROCESSORS and possibly other configuration variables.

Please enter the number of CPUs in this machine [1] <Return>  

II_NUM_OF_PROCESSORS is 1 

You must now specify the time zone this installation is located in.  
To specify a time zone, you must first select the region of the world this 
installation is located in.  You will then be prompted with a list of the 
time zones in that region.

This setting must be assigned one of the following values:

AFRICA
ASIA
AUSTRALIA
MIDDLE-EAST
NORTH-AMERICA
NORTH-ATLANTIC
SOUTH-AMERICA
SOUTH-PACIFIC
SOUTHEAST-ASIA
GMT-OFFSET

Please enter one of the named regions:  North-America

Now enter one of the following North American time zones.

This setting must be assigned one of the following values:

NA-PACIFIC
NA-MOUNTAIN
NA-CENTRAL
NA-EASTERN
CANADA-ATLANTIC
CANADA-NEWFOUNDLAND
CANADA-YUKON
MEXICO-GENERAL
MEXICO-BAJANORTE
MEXICO-BAJASUR
US-ALASKA

If you have selected the wrong region, press RETURN. 

Please enter a valid time zone:  na-eastern 

The time zone you have selected is:

na-eastern (North American Eastern Time Zone)

If this is not the correct time zone, you will be given the opportunity to 
select another region. 

Is this time zone correct? (y/n) [y] <Return>

Ingres supports different character sets.  You must now enter the character 
set you want to use with this Ingres installation.

Important!  You will be unable to change character sets once you make your 
            selection.  If you are unsure of which character set to use, 
            exit this program and refer to the Getting Started guide.

This setting must be assigned one of the following values:

Character Set 		Setting

ARABIC 			ALT
CW 			DOSASMO
ELOT437 		GREEK
HEBREW 			HPROMAN8
IBMPC437 		IBMPC850
IBMPC866 		ISO88591
ISO88592 		ISO88595
ISO88599 		PCHEBREW
SLAV852 		THAI
WARABIC 		WHEBREW
WIN1250 		WTHAI

Please enter a valid character set [ISO88591] <Return> 

The character set you have selected is:

ISO88591 (ISO-8859-1)

Is this the character set you want to use? (y/n) [y] <Return>

How many concurrent users do you want to support? [32] <Return>

Updating configuration...

Ingres is configured to support 32 concurrent users.

Erasing existing Ingres transaction log.

Erasing the 16777216 byte transaction log file...

0%          25%         50%         75%         100%
||||||||||||||||||||||||||||||||||||||||||||||||||||

Finishing up...

Formatting the primary transaction log file...

Removing defunct utilities and files...

Before you can access the existing databases in this installation, they must be 
upgraded to support the new release of the Ingres server which you have 
installed.  You have the option of upgrading all the databases contained in this
installation now.  Alternatively, you can manually upgrade them later using the 
upgradedb utility.

Be aware that the time required to upgrade all local databases will depend on 
their size, number, and complexity; therefore it is not possible to accurately 
predict how long it will take.  Also note that the Ingres system catalogs 
(iidbdb) will be upgraded at this time whether or not you choose to upgrade 
your databases.

Upgrade all databases in this installation now? (y/n) [y]      <n>

Starting the Ingres server to upgrade system catalogs and databases...

OpenIngres/ingstart

Checking host "server28" for system resources required to run Ingres...

Your system has sufficient resources to run OpenIngres.

Starting your Ingres installation...

Starting the name server...

Allocating shared memory for logging and locking systems...

Starting the recovery server...II_DBMS_SERVER = 36388

Starting the archiver process...

Starting DBMS server (default)...II_DBMS_SERVER = 36391

Starting Net server (default)...

Upgrading system catalogs and databases...

Checkpointing Ingres system catalogs...

Shutting down the Ingres server...

Upgrade complete

Ingres Intelligent DBMS setup complete.

Refer to the Getting Started guide for information about starting and using 
Ingres.

Press RETURN to continue:  

Setting up Ingres C2 Security Auditing...

This procedure will set up Ingres Security Auditing for local host:

server28

Generating default security auditing configuration...

Ingres C2 Security Auditing is now set up. 

Press RETURN to continue:  

Setting up Ingres Enhanced Security...   <Return>

WARNING: This system is not configured for security label support. 
         OpenIngres/Enhanced Security will be configured without MAC support.

Do you want to continue this setup procedure? (y/n) [y] <Return> 

Ingres Enhanced Security has been successfully set up.

Press RETURN to continue:

Setting up Ingres Networking...

This procedure will set up the following version of Ingres Networking:

II 2.0/0001 (sos.us5/00)

to run on local host:

server28

The Ingres Intelligent DBMS has been set up on this host; therefore, this 
installation has the capacity to act as an Ingres "server," which means it can 
service queries against local Ingres databases.  An Ingres server can also 
service remote queries if Ingres Networking is installed.

If you do not need access to this Ingres server from other hosts, then you 
do not need to set up Ingres Networking.

Do you want to continue this setup procedure? (y/n) [y] <Return>

Generating default configuration...

II_INSTALLATION configured as II. 

Configuring Net server listen addresses...

Users of other Ingres installations must be authorized to connect to this 
server installation.  For a user to be authorized, correct authorization 
information must be set up locally and on remote clients.  You can authorize 
remote users for access to this server using  installation passwords (in 
addition to Ingres Networking user passwords supported in past releases).

Installation passwords offer the following advantages over user passwords:

*	Remote users do not need login accounts on the server host.

*	Installation passwords are independent of host login passwords. 

*	Installation passwords are not transmitted over the network in any 
        form, thus providing greater security than user passwords.

*	User identity is always preserved.

If you need more information about Ingres Networking authorization, please 
refer to the Ingres Net User Guide.

Press RETURN to continue:

You now have the option of creating an installation password for this server.  
If you choose not to setup an installation password on this server, then you 
must use the netutil program (as described in the Ingres Net User Guide) to 
authorize remote users for access to this server.

Be aware that simply creating an installation password on this server does not 
automatically authorize remote users for access.  To authorize a remote user, a 
valid password must be entered into the Ingres Networking authorization profile 
for that user on the client.  You can authorize remote users in either of the 
following ways:

*	Use netutil as described in the Ingres Net User Guide.

*	Select the installation password authorization option (only valid 
        if your network supports TCP/IP) during the setup procedure for 
        Ingres Networking on the client.

	Note:   this option is not available when client setup is performed 
                remotely over NFS.

Do you want to create an installation password for this server? (y/n) [y] 
<Return>

Starting the Ingres name server for password creation... 

Note that installation passwords must be unique in the first eight characters.

Enter installation password:  password

Retype password:  password

Installation password created.  The name server has been shutdown. 

Ingres Networking has been successfully set up in this installation.  You can 
now use the ingstart command to start your Ingres server.  Refer to the Getting
Started guide for more information about starting and using OpenIngres.

Press RETURN to continue:  Setting up the Ingres Protocol Bridge...

This procedure will set up the following release of the Ingres Protocol Bridge:

II 2.0/0001 (sos.us5/00)

to run on local host: 

server28

This installation will be owned by:

ingres

II_INSTALLATION configured as II. 

Do you want to continue this setup procedure? (y/n) [y] <Return>

Generating default configuration...

II_INSTALLATION configured as II. 

Configuring Bridge server listen addresses...

Starting the Ingres name server ... 

Ingres Protocol Bridge has been successfully set up in this installation. 
You can now use the ingstart command to start your Ingres client.

Refer to the Getting Started guide for more information about starting and 
using Ingres.

Press RETURN to continue:  Setting up Replicator...

Creating RepServer Directories...

Replicator setup complete.

Press RETURN to continue:  Setting up Ingres Star Distributed DBMS... <Return>

This procedure will set up the following version of the OpenIngres/Star

Distributed DBMS:

II 2.0/0001 (sos.us5/00)

to run on local host:

server28

Generating default configuration...

Ingres Star Distributed DBMS has been successfully set up in this installation.

Press RETURN to continue:  Installing Terminal Monitor utility files... <Return>

All Installed products are now available for use. 


Semaphores and Shared Memory

Ingres requires semaphores and shared memory parameters to be set to 
minimum values.

To verify the current settings for these parameter, use the SCO "sysdef" 
command.

To change these tunable parameters, use SCO "scoadmin" and "idtune" utilities. 

You will require root authority for all three utilities. 

Change the relevant parameters to their respective minimum vlaues listed below:

	Utility		Parameter	Value
	scoadmin	SEMMAP		10
	idtune		SEMMNI		100	
	idtune		SEMMNS		1000
	scoadmin	SEMMNU		30
	idtune		SEMMSL		50
	idtune		SEMOPM		10
	idtune		SEMUME		10
	idtune		SEMVMX		32767
	idtune		SEMAEM		16384
	either		SHMMAX		10,000,000
	scoadmin	SHMMIN		1
	idtune		SHMMNI		100
	idtune		SHMSEG		10

Scoadmin requires relink of the kernel followed by a reboot of  the system. 
Idtune, also requires rebooting the system.

Notes:  

*	The minimum value required for SEMMNS 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 SEMMNS be set to at least 190, and may 
        require a higher value to accommodate other software.  It is 
        recommended that this value be configured generously.

*	The minimum value required for SHMMAX is at least as large as the 
        largest shared memory segment that Ingres will allocate on your system.
        The recommended value of 10,000,000 is generally sufficient. Small 
        systems with only a few users may be able to run with SHMMAX set 
        to 5,000,000 or less. Conversely, a very large shared DMF cache may 
        require that SHMMAX be set to 150,000,000 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 

Some SCO OpenServer environments may restrict syscheck from accessing 
internal values in the kernel. If this should occur it will be necessary 
to give root authority to syscheck by doing the following:

	cd $II_SYSTEM/ingres/utility
	su root
	chown root syscheck
	chmod 4755 syscheck

If this restriction occurs while installing Ingres via ingbuild it will be
necessary to start a second session to perform the above authorization at 
the point where ingbuild requests "Execute setup programs now". At this point
ingbuild has downloaded syscheck into $II_SYSTEM/ingres/utility.

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 SCO OpenServer, this value is 512.

System Soft Limit

This is the maximum number of open file descriptors which Ingres could 
conceivably get, depending on how many open files other processes have at 
that point in time.  This value is also 512 because Ingres uses SETRLIMIT() 
to extend the default value of 64.



Environment Configuration

This release of Ingres supports the use of shared libraries.  The 
"LD_LIBRARY_PATH" environment variable must be set in order to add the 
Ingres shared libraries to your shared library.  Set this variable as follows:

For C shell:

$ setenv LD_LIBRARY_PATH "/lib:/usr/ccs/lib \
:/usr/ucblib:$II_SYSTEM/ingres/lib \
:$LD_LIBRARY_PATH"

For Bourne shell:

$ LD_LIBRARY_PATH=/lib:/usr/ccs/lib:/usr/ucblib \
:$II_SYSTEM/ingres/lib:$LD_LIBRARY_PATH

$ export LD_LIBRARY_PATH



Application Migration and Development Notes

Preprocessor and Compiler Support

The following compilers are supported for this release:

*	C          SCO OpenServer 5.0 Development System

*	FORTRAN    Liant LPI-FORTRAN (3.6)

*	COBOL      MicroFocus COBOL (3.2)


LPI FORTRAN

In the current implementation of LPI-FORTRAN of SCO OpenServer 5.0, a 
workaround is necessary to permit the Embedded SQL in FORTRAN to run 
correctly. It consists of creating one small object file (fixenv.o) and 
modifying the existing ESQL/Fortran link shell script (which you should 
have created based on the ESQL/F or EQUEL/F guide).

1.  Login as ingres.

2.  Create a C source file called fixenv.c with the following source statements:

	IIFIXENV()
	{
		extern char **environ, **_environ;
		_environ = environ;
	}

3.  Produce an object file for this with:

	% cc -c fixenv.c

    Be sure there are no compilation errors.

4.  Move the object to the library area:

	% mv fixenv.o $II_SYSTEM/ingres/lib

    This file is to be linked with all ESQL/F and EQUEL/F binaries.

5.  Insert a call to the environment-fixing function just BEFORE the first 
    Ingres function is called.

    To do this, add the following lines to your link script, placing them AFTER 
    your call to the precompiler (that is, the call to esqlf or eqf) and just 
    before the line calling the FORTRAN compiler (that is, beginning with
    'lpiftn' or equivalent):

	awk '/^<TAB>call<SP>*II/ \
		{ if (++F == 1)  \
			{printf"\tcall Iifixenv()  \n"}}  \
		/.*/ { print $0 }'  $FILE > tmp

NOTE:  the <TAB> means one tab character and <SP> means one space character. 
       $FILE is the source file; probably given as a parameter to the script, 
       it includes the '.f' extension (as it is the FORTRAN intermediate file).

6.  Append '$II_SYSTEM/ingres/lib/fixenv.o' to the compilation line (beginning 
    'lpiftn') after the load flags (that is, after the library paths). This 
    will link in the IIFIXENV() function created earlier each time you build 
    an ESQL/F or EQUEL/F executable.

The command line for the final compilation should look like the following:

    lpiftn  -verbose  -o file.exe  file.f  $II_SYSTEM/ingres/lib/libingres.a \
    /usr/lib/libm.a   /usr/lib/libsocket.a   /usr/lib/libnsl_s.a   fixenv.o

When executing, it produces the output:

    ld  /usr/lpi/lib/lprtsl.o070520  file.o  
    /u2/1104elfbuild/ingres/lib/libingres.a \
    /usr/lib/libma  /usr/lib/libsocket.a  /usr/lib/libnsl_s.a \	
    fixenv.o  -o  file.exe

    where file.exe is the final executable based on a source of 
    file.sf (for SQL) or file.qf (for QUEL).

MF-COBOL 

An upgraded MF-COBOL is necessary for SCO OpenServer 5.x Ingres 2.0/0001. 
The associated version information is as follows:

	cobol  v3.2.46-Be
	PRN-2XCGG/ZZH:7a.1a.11.09z

Four files are supplied with this patch.

1.  An extra line must be appened to the following file, if it is not already 
    present. The file is:

		$COBDIR/coblib/cobusym

	The symbol to append is:

		_GLOBAL_OFFSET_TABLE_

At this point it should be possible to link ESQL/COBOL and EQUEL/COBOL 
programs with the Ingres libraries (ELF format).

2.  Use the following to build the run-time system:

	ar  xv  $II_SYSTEM/ingres/lib/libingres.a  iimfdata.o
	ar  xv  $II_SYSTEM/ingres/lib/libingres.a  iimflibq.o 
	ar  xv  $II_SYSTEM/ingres/lib/libingres.a  iimffrs.o

	cob  -x  -e  ""  -o ingrts  iimfdata.o  iimflibq.o  iimffrs.o  \
	       $libs  $II_SYSTEM/ingres/lib/libingres.a  \
	       -lm  -lsocket  -lnsl_s

	where the $libs are optional additional libraries which may need to be 
supplied for a particular application.

3.  To build the interpretable COBOL program, use the command:

	% cob  -C warning=1  file.cbl

	where 'file' is your own filename. 

4.  To run the resulting program use the command:

	ingrts file



Floating Point Limitations

Users must consider the effects of data type conversions when numeric values 
are combined or compared.  This is especially true when dealing with floating 
point values.

Exact matches on floating point numbers are discouraged, since float and float4 
data types are approximate numeric values. Integer and decimal data types, on 
the other hand, are exact numeric values.

In some cases, the behavior of queries involving floating point manipulations 
will differ from that of 6.4.

The following example returns 0 rows and illustrates several issues to consider:

create table flt_test (a1 f4) \g
insert into flt_test values (55.550) \g
select * from flt_test where a1 = 55.55 \g

The data type conversions performed on the decimal literal '55.55' and the 
float4 value in the table produce internal values that do not match exactly.

When trying to do an exact match on floating point numbers, include a "fuzz 
factor", such as:

where a1 between (55.55 - 0.00001) and (55.55 + 0.00001)

Or write the query so it eliminates the need to perform the data conversions:

select * from flt_test where a1 = float4(55.55) \g

Data type conversions are covered in detail in the "SQL Data Types" chapter of 
the SQL Reference Guide.


Complex Queries 

In rare cases, unusually long or complex queries may cause various problems, 
such as a SEGV in the DBMS server, due to a stack overflow. If this happenss, 
increase the DBMS server stack size.

To change the DBMS server stack size in CBF, highlight "DBMS  Server", then 
select Configure. Scroll down to "stack_size", then select Edit. 


Backup and Recovery

Ckpdb/Rollforwarddb of Tables

When performing rollforwarddb at the table-level, you can choose to either 
Rollforward the table "with no secondary indexes," meaning excluding all 
secondary indexes, or "with secondary indexes," meaning including all 
secondary indexes. You cannot specify a secondary index name as a table.

If necessary to do a rollforwarddb with -table nosecondary_index, the base 
tables secondary index in the RDF cache will now be inconsistent.  To clear the 
inconsistency, do one of the following:

*	Drop/recreate the inconsistent secondary index.

*	Restart Ingres to refresh the RDF cache.

Call Computer Associates Technical Support if additional assistance is required.

Table-level checkpoints should only be used as a supplement to database-level 
checkpoints, and never as a substitute for them.  Table-level checkpoints are 
restricted in their recoverability when the checkpointed table has been dropped 
or the table has been modified (any DDL statement).  In these cases, the 
table-level checkpoint is rendered unusable.  There is also danger in 
compromising the referential integrity of the database when rolling forward a 
table without journaling.

Performing table-level checkpoints on system catalogs is not permitted.  
Frequent database checkpointing of the iidbdb database is strongly encouraged. 
Sysmod should be run prior to a system catalog checkpoint. 

Whenever the database is rolled forward, it is recommended that a new 
checkpoint be taken to allow subsequent table-level rollforward activities. 

The Database Administrator's Guide states in Chapter 16 in the Checkpointing a 
Database section: "Running a checkpoint does not affect the state of 
journaling."  This refers to the use of the ckpdb command without any flags.

Users should use the -d flag in ckpdb with caution since deleting all prior 
checkpoints eliminates the option of recovering from a prior checkpoint should 
there be a media failure with the current checkpoint.  You can manually delete 
the oldest checkpoint using the alterdb command.


Cktmpl.def

As with any changes to backup and recovery procedures, it is strongly 
recommended that the customer fully test any changes to the cktmpl.def file 
before running it in a production environment.

Use caution in the area of table-level checkpoints and recovery. Full database 
checkpoints are recommended over table-level checkpoints as a general rule.  
When using table-level checkpoints and restores, it is important to -at the 
very least- backup all dependent tables in a single ckpdb command.

A record of up to 16 checkpoints can be maintained at any point.  It is 
recommended that at least one database-level checkpoint be included in this 
record.

The use of infodb to verify the status of the database and checkpoints is 
encouraged.  This will help assure that a valid database checkpoint is always 
available.  The cktmpl.def file provides the ability to customize backup and 
recovery processes as well as lending itself to allow for additional tracking 
of information.  It is possible to modify the backup process so that the 
names of the tables that are specified during a table-level backup are 
written to a text file.

The II_CKTMPL_FILE environment variable provides the capability of 
overriding the default cktmpl.def file for a particular user.  This should 
be used when testing modifications to the cktmpl.def file before it is made 
available to the entire installation, so that other users in the installation 
will not be affected.


Checkpoint Template Codes and Parameters

Checkpoint template codes and parameters are documented in detail in the 
Database Administrator's Guide, Chapter 16, under Altering the Checkpoint 
Template File. 

Fourth Character Options

In addition to the checkpoint template codes and parameters listed in the 
sources noted above, another fourth character option of "E" is available which 
indicates either database or table.  Therefore, the options available for 
the fourth character are:

*	D = database-level

*	A = all databases

*	T = table-level (within a single database)

*	E = database or table

Valid Code Combinations

The valid code combinations are shown below:

B [S,R,E,J,U] [T,D,E] [T,D,E]
W [S,R,E,J,U,D,C] [T,D,E] [T,D,E]
I [,R,E] [T,D,E] [T,E]
F [,R,E] [T,D,E] [T,E]

Note:  In some cases A, is also valid as the fourth character.

For every entry with B in character 1, there must be an accompanying entry 
beginning with E.

Execution of Code Sequence

A ckpdb command will execute the following in the cktmpl.def file:

Bsxy	beginning checkpoint
Wsxy	executed once for each location
Esxy	ending checkpoint

Where x denotes D for disk, T for tape, or E for both and y denotes D for 
database, T for table, or E for both.

The rollforwarddb command will process the following codes in the cktmpl.file:

WCxA	for each location

If table processing was specified:

BRxT	once per location
IRxT	once per location
WDxT	for each table
WRxT	for each table
FRxT	once per location
EExE	once (note that ERxT would be executed if available)

If database backup:

BRxD	once for each location
WDxD	once for each location
WRxD	once for each location
ExE	once (note that ERxD would be executed if available)

For all rollforwarddb commands:

BUxA	if dumps are to be applied
WUxA
EExE
BJxA	if journals are to be applied
WJxA
EExE

Substitution Parameters

There are two additional substitution parameters for these checkpoint template 
files:

*	%X represents the table name.

*	%B is expanded during execution to represent the list of internal 
        files that are associated with a table checkpoint.

This data is pertinent for the work commands executed under table processing.


Known Limitations

All parameters should be accessible to all operations.  When the contents 
are not applicable to the operation, parameters should contain the 
value "Undefined".

Some parameters have incorrect contents or are not defined.  In almost all 
instances, however, these are not parameters that would be useful in the 
particular operation.  For example:

*	Parameters %F and %A may have invalid data when B is the first 
        character in the code.

*	Parameters %A, %X, and %B may contain no data when "B, R" begins the 
        code.

*	Parameters %B and %X may contain the first table of the last location 
        accessed-instead of the value "Undefined" -when E or F is the first 
        character of the code.

*	Parameter %N may contain 0 or the number of locations -instead of the 
        location number- when the first character of the code is W or I.

Execution of Codes

Only one code will be executed when the E (both) option is used.  For example,
if you had:

BSDD
BSED
BSTD

(The file is searched sequentially for codes.)  If you issued ckpdb my_db to 
disk, code BSDD would be executed.  If you backed up to tape, BSED would be 
executed. BSTD would never be executed with the above setup. 

If a command is missing in the checkpoint template file you will get the 
message:

E_DM1363_RFP_TMPL_CMD_MISSING Cannot find command in checkpoint 
template file.


Converting Cktmpl.def Files to the New Release

The CA-Ingres release 6.4 cktmpl.def will not work with the 2.0/00 release of 
Ingres.

Any attempt to execute under the old file will result in immediate failure of 
the checkpoint and the following error message:

E_DM1121_CPP_BEGIN_ERROR Error starting checkpoint sequence.

Converting the prior file to provide the same functionality under the new 
release is relatively simple.  However, careful consideration must be taken 
as to how these modified procedures will affect table-level backup and 
recovery introduced with Ingres.  For example, if cktmpl.def has been 
modified so that backup files reside in a location other than the standard 
ii_checkpoint location, this will impact the functionality of table-level 
recovery.

To convert the prior codes to the new codes, simply move the commands processed
in the prior cktmpl.def codes to the new files code by adding a D to the 
existing three letter code.

For example, if the 6.4 cktmpl.def file contains the following entry:

WSD: /export/home/ingres/bin/backup_split_ckp %D %A %N

Move these commands to the new file under the code:

WSDD: /export/home/ingres/bin/backup_split_ckp %D %A %N

However, this will not eliminate problems that can occur when using table-level 
recovery.  If the table-related codes are not modified to accommodate the 
changes made in the backup and recovery process for database processing, the 
desired data will not be present in the tables; this will be true despite the 
possibility that the rollforward operation using the -table option might be 
"successful" when issued against a full database backup.


Interoperability

This release supports the following communication packages:

Network Protocol 	Version 	I/NET Protocol ID

SCO TCP/IP 		All versions 	TCP_IP

