If you are using Db2 for
z/OS, a database administrator must run scripts to create a set of tablespaces required for the
notification database. The scripts must be modified to replace the placeholder parameters with ones
that are appropriate for your environment.
Ensure that you use the naming conventions for Db2 for z/OS®. For example, all names of parameters must start with a
letter and the length must not exceed 6 characters. For more information, see the Db2
Knowledge Center.
Procedure
- Connect to the database as a user with privileges to create
and drop tablespaces and to allow execution of SQL statements.
-
To create the notification tablespaces, go to the
install_location/configuration/schemas/delivery/zosdb2
directory.
-
Make a backup copy of the NC_TABLESPACES.sql script file and save the file
to another location.
-
Open the original
NC_TABLESPACES.sql script file and use the following table to help you to
replace the placeholder parameters with ones appropriate for your environment.
Table 1. Tablespace parameter names and
descriptions for the Db2
notification database on z/OS
Parameter Name
|
Description
|
NCCOG
|
Specifies the name of the notification database.
|
DSN8G810
|
Specifies the name of the storage group.
|
BP32K
|
Specifies the name of the buffer pool.
|
Not all of the parameters listed are in the script, but might be added in the future.
-
Save and run the script.
For example,
db2 -tvf NC_TABLESPACES.sql
-
Open the NC_CREATE_DB2.sql script file and replace the NCCOG placeholder
parameter with the name of the notification database.
-
Save the script.
The Job and Scheduling Monitor services will automatically run the script. However, you may
choose to run it yourself.