Overriding the default character set

To override the default character set, as of ESD #12, all of the executable scripts (or batch files) in the Mirror Replication Agent bin directory refer to an environment variable named RA_JAVA_DFLT_CHARSET. You can set this environment variable to the character set that you want. However, the character set you specify must be the same character set that is configured on the primary database. For a list of valid Java character sets, go to the Supported Encodings on the Internationalization page under Documentation for the J2SE 1.4.2 JDKhttp://java.sun.com/j2se/corejava/intl/index.jsp.

For instances created after applying ESD #12, the Mirror Replication Agent instance RUN scripts also refer to the RA_JAVA_DFLT_CHARSET environment variable.

NoteIf you are using Replication Server to replicate a number of different character sets, you must configure it for UTF8.

To override the system default character set:

StepsTo override the system default character set for all instances

  1. Enter a character set value in the ra script:

    where charset is the Java-supported encoding. For example, ISO8859_1 or Cp1252 for ISO-1 (also known as Latin-1), and ISO8859_8 or Cp1255 for Hebrew.

  2. Uncomment the following lines of code:

StepsTo override the system default character set for a Mirror Activator Agent instance

  1. Enter a character set value in the RUN script:

NoteIn UNIX, spaces are not allowed on either side of the equal sign. For a list of valid Java character sets, refer to Supported Encodings on the Internationalization page under Documentation for the J2SE 1.4.2 JDKhttp://java.sun.com/j2se/corejava/intl/index.jsp.