Differences between root installations and non-root installations

In addition to a few limitations, the directory structure of a non-root installation is slightly different than the directory structure of a root installation.

During a root installation, subdirectories and files for the Db2® database product are created in a directory of the root user's choosing.

Unlike root users, non-root users cannot choose where Db2 database products are installed. Non-root installations are always placed in the $HOME/sqllib directory, where $HOME represents the non-root user's home directory. The layout of the subdirectories within the sqllib directory of a non-root is similar to that of a root installation.

For root installations, multiple instances can be created. Instance ownership is associated with the user ID under which the instance was created.

Non-root installations can have only one Db2 instance. The non-root installation directory contains all of the Db2 database product files and instance files with no soft links.

The following table summarizes the differences between root installations and non-root installations.
Table 1. Differences between root installations and non-root installations
Criteria Root installations Non-root installations
User can select installation directory Yes No. Db2 database products are installed under the user's home directory.
Number of Db2 instances allowed Multiple One
Files that are deployed during installation Program files only. Instances must be created after installation. Program files and instance files. The Db2 database product is ready for use immediately after installation.
Upgrade version and instance No No need to uninstall the old version before you install the new version. Install new version, and upgrade the instance, together.