IBM Books

Replication Guide and Reference


Operating Apply for Windows NT and Windows 95

The IBM Replication administrator can use the commands in the following sections to perform the following Apply for Windows NT tasks:

Before You Start the Apply Program

Before you start the Apply program, ensure that:

Starting Apply for Windows NT and Windows 95

After you start the Apply program, it runs continuously until:

To start the Apply program using the NT services:

  1. Select Replication from the NT Services window.

  2. 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:

  1. Ensure that you set the DB2 instance as shown:
    SET DB2INSTANCE=db2_instance_name
    

  2. 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:

Scheduling Apply for Windows NT and Windows 95

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.

Stopping Apply for Windows NT and Windows 95

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:

Purpose

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.

Usage


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]