Creating a DB2 database for Windows, Linux, AIX, and Solaris 
|
Create the database tables and schema needed by Sametime® Gateway. These steps assume that you already have installed DB2® on the same machine on which you are now creating the database. If the machine on which you installed DB2 is named STGW, follow the steps in this procedure to change the name of the database in the database creation script. The default database name, STGW, cannot be the machine name. |
Create the database tables and schema needed by Sametime® Gateway. These steps assume that you already have installed DB2® on the same machine on which you are now creating the database. If the machine on which you installed DB2 is named STGW, follow the steps in this procedure to change the name of the database in the database creation script. The default database name, STGW, cannot be the machine name.
Before you begin
The Sametime Gateway installation package includes a database creation script, which creates the database. Follow the steps below to unpack the installation compressed file and extract the contents before you run the script.
Expected state: DB2 is installed and running.
Procedure
- From the installation media, copy the Sametime Gateway installation image for your operating system to a temporary directory on the DB2 server node:
- Open a command window and navigate to the temporary directory.
- Unzip the installation image to the /TMP/SametimeGateway folder.
- Log in to the operating system using the DB2 administrator account created when you installed DB2.
- On the node where you will be creating the database Sametime Gateway, open a command window and type one of the following commands:
- Windows:
- Linux or AIX:
- Note the period (.) and space before /db2adminHomeDir/sqllib/db2profile.
- Solaris:
- If the host name on which you installed DB2 is named STGW, or if you need to change the database name to something other than STGW, or if your database administrator wishes to specify tablespace options, complete the following sub steps, otherwise skip this step.
- Using a text editor, open createDb.sql.
- Replace every instance of stGW with a new database name that is eight characters or less.
- If desired, you may edit the tablespace file locations for your specific environment to be somewhere other than the default location.
- Save the file.
- In the DB2 window, navigate to this directory:
- Type the following command to create the database:
- Stop and then restart the database using the following commands:
- db2stop
- db2start
Parent topic: Installing a Sametime Gateway server
Next topic: Installing Sametime Gateway
|
|
|
|
| Version 1 |
November 23, 2011 |
2:53:13 AM |
by IBM  |
|
|