This task is part of the main task for Configuring the Sync Server to
access data sources. When you have completed the steps, return to Configuring the Sync Server to access data sources.
Procedure
To configure the Sync Server using unsupported JDCB drivers:
- create a new row in the DB2 Everyplace control database (DSYCTLDB) and
provide the appropriate values.
- add the JDBC driver to your system's class path
To update the dsy.properties table in the DB2 Everyplace
control database:
- Exit the Mobile Devices Administration Center.
- Stop the Sync Server servlet.
- Create a new row in the DB2 Everyplace control database (table =
dsy.properties; colums = TYPE, NAME, and VALUE)
.
- For the TYPE column, enter DSYJdbcDriverList
- For the NAME column, enter the name of the driver (for example,
com.jnetdirect.jsql.JSQLDriver)
- For the VALUE column, enter the related to the driver you are using (for
example, SQLServer)
A utility is provided, the dsysetproperty.bat to query
and update the DB2 Everyplace properties table in the DB2 everyplace control
database.
- For Windows, you can find dsysetproperty.bat located in
%DSYINSTDIR%\Server\bin.
- For UNIX, dsysetproperty.sh is located in
$DSYINSTDIR/Server/bin.Using a text editor, open
DSYJdbcDriverList.properties file in
\Server\classes\com\ibm\mobileservices\ directory.
- Restart the Sync Server servlet to effect the changes.
To add the JDBC driver to your system's class path:
- Exit the Mobile Devices Administration Center if it is running.
- Stop the Sync Server servlet if it is running.
- Using a text editor, open \Server\bin\dsysetjavahome.bat
file file.
- Add the complete path of the JDBC driver to the SET JDBC_DRV_CP line of
the file. For example, to configure access to an Oracle source using
the JDBC client driver installed to
C:\Oracle\Ora81\jdbc\lib\, add the following path to the SET
JDBC_DRV_CP line of the dsysetjavahome.bat file:
SET JDBC_DRV_CP=C:\Oracle\Ora81\jdbc\lib\classes111.zip
You can specify multiple JDBC client drivers. For example:
SET JDBC_DRV_CP=C:\Oracle\Ora81\jdbc\lib\classes111.zip;E:\Informix\JDBC\lib
\ifxjdbc-g.jar
- Restart the Sync Server servlet to make the changes effective.
Tareas relacionadas
Conceptos relacionados
Consulta relacionada