The tools catalog database contains task information created by the Task Center and Control Center. These tasks are run by the DB2® administration server's scheduler. The scheduler and the tools catalog database always work together; neither can function without the other.
The goal is to set up and configure the tools catalog database and the DAS scheduler.
The DB2 administration server Configuration process tells the Scheduler the location of the tools catalog database, and whether or not the Scheduler should be enabled. By default, when a tools catalog database is created, its corresponding DAS configuration is updated. That is, the Scheduler is configured and ready to use the new tools catalog; there is no need to restart the DAS.
The tools catalog database can be created on a server that is local or remote from the Scheduler system. If the tools catalog is created on a remote server, it must be cataloged at the scheduler tools catalog database instance (toolscat_inst). In addition, the scheduler user ID must be set by using the command db2admin setschedid, so that the scheduler can connect and authenticate with the remote catalog. The full syntax for the db2admin command is found in the Command Reference.
The DAS scheduler requires a Java virtual computer (JVM) to access the tools catalog information. The JVM information is specified using the jdk_path DB2 administration server configuration parameter of the DAS.
The jdk_64_path configuration parameter is required if you are creating a tools catalog against a 64-bit instance on one of the platforms that supports both 32- and 64-bit instances (AIX®, Sun, and HP-UX).
The Control Center and Task Center access the tools catalog database directly from the client. The tools catalog database therefore needs to be cataloged at the client before the Control Center can make use of it. The Control Center provides the means to automatically retrieve information about the tools catalog database and create the necessary directory entries in the local node directory and database directory. The only communication protocol supported for this automatic cataloging is TCP/IP.
One of the DAS configuration parameters is called exec_exp_task. This parameter specifies whether or not the scheduler executes the tasks that have been scheduled in the past, but have not yet been run. The scheduler only detects expired tasks when it starts up.
For example, if you have a job scheduled to run every Saturday, and the scheduler is turned off on Friday and then restarted on Monday, the job scheduled for Saturday is now a job that is scheduled in the past. If exec_exp_task is set to Yes, your Saturday job runs when the scheduler is restarted.
The other DAS configuration parameters required by the scheduler consist of identifying the tools catalog database and the Simple Mail Transfer Protocol (SMTP) server to be used for notification.
db2set -i DB2 DB2COMM=TCPIP db2 update dbm cfg using svcename db2cDB2 db2stop db2start
db2cDB2 50000/tcp #connection port for the DB2 instance DB2
db2 update admin cfg using smtp_server Host2This might be done during the installation process. If it is done later, it needs to be manually specified to the DAS using a DB2 Version 8 CLP command as shown above.
db2 update admin cfg using jdk_path c:\SQLLIB\java\jdkThis assumes that the DB2 database manager is installed under C:\SQLLIB.
db2admin stop db2admin setid user_account_ID password db2admin start
db2 catalog admin tcpip node Host1 remote Host1 system Host1 ostype NT
db2 catalog tcpip node unique-node-name remote Host1 server 50000 remote_instance DB2 system Host1 ostype NT db2 catalog db CCMD as unique-db-alias at node unique-node-nameIf the automatic cataloging is unsuccessful, the database can be cataloged using the Configuration Assistant or the Control Center. The database will then be recognized and used by the Task Center.
db2set -i DB2 DB2COMM=TCPIP db2 update dbm cfg using svcename xdb2inst db2stop db2start
xdb2inst1 50000/tcp #connection port for the DB2 instance db2inst1
db2 update admin cfg using smtp_server Host2This might be done during the installation process. If it is done later, it needs to be manually specified to the DAS using a DB2 Version 8 CLP command as shown above.
db2 update admin cfg using jdk_path /sqllib/java/jdk
db2 catalog admin tcpip node Host1 remote Host1 system Host1 ostype AIX
db2 catalog tcpip node unique-node-name remote Host1 server 50000 remote_instance DB2 system Host1 ostype AIX db2 catalog db CCMD as unique-db-alias at node unique-node-nameIf the automatic cataloging is unsuccessful, the database can be cataloged using the Configuration Assistant or the Control Center. The database will then be recognized and used by the Task Center.