company logo

Replication server clients

Referring to a replication server database requires a server connection( SERVER_URL and SERVER_PORT ). The connection may be defined as global option before first section or separately for each data source. As soon as a server connection has been defined, database resources are considered as server resources. In order to refer to local resources, this has to be defined explicitly:

DICTIONARY. CONNECTION =local

Data sources to be accessed via replication server have to request replication server services via the REPLICATION_SERVER option variable

REPLICATION_SERVER=YES

Typically, the ini-file contains a SYSTEM section to a local system database, a RESOURCE section do a local resource database and a DATABASE section with a local dictionary and a server database reference. The option name defined for the database ( DATABASE.DATABASE ) refers to an option variable defined in the FILE_CATALOG section of the server's ini-file.

SERVER_URL=my-server.com

SERVER_PORT=6123

[SYSTEM]

DICTIONARY=%ODABA_ROOT%\ode.sys

DICTIONARY.CONNECTION=local

[RESOURCES]

DICTIONARY=[

PATH=%ODABA_ROOT%\ode.sys

CONNECTION=local]

DATABASE=[

PATH=Sample.dev

CONNECTION=local]

ACCESS_MODE=Read

SHARE=YES

[DATABASE]

DICTIONARY=Sample.dev

DICTIONARY.CONNECTION=local

DATABASE=%Sample_DAT%

REPLICATION_SERVER=YES

ACCESS_MODE=Write