Administering Satellites Guide and Reference
The DB2 control server is installed as an optional
component of DB2 Universal Database on Windows NT and AIX during a custom
installation. Select the Control Server component to install the DB2
control server. For basic component selection and installation
information, refer to the appropriate DB2 Quick Beginnings
book.
The SATCTLDB database is not automatically created during the DB2
control server installation on AIX. You should create a modified
version of the satctldb.ddl file, and use it to create the SATCTLDB
database that will support your environment. The file
satctldb.ddl can be found in the sqllib\misc directory.
To setup the DB2 control server:
- Create the DB2CTLSV instance.
- Run the satctldb.ddl file to create the SATCTLDB database.
To create the DB2CTLSV instance:
- Log on as user with root authority.
- Change to the directory where the DB2 CD-ROM is mounted by entering the
following command:
cd /cdrom
where /cdrom represents the mount point of the CD-ROM
drive.
- Change to the /cdrom/db2/aix directory where the install image
for the DB2 product that you want to install is located.
- Enter the ./db2setup command to start the DB2
installation program. The DB2 Installer window opens.
- Use the Tab key to select the Create option.
The Create DB2 Services window opens.
- Select Create a DB2 Instance. The DB2
Instance window opens.
- Rename the user name field with db2ctlsv. Use the
default User ID and password. Change the home directory to
/home/db2ctlsv to match the instance. Select
OK. The Fenced User windows opens.
- Select OK to accept the defaults. The Create DB2
Services window opens.
- Select OK. The Summary Report window
opens.
- Select Continue.
To create the SATCTLDB database, perform the following
steps:
- Log in as db2ctlsv.
- Ensure that the database server has been started; the
db2start command has been issued.
- If you do not want the default SATCTLDB database created, copy and edit
the satctldb.ddl file to satisfy your requirements.
For more information on customizing the DDL file, refer to the following
URL:
www.software.ibm.com/data/db2/library/satellite.
- Enter the following command, from the sqllib/misc
directory:
db2 -tf prdctldb.ddl -z $HOME/prdctldb.log
where prdctldb.ddl represents the modified version of
the DDL file and is located in the sqllib/misc directory.
- Check the prdctldb.log file for errors that may have
been encountered during the creation of the SATCTLDB database.
For large deployments where thousands of DB2 satellites
will be managed by the DB2 control server, you should use your own design,
rather than the default, to allow more control over the SATCTLDB
database's disk usage and performance. If you want to use your own
design, you must first drop the default database and re-create the SATCTLDB
database based on your customized DDL file.
To customize your design, perform the following steps:
- Make a copy of the satctldb.ddl file and customize it to meet your
needs. For the purposes of this example, prdctldb.ddl is used as
the filename for the customized DDL file. For more information on
customizing the DDL file, refer to the following URL:
www.software.ibm.com/data/db2/library/satellite.
- Open a command window by clicking on Start, then selecting
Programs -> DB2 for Windows NT -> Command
Window.
- In the Command Window, ensure that the DB2INSTANCE environment variable is
set to DB2CTLSV. To check the DB2INSTANCE environment variable enter
the set db2instance command. The value returned must be
DB2INSTANCE=DB2CTLSV. If the environment variable is not set
to DB2CTLSV, enter the SET DB2INSTANCE=DB2CTLSV command
to change its setting.
- Drop the default SATCTLDB database that was created during the
installation by entering the following command:
DROP DATABASE SATCTLDB
- Change to the directory where you have stored your customized
prdctldb.ddl file.
- Enter the following command:
db2 -tf prdctldb.ddl -z prdctldb.log
where prdctldb.ddl represents your customized DDL
file.
Check the prdctldb.log file for errors that may have been
encountered during the creation of the SATCTLDB database.
When the default or customized version of SATCTLDB
database is created, it is not backed up, nor is it enabled for forward
recovery. For more information on defining a recovery strategy for this
critical database, see the Recovering the DB2 Control Server and Satellite Control Database.
You can now proceed to create groups, satellites, and batches using the
Satellite Administration Center.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]
[ Top of Page ]