DBReplicator API Reference


Installation using Zip file or Tarball

3.3. Installation using Zip file or Tarball

  1. Download the appropriate archive of the compiled dbreplicator package

  2. Extract the contents to an appropriate folder

  3. Make the following changes in 'java/setpath.bat'(windows) or 'scripts/dbreplicator'(linux)

3.3.1. Windows

  • Remove 'Rem' from 'SET JAVA_HOME=' and 'SET JDBC_CLASSPATH= "DBReplicator.jar"

  • set JAVA_HOME. JAVA_HOME is the directory where your JRE/J2SDK is installed.

  • Set JDBC_CLASSPATH to the directory where you have placed log4j.jar, DBReplicator.jar and your database JDBC Driver jar file.

  • In PubServer.bat/SubServer.bat, change <this host name> to the name of the machine on which you are running

Run PubServer.bat / SubServer.bat to start Publisher or Subscriber, respectively

3.3.2. Linux / Unix

  • Alter CLASSPATH to the directory where you have stored the DBReplicator, log4j and JDBC Jar files, or copy them to the indicated directory after install.

  • Issue 'make install' from the command line in the root directory of the source tree, after ensuring that 'java' is in your path. This will install:

    • jar files in /usr/local/share/dbreplicator/

    • dbreplicator wrapper script in /usr/local/bin

    • documentation and manuals in /usr/local/share/doc/dbreplicator

    • man pages in /usr/local/man5 and /usr/local/man8

    • startup scripts in /etc/init.d

Run dbreplicator {subconsole | pubconsole} to start the subscriber or publisher, respectively.


Powered by Drupal - Theme by Danger4k