Replication Guide and Reference
This section explains how to get your laptop up and running for mobile
replication. This section discusses:
- Software and hardware requirements
- Communication program requirements
- Configuring the mobile client
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 hardware
- Adaptors
- Modems
- Phone lines
- Communication protocols
- Communication software
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.
The following section describes how to specify ASNDIAL and ASNHANGUP
environment variables in OS/2.
To set the ASNDIAL and ASNHANGUP environment variables:
- Declare the environment variables in your config.sys file. For
example:
- SET ASNDIAL = C:\sqllib\bin\mydial.exe
- SET ASNHANGUP = C:\sqllib\bin\myhangup.exe
- 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.
- Reboot your system to have these settings take effect.
The following section describes how to specify ASNDIAL and ASNHANGUP
environment variables in Windows NT.
To set the ASNDIAL and ASNHANGUP environment variables:
- From the Control Panel window, double click on the
System icon. The System Properties notebook opens.
- Select the Environment tab.
- Set the ASNDIAL variable:
- In the Value field, type the path for your user-defined connect
program. For example:
C:\sqllib\bin\mydial.exe
- Click on Set.
- Set the ASNHANGUP variable:
- In the Value field, type the path for your user-defined
disconnect program. For example:
C:\sqllib\bin\myhangup.exe
- Click on Set.
- Click on OK. The environment variables are set.
The following section describes how to specify ASNDIAL and ASNHANGUP
environment variables in Windows NT.
To set the ASNDIAL and ASNHANGUP environment variables:
- From the Control Panel window, double click on the
System icon. The System Properties notebook opens.
- Select the Environment tab.
- Set the ASNDIAL variable:
- In the Value field, type the path for your user-defined connect
program. For example:
C:\sqllib\bin\mydial.exe
- Click on Set.
- Set the ASNHANGUP variable:
- In the Value field, type the path for your user-defined
disconnect program. For example:
C:\sqllib\bin\myhangup.exe
- Click on Set.
- 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 ]