IBM Books

Replication Guide and Reference


Planning Mobile Replication

This section explains how to get your laptop up and running for mobile replication. This section discusses:

Software and Hardware Requirements

In addition to the non-mobile IBM Replication hardware and software, mobile replication also requires communication hardware and software to transfer data. This section lists probable hardware and software needs. This list is not exhaustive, because it would be impossible to list all the hardware and software requirements for the unlimited number of possible configurations.

Communication Program Requirements

To ease the burden of manually dialing up and disconnecting your communications lines, your database administrators can specify a program to dial and disconnect your communications lines for you. Although IBM Mobile Replication does not provide any connecting or disconnecting communication programs, it does provide a means to automate your user-developed connection/disconnection communication programs via two environment variables: ASNDIAL and ASNHANGUP.

ASNDIAL
Specifies the dial-up user exit program. When specified, the mobile replication component calls the dial-up program every time a physical connection is needed. IBM Mobile Replication does not pass any parameters and does not expect any return code from this exit program.

ASNHANGUP
Specifies the disconnect user exit program. When specified, the mobile replication component calls the disconnect program as soon as the line is no longer needed. The only exception is when the disconnect program has been disabled by the hold-line (-H) ASNCOPY invocation option. You can disable the automatic disconnect function for a variety of reasons. For example, you might want to issue DB2 commands against the source server after ASNCOPY is finished, or you might need a repeated copy to successfully copy a large answer set. IBM Mobile Replication does not pass any parameter and does not expect any return code from this exit program.

Specifying ASNDIAL and ASNHANGUP Environment Variables in OS/2

The following section describes how to specify ASNDIAL and ASNHANGUP environment variables in OS/2.

To set the ASNDIAL and ASNHANGUP environment variables:

  1. Declare the environment variables in your config.sys file. For example:

    mydial.exe

    The program you use to connect your mobile client to the source server.

    myhangup.exe

    The program you use to disconnect your mobile client from the source server.

  2. Reboot your system to have these settings take effect.

Specifying ASNDIAL and ASNHANGUP Environment Variables in Windows NT

The following section describes how to specify ASNDIAL and ASNHANGUP environment variables in Windows NT.

To set the ASNDIAL and ASNHANGUP environment variables:

  1. From the Control Panel window, double click on the System icon. The System Properties notebook opens.

  2. Select the Environment tab.

  3. Set the ASNDIAL variable:

    1. In the Value field, type the path for your user-defined connect program. For example:
      C:\sqllib\bin\mydial.exe
      

    2. Click on Set.

  4. Set the ASNHANGUP variable:

    1. In the Value field, type the path for your user-defined disconnect program. For example:
      C:\sqllib\bin\myhangup.exe
      

    2. Click on Set.

  5. Click on OK. The environment variables are set.

Specifying ASNDIAL and ASNHANGUP Environment Variables in Windows 95

The following section describes how to specify ASNDIAL and ASNHANGUP environment variables in Windows NT.

To set the ASNDIAL and ASNHANGUP environment variables:

  1. From the Control Panel window, double click on the System icon. The System Properties notebook opens.

  2. Select the Environment tab.

  3. Set the ASNDIAL variable:

    1. In the Value field, type the path for your user-defined connect program. For example:
      C:\sqllib\bin\mydial.exe
      

    2. Click on Set.

  4. Set the ASNHANGUP variable:

    1. In the Value field, type the path for your user-defined disconnect program. For example:
      C:\sqllib\bin\myhangup.exe
      

    2. Click on Set.

  5. Click on OK. The environment variables are set.


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

[ DB2 List of Books | Search the DB2 Books ]