Replication Guide and Reference
The IBM Replication administrator can use the commands in the following
sections to perform the following Apply for Windows NT tasks:
- Starting
- Scheduling
- Stopping
Before you start the Apply program, ensure that:
After you start the Apply program, it runs continuously until:
- You stop it in an orderly way.
- An unexpected error or failure occurs.
To start the Apply program using the NT services:
- Select Replication from the NT Services window.
- Click on the START push button. The Apply program starts according to the
ASCII file information you provided.
You can also start the replication service by typing STRTSERV on the NT
command line.
To start the Apply program using the DB2 command window:
- Ensure that you set the DB2 instance as shown:
SET DB2INSTANCE=db2_instance_name
- Enter the ASNAPPLY command and one or more options, if desired, from the
Windows NT or Windows 95 window.
>>-ASNAPPLY--Apl_qual---+-----------+-+-----------+-+----------+>
+-Ctrl_serv-+ +-LOADXit---+ +-INAMsg---+
+-NOLOADXit-+ +-NOINAMsg-+
>--+---------+-+----------+------------------------------------><
+-NOTRC---+ +-NOTIFY---+
+-TRCERR--+ +-NONOTIFY-+
+-TRCFLOW-+
Table 12 defines the optional positional parameters.
Table 12. ASNAPPLY Parameter Definitions for NT
- Parameter
- Definition
|
- Apl_qual
- Specifies the Apply qualifier that the Apply instance uses to identify the
subscriptions to be served. This positional parameter is required as the first
parameter.
|
- Ctrl_serv
- Specifies the name of the server where the replication control tables will
reside. If you do not specify this optional positional parameter, the default
is the default database or the value of DB2DBDFT for DB2 for Windows NT or Windows 95.
|
- LOADXit
- Specifies that the Apply program is to invoke ASNLOAD, an exit program
that can call an IBM or multivendor utility, to initialize a target table.
This keyword parameter is optional.
- NOLOADXit (default)
- Specifies that the Apply program will not invoke ASNLOAD.
|
- INAMsg (default)
- Specifies that the Apply program is to issue a message when it is
inactive.
- NOINAMsg
- Specifies that the Apply program will not issue this message. This keyword
parameter is optional.
|
- NOTRC (default)
- Specifies that the Apply program does not generate a trace.
- TRCERR
- Specifies that the Apply program generates a trace that contains only
error information. This keyword parameter is optional.
- TRCFLOW
- Specifies that the Apply program generates a trace that contains error and
execution flow information. This keyword parameter is optional.
|
- NOTIFY
- Specifies that the Apply program is to invoke ASNDONE, an exit program
that returns control to the user when the Apply program processing ends. This
keyword parameter is optional.
- NONOTIFY (default)
- Specifies that the Apply program will not invoke ASNDONE.
|
When Apply for Windows NT or Windows 95 executes, it generates two
files:
- <userid><database_instance_name><database_name>.LOG
This file is created in the directory where Apply for Windows NT or Windows
95 is invoked. It contains messages issued by Apply for Windows NT or Windows
95.
- <userid><database_instance_name><database_name>.SPL
This file is created in the directory where Apply for Windows NT or Windows
95 is invoked. It is an internal file used by Apply for Windows NT or Windows
95. Do not erase it.
Use the Windows NT or Windows 95 AT command to start the Apply program at a
specific time. For example, the following command string starts Apply for
Windows NT at 15:00.
c:\>AT 15:00 /interactive "c:\SQLLIB\BIN\db2cmd.exe
c:\SQLLIB\BIN\asnapply.exe qualid1 cntldb"
Note: | Before entering the AT command, the Schedule service should already be
started.
|
Use the following command to stop Apply for Windows NT or Windows 95.
>>-ASNASTOP--Apply_qualifier-----------------------------------><
You can alternatively use one of the following key combinations from the
window where the Apply program is running:
Use the ASNASTOP command or the key combination to stop the Apply
program in an orderly way and commit the log records that it processed up to
that point.
- To use the command, do the following from a different window than where
the Apply program is running:
- Set environment variable DB2INSTANCE to the value that was set when the
Apply program was started.
- Set environment variable DB2DBDFT to the source server specified when the
Apply program was started (or the DB2DBDFT value that was used when the Apply
program was started).
- Enter the command.
- To use one of the key combinations, press it from the same NT window in
which the Apply program is running.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]
[ DB2 List of Books |
Search the DB2 Books ]