Upgrading non-root thin server instances (Linux and AIX)
You can upgrade non-root thin server instances on a code server and on a remote server in a thin server instance environment.
Before you begin
- Ensure that you understand the limitations of non-root Db2® installations. For more information, see Limitations of non-root installations
Procedure
To upgrade non-root thin server instances:
- Log in to the code and remote servers as the user who owns the instance.
- Stop all instances by using the db2stop command.
- Unmount the thin server instance on the remote server by
issuing the following command:
where, db2inst1 is the default non-root instance owner on the code server, /home/db2inst1 is the home directory of the default non-root instance owner.umount /home/db2inst1/sqllib
- Log in to the code server as a non-root user.
- Perform a non-root installation of Db2 database product on the code server and upgrade the non-root instance. For more information, see Upgrading non-root installations.
- Run the mount command
from the remote server as shown in the following example:
mount -t nfs SYSTEM A:/home/db2inst1/sqllib/ /home/db2inst1/sqllib
- Upgrade non-root thin server instances by performing one
of the following set of substeps:
- To upgrade the non-root thin server instance on the code server,
perform the following substeps:
- Log in to the code server as another non-root thin server instance user. For example, db2inst2.
- Access the read-only copy of the Db2 installation path that is exported from the code server. For example, /home/db2inst1/sqllib, where db2inst1 is the non-root user who owns the Db2 installation on the code server, and /home/db2inst1 is the home directory of the non-root instance owner.
- Set the library path in one of the following ways:
- On Linux® operating systems,
issue the following command:
export LD_LIBRARY_PATH=/home/db2inst1/sqllib/lib/:/home/db2inst1/sqllib/instance/native/install:$LD_LIBRARY_PATH
- On AIX® operating systems, issue the following
command:
where, /home/db2inst1/sqllib is the read-only copy of the Db2 installation path that is exported from the code server.LIBPATH=/home/db2inst1/sqllib/lib/:/home/db2inst1/sqllib/instance/native/install:$LIBPATH export LIBPATH
- On Linux® operating systems,
issue the following command:
- Change directory to the instance directory:
cd /home/db2inst1/sqllib/instance
- Run the db2iupgrade command:
./db2iupgrade
- To upgrade the non-root thin server instance on the remote
server, perform the following substeps:
- As a root user, mount the thin server instance on the remote server as a read-only file system. For more information, see Mounting a thin server instance (Linux and AIX).
- Log in to the remote server as a non-root instance owner. For example, db2inst3
- Set the library path in one of the following ways:
- On Linux operating systems,
issue the following command:
export LD_LIBRARY_PATH=/home/db2inst1/sqllib/lib/:/home/db2inst1/sqllib/instance/native/install:$LD_LIBRARY_PATH
- On AIX operating systems, issue the following
command:
where, /home/db2inst1/sqllib is the read-only copy of the Db2 installation path that is exported from the code server.LIBPATH=/home/db2inst1/sqllib/lib/:/home/db2inst1/sqllib/instance/native/install:$LIBPATH export LIBPATH
- On Linux operating systems,
issue the following command:
- Change directory to the instance directory:
cd /home/db2inst1/sqllib/instance
- Run the db2iupgrade command:
./db2iupgrade
- To upgrade the non-root thin server instance on the code server,
perform the following substeps: