Installing Ingres on UNIX

This section contains the following topics:

How You Prepare for Installation on UNIX

How You Install and Configure Ingres in a UNIX Environment

Installation Modes

ingres_express_install Command—Install Ingres Quickly

Install Ingres in Interactive Mode

Install Ingres in Command Line Mode

Run the Setup Programs

How You Install and Configure NFS Clients

Set TERM_INGRES

Set II_DISTRIBUTION

Post-Installation Tasks

Previous Topic

Next Topic

How You Prepare for Installation on UNIX

You should thoroughly understand the issues regarding system resources, storage locations, and other configuration parameters before installing Ingres. If you are not sure, have someone more knowledgeable in these areas perform the installation planning.

Before installing Ingres on UNIX, do the following:

Previous Topic

Next Topic

How You Create the System Administrator Account on UNIX

Only the system administrator (instance owner) can install Ingres, therefore, you must create this account before installing the product.

Follow this process to create the system administrator account:

  1. Log in to your system through the root account.

    If you do not have access to this account, have the UNIX system administrator complete this procedure or log in for you.

  2. Set up an account with a login name of your choice. (The default is "ingres.")

    This account should have a user identification code (UID) greater than 100.

  3. Add this user to the kmem group in the /etc/group file, as described in your operating system documentation.
  4. Make sure that /dev/kmem is in the kmem group and that its permissions are set to "group read." For example:

    %ls -lgL /dev/kmem

    crw-r----- 1 sys 13, 1 Jun 19 09:05 /dev/kmem

Note: Check the Readme file for your operating system for any variation in this procedure.

Previous Topic

Next Topic

Major Configuration Options

Initially, you can configure your installation as one of the following major types. Later, you can install other products or modify parameter settings to add more capabilities to your installation. For example, you can add networking capabilities to a standalone installation that is connected to a network. Or you can add client capabilities to an installation that you initially configured as a networked DBMS Server.

The major configuration options are as follows:

Previous Topic

Next Topic

How You Install and Configure Ingres in a UNIX Environment

The process for installing and configuring Ingres on UNIX is as follows:

  1. (Optional) Set environment variables—Define default values for your terminal type and distribution medium before running the install program, as described in Set TERM_INGRES and Set II_DISTRIBUTION.
  2. Install the software—Install the software in the correct locations with the correct permissions.
  3. Run setup programs—Set required configuration parameters for installed components by running the setup programs.

    Note: This step is necessary only if the install procedure did not include this step, for example, if you used the Install method in Interactive mode.

  4. Start Ingres—Start Ingres on your system so the system administrator can access it.
  5. Customize your instance—Set optional configuration parameters to allow Ingres to run as desired.
  6. (Optional) Set up raw log file—Set up a raw log file to be used in place of the default transaction log file, as described in Transaction Log File as a Raw Device.
  7. Prepare Ingres for general use—Perform additional tasks needed to prepare the product for its users, such as creating an automatic boot command, authorizing users, and creating databases.

Previous Topic

Next Topic

Installation Modes

Ingres on UNIX can be installed using one of the following modes:

Previous Topic

Next Topic

ingres_express_install Command—Install Ingres Quickly

The ingres_express_install command quickly installs all Ingres packages.

If you set II_RESPONSE_FILE to point to a valid response file, then you can install Ingres with the configuration defined in that response file.

This command has the following format:

ingres_express_install [instance_ID]

Examples: ingres_express_install Command

This command installs all packages in the current working directory with the default configuration:

ingres_express_install

This command installs all packages with the default configuration, but with an instance ID of A1:

ingres_express_install A1

Previous Topic

Next Topic

Install Ingres in Interactive Mode

In interactive mode, you install Ingres using a form-based utility.

To install Ingres on UNIX using the forms-based Ingres Installation Utility

  1. Log in as the root user.
  2. Extract all files from the "CD Image" saveset that was downloaded from the Ingres web site to a local directory (or insert the CD-ROM into the drive and mount the drive from a local host, if not mounted automatically).
  3. Change to the root directory on the directory where you extracted the "CD Image" saveset files or the CD-ROM, and enter the following command to run the install utility:

    % install.sh

    The forms-based Ingres Installation Utility is started.

  4. Respond to the install dialogs.

    Ingres components are installed on your system.

Previous Topic

Next Topic

Install Ingres in Command Line Mode

In command line mode, you can completely automate and customize your install by supplying the appropriate arguments to the ingbuild command at the operating system prompt.

Previous Topic

Next Topic

Ingbuild Command–Install Ingres

The ingbuild command installs Ingres.

Ingbuild runs in interactive mode if you specify no command line arguments or only -mkresponse or -exresponse.

Ingbuild runs in batch mode (without interruption) if you specify a distribution medium. It also automatically starts any needed setup programs for the installed products, unless the nosetup option is specified.

This command has the following format:

ingbuild [flags] [distribution_medium]

Examples: ingbuild command

Previous Topic

Next Topic

Run the Setup Programs

The setup programs configure the installed components.

You must run the setup programs if the installation process did not perform this step if you used the Install method in Interactive mode—or if you want to change the default values.

After installing Ingres components, you can run the setup programs at any time from the Currently Installed Components screen.

The order in which you run the setup programs is important. For a networked DBMS Server instance, run the setup program for the DBMS Server before running Ingres Net Setup. Ingres Net Setup can then use several of the values you specified for the DBMS Server.

To run the setup programs from the Currently Installed Components screen

  1. Choose SetupAll to run the setup programs for all components that require it.

    The setup programs execute one after another, in an appropriate order.

    Note: If you need to set up components individually, highlight the appropriate row for the component you want to set up and choose Setup from the menu.

  2. Respond to the program prompts.

    When setting up required parameters, default values sometimes appear in brackets after the prompt. To accept a default value, press Return. Otherwise, enter an appropriate value and press Return.

    The Setup program(s) prepare each component for use.

Previous Topic

Next Topic

How You Install and Configure NFS Clients

You create and configure NFS client instances using the ingmknfs utility, rather than the install and setup programs.

The process for installing and configuring an NFS client is as follows:

  1. Install the Ingres DBMS Server, Ingres Net, and Ingres tools components as a networked DBMS Server.
  2. Run the ingmknfs utility to create the NFS client instances and configure the DBMS Server for NFS-client use (that is, create the NFS admin directory and related NFS-client files).

    You can issue the ingmknfs command in either of the following ways:

Previous Topic

Next Topic

Set Up Each NFS Client Individually

To set up each NFS client individually, follow these steps:

  1. Make sure you have run the Ingres DBMS Server and Ingres Net setup programs on the Ingres DBMS Server instance, as described in Run the Setup Programs.
  2. Define II_SYSTEM as it appears on the client, where pathname is the path for the directory in the client's file system that is the NFS-mounted, shared II_SYSTEM directory on the Ingres DBMS Server instance.

    For C shell:

    % setenv II_SYSTEM pathname

    For Bourne shell:

    $ II_SYSTEM=pathname; export II_SYSTEM

    Details are described in NFS Client Parameters (UNIX).

  3. Set your path appropriately.

    For C shell:

    % set path=($II_SYSTEM/ingres/{bin,utility} $path)

    % rehash

    For Bourne shell:

    $ PATH=$II_SYSTEM/Ingres/bin:$II_SYSTEM/ingres/ utility:$PATH

    $ export PATH

  4. Issue the following command on each NFS client at the operating system prompt:

    % ingmknfs

  5. Provide the following information in response to program prompts.
  6. Enter y to create an authorization entry at this time for yourself or for all users, to enable access to the default Ingres DBMS Server. When prompted to do so, enter the installation password for this client's Ingres DBMS Server (host) instance.

    Enter n if you prefer to create the authorization entry later, using either the netutil utility (see the Command Reference Guide), or the Network Utility or Visual DBA (see the Connectivity Guide).

    When done, you are returned to the operating system prompt.

  7. Start up the Ingres DBMS Server instance and each NFS client instance with Ingres Visual Manager or the ingstart command on each node, as described in Start the Ingres Installation.
  8. Make sure that the Ingres startup procedure has succeeded and the Name Server and Communications Server are now running on each client node.

Previous Topic

Next Topic

Set Up NFS Clients from the DBMS Server

To set up one or more NFS clients from the server, follow these steps:

  1. Make sure you have run the setup program for the Ingres DBMS Server and Ingres Net components on the DBMS Server instance, as described in Run the Setup Programs.
  2. From the DBMS Server node, enter the following command at the operating system prompt, in which host is the name of each NFS client instance that you want to set up:

    % ingmknfs host {host}

    For example, if your DBMS Server node is "sales" and your client nodes are "region1," "region2," and "region3," you would enter the following command on the DBMS Server node:

    % ingmknfs region1 region2 region3

  3. Provide the following information in response to the program prompts. Refer to your completed NFS Client Worksheet.
  4. Define II_SYSTEM on the client, where pathname is the path for the directory in the client's file system that is the NFSmounted, shared II_SYSTEM directory on the DBMS Server instance:

    % setenv II_SYSTEM pathname

  5. Set the path on the client.

    For C shell:

    % set path=($II_SYSTEM/ingres/{bin,utility} $path)

    % rehash

    For Bourne shell:

    $ PATH=$II_SYSTEM/ingres/bin:$II_SYSTEM/ingres/utility:$PATH

    $ export PATH

  6. Start up the DBMS Server instance and each NFS client instance with Visual Manager or the ingstart command on each node, as described in Start the Ingres Installation.
  7. Make sure that the Ingres startup procedure has succeeded and the Name Server and Communications Server are now running on each NFS client node.
  8. On each NFS client node, establish Ingres Net authorizations using either the netutil utility (see the Command Reference Guide), or the Network Utility or Visual DBA (see the Connectivity Guide).

Previous Topic

Next Topic

Set TERM_INGRES

The TERM_INGRES environment variable defines the terminal type you are using. You can enter a value for the TERM_INGRES environment variable in response to a prompt during installation or prior to running the install program.

To set TERM_INGRES

Enter the following command at the operating system prompt:

% setenv TERM_INGRES Ingres_terminaltype

For example, the following command defines your terminal as a VT100.

For C shell:

% setenv TERM_INGRES vt100

For Bourne shell:

$ TERM_INGRES=vt100; export TERM_INGRES

Previous Topic

Next Topic

Set II_DISTRIBUTION

The II_DISTRIBUTION environment variable stores the full path name for the device or file containing the Ingres distribution.

You can enter a value for the II_DISTRIBUTION environment variable in response to a prompt during installation or prior to running the install program.

Note: For faster file transfer during the installation process, you can copy the contents of the distribution medium to a disk file as an intermediary step, and then specify the disk file as the pathname for II_DISTRIBUTION.

To set II_DISTRIBUTION

Enter the following command at the operating system prompt:

For C shell:

% setenv II_DISTRIBUTION pathname

For Bourne shell:

$ II_DISTRIBUTION pathname; export II_DISTRIBUTION

Previous Topic

Next Topic

Post-Installation Tasks

Post-installation tasks include the following:

Previous Topic

Next Topic

Transaction Log File as a Raw Device

The transaction log file can be a raw device rather than an ordinary file system file. A raw device is a disk partition without a file system. This avoids file system overhead for disk input and output. Ingres supports use of a raw device for the transaction log files as a highperformance option.

By default the install process creates the log file as an ordinary file. After Ingres is installed, you can create and configure the transaction log file as a raw device.

Previous Topic

Next Topic

Location of Your Raw Log File (UNIX)

The following restrictions apply to the locations for a raw log file:

Previous Topic

Next Topic

Create and Configure the Raw Log File (UNIX)

After Ingres is installed, you can create and configure the transaction log file as a raw device.

Note: Check the Readme file for any variations to this procedure that are specific to your platform.

To create and configure a raw log file

  1. Log in to your system as the root account.

    (If you do not have access to this account, have the UNIX system administrator complete this procedure or log in for you.)

  2. Create the raw devices in the locations you have chosen.

    For more information about creating a raw device, see the UNIX documentation.

  3. Use the ls command to verify that you have two special devices available for each raw location. Enter the following command:

    ls -l /dev

    This command should return output similar to this example:

    crw-r----- 1 root 17, 3 Dec 16 12:52
    /dev/rsd1d
    brw-r----- 1 root 11, 3 Dec 16 12:52
    /dev/sd1d

  4. Go to the location of your instance's system files.

    For C shell:

    % setenv II_SYSTEM dirname
    % set path = ($II_SYSTEM/ingres/{bin,utility} $path)
    % cd $II_SYSTEM/ingres

    For Bourne shell:

    $ II_SYSTEM=dirname
    $ export II_SYSTEM
    $ PATH=$II_SYSTEM/ingres/utility:$II_SYSTEM/ingres/
    bin:$PATH
    $ export PATH
    $ cd $II_SYSTEM/ingres

  5. Issue the following command:

    % mkrawlog

    The mkrawlog command:

Previous Topic

Next Topic

Automatic Startup Command

You can have Ingres start up and shut down automatically. To add an automatic startup command, you must know the startup mechanism your environment uses. See the administration manual for your UNIX environment, or ask your system administrator to assist.

Typically, UNIX startup scripts are organized either in directories by run-level, or in startups scripts in /etc.

Note: For additions or variations necessary for your platform, see the Readme file.

If your environment uses the "directory-by-run-level" method, we recommend that you sequence your Ingres script so that it starts late in the startup sequence, and shuts down early in the shutdown sequence.

If your environment uses one or a few startup scripts, edit the rc.local script. Look for a shell function called localrc, or simply add the Ingres startup near the end.

When writing the Ingres startup script, make sure that you set all necessary shell environment variables, and run the ingstart command as instance owner. At a minimum, you must set II_SYSTEM and PATH. In most UNIX environments, you must also set the shared library path (LD_LIBRARY_PATH, LD_LIBRARY_PATH_64, LIBPATH, SHLIB_PATH, or SH_LIB_PATH).

For example:

II_SYSTEM=/inghome; export II_SYSTEM

PATH=$PATH:$II_SYSTEM/ingres/bin:$II_SYSTEM/ingres/utility; export PATH

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$II_SYSTEM/ingres/lib

export LD_LIBRARY_PATH

su ingres -c "ingstart"

If shared libraries are not supported on your operating system, there is no need to set the shared library path variable.

Depending on your UNIX environment, you may want to redirect the output of the ingstart command to a file or to /dev/console.

You must add the appropriate commands to the system startup file on each machine running a DBMS Server or client.

Previous Topic

Next Topic

Allow Access on Systems Using Shadow Passwords

If your operating system has shadow passwords and you are not using the Ingres installation password authorization, you must install the password validation program to allow access to the networked DBMS Server.

To install the password validation program

  1. Log in as root.
  2. Run $II_SYSTEM/ingres/bin/mkvalidpw.

    The mkvalidpw script installs the password authorization program used by the DBMS Server.

Previous Topic

Next Topic

How You Establish User Access to Tools and Databases

The install process identifies only the owner of the system administrator account to your instance to permit authorized access to the databases.

To enable users to access tools and databases, the system administrator must do the following:

For more information, see the System Administrator Guide.

Previous Topic

Next Topic

Edit User Login File to Facilitate User Access to Tools

To facilitate user access to Ingres tools when they log in to the system, add the following access commands to the users' login files, where installation_location is the storage location for your instance's system files (executables).

For C shell, add the following command to each user's ".cshrc" file:

% setenv II_SYSTEM installation_location
% set path=($II_SYSTEM/ingres/bin $path)

For Bourne shell, add the following command to each user's ".profile" file:

$ II_SYSTEM=installation_location; export II_SYSTEM
$ PATH=$II_SYSTEM/ingres/bin:$PATH; export PATH

Previous Topic

Next Topic

Edit User Login File to Set Up Shared Library Paths

To support shared libraries on your operating system, include the following command in each user's path. For the name of the library variable (lib_variable) for your platform—for example, LD_LIBRARY_PATH, LD_LIBRARY_PATH_64, LIBPATH, SHLIB_PATH, or SH_LIB_PATH—see the Readme.

For C shell:

% setenv lib_variable
/lib:$II_SYSTEM/ingres/lib:$lib_variable

For Bourne shell:

$ lib_variable=/lib:$II_SYSTEM/ingres/lib: $lib_variable
$ export lib_variable

Previous Topic

Next Topic

View Contents of Your Current Installation

After you have completed the install process and started the instance, you can use the install utility with your current instance.

To view the contents of your current instance

  1. Log in to your system through the instance owner account.
  2. Change your active directory to II_SYSTEM/ingres:

    % cd $II_SYSTEM/ingres

  3. Enter the following command at the operating system prompt:

    install/ingbuild

    The initial screen of the install utility appears, with the following menu options:

    CustomInstall  PackageInstall  Current  Help  Quit

    Note: The Current option appears only if products are installed.

  4. Choose Current.

    The Currently Installed Components screen appears.

    Currently Installed Components Screen

    All Ingres components that are installed are listed.

Previous Topic

Next Topic

Currently Installed Components Screen

The Currently Installed Components screen of the Install utility lets you perform various functions on your current installation, including the following:


© 2007 Ingres Corporation. All rights reserved.