<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://petersap.nl/SybaseWiki/index.php?action=history&amp;feed=atom&amp;title=Installation_guidelines_RepServer_15.7.1</id>
		<title>Installation guidelines RepServer 15.7.1 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://petersap.nl/SybaseWiki/index.php?action=history&amp;feed=atom&amp;title=Installation_guidelines_RepServer_15.7.1"/>
		<link rel="alternate" type="text/html" href="http://petersap.nl/SybaseWiki/index.php?title=Installation_guidelines_RepServer_15.7.1&amp;action=history"/>
		<updated>2026-04-04T20:54:09Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>http://petersap.nl/SybaseWiki/index.php?title=Installation_guidelines_RepServer_15.7.1&amp;diff=1972&amp;oldid=prev</id>
		<title>Psap at 11:45, 8 November 2013</title>
		<link rel="alternate" type="text/html" href="http://petersap.nl/SybaseWiki/index.php?title=Installation_guidelines_RepServer_15.7.1&amp;diff=1972&amp;oldid=prev"/>
				<updated>2013-11-08T11:45:18Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 11:45, 8 November 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 235:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 235:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:RepServer]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:RepServer]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[category:Installation Guidelines]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key website-mw_:diff:version:1.11a:oldid:1963:newid:1972 --&gt;
&lt;/table&gt;</summary>
		<author><name>Psap</name></author>	</entry>

	<entry>
		<id>http://petersap.nl/SybaseWiki/index.php?title=Installation_guidelines_RepServer_15.7.1&amp;diff=1963&amp;oldid=prev</id>
		<title>Psap: Created page with 'This page describes how to install and configure a Sybase Replication Server version 15.7.1. You will also learn how to connect to the server, stop and restart it.  ==Get the sof…'</title>
		<link rel="alternate" type="text/html" href="http://petersap.nl/SybaseWiki/index.php?title=Installation_guidelines_RepServer_15.7.1&amp;diff=1963&amp;oldid=prev"/>
				<updated>2013-04-29T10:03:39Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;This page describes how to install and configure a Sybase Replication Server version 15.7.1. You will also learn how to connect to the server, stop and restart it.  ==Get the sof…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This page describes how to install and configure a Sybase Replication Server version 15.7.1. You will also learn how to connect to the server, stop and restart it.&lt;br /&gt;
&lt;br /&gt;
==Get the software==&lt;br /&gt;
First download the software for Replication Server.&lt;br /&gt;
&lt;br /&gt;
For a licensed version you need to go here: http://sybase.subscribenet.com (account required) or to the eShop at sybase.com: http://eshop.sybase.com/eshop/buy?id=22574&lt;br /&gt;
Downloads are also available at the Sybase download center at http://downloads.sybase.com/swd/base.do?client=support. Once registered you can download the latest EBF (patch) for the desired platform. An EBF can sometimes also be used for a full installation. &lt;br /&gt;
&lt;br /&gt;
==Storage requirements==&lt;br /&gt;
Make sure that the filesystem for the Sybase software is big enough. A full installation needs approx. 570 Mb so 2 Gb should give you enough room to handle upgrades too. In this case we install the software in /opt/sybase/rep1571.&lt;br /&gt;
&lt;br /&gt;
Replication server partitions (stable devices) will be stored /var/sybase. The mininum size of the initial partition is 20 Mb.&lt;br /&gt;
Additional partitions that may be needed to queue up data must be taken into account as well. The requirements vary per environment and usage. When you run out of space in partitions you can always add more.&lt;br /&gt;
&lt;br /&gt;
The partitions can be created on raw devices or on filesystem files (opened with Direct I/O).&lt;br /&gt;
&lt;br /&gt;
==Memory requirements==&lt;br /&gt;
When running replication server on a virtualized environment, you need 300 Mb of RAM as a bare minimum. Increase memory when needed.&lt;br /&gt;
==Prepare the operating system==&lt;br /&gt;
&lt;br /&gt;
Become root and add a group &amp;quot;sybase&amp;quot; and a user &amp;quot;sybase&amp;quot; to the system. Also create the needed directories.&lt;br /&gt;
Strictly spoken, the usage of the username and groupname called &amp;quot;sybase&amp;quot; is not needed, any username is fine.&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /opt/sybase&lt;br /&gt;
 mkdir -p /var/sybase&lt;br /&gt;
 groupadd sybase&lt;br /&gt;
 useradd -g sybase -d /opt/sybase sybase&lt;br /&gt;
 passwd sybase&lt;br /&gt;
 chown sybase:sybase /opt/sybase&lt;br /&gt;
 chown sybase:sybase /var/sybase&lt;br /&gt;
&lt;br /&gt;
==Installation of the software==&lt;br /&gt;
Now, switch to the newly created user:&lt;br /&gt;
 su - sybase&lt;br /&gt;
You should now be in the directory /opt/sybase. Make a work directory and put the downloaded Sybase software in it.&lt;br /&gt;
 mkdir install&lt;br /&gt;
 cd install&lt;br /&gt;
 &amp;lt;put the software in this directory&amp;gt;&lt;br /&gt;
 tar -xf &amp;lt;software-distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Start the installation (when using an EBF download as installation file you may need to go into a subdirectory)&lt;br /&gt;
&lt;br /&gt;
 ./setup.bin&lt;br /&gt;
&lt;br /&gt;
Use /opt/sybase/rep1571 as the destination directory, do a full installation, and continue installation without a license key, no e-mail alerts. Do not start the sample replication server as we will do a manual configuration.&lt;br /&gt;
&lt;br /&gt;
When the installation has finished successful you can safely remove the work directory and the installation package.&lt;br /&gt;
&lt;br /&gt;
===Errors when running setup.bin===&lt;br /&gt;
====java not found====&lt;br /&gt;
When you get an error like this&lt;br /&gt;
&lt;br /&gt;
 exec: 2508: /tmp/install.dir.527/Linux/resource/jre/bin/java: not found&lt;br /&gt;
&lt;br /&gt;
you need to install software to run 32 bit binaries on a 64 bit machine. Become root again and install the required packages.&lt;br /&gt;
&lt;br /&gt;
On ubuntu:&lt;br /&gt;
&lt;br /&gt;
 apt-get install ia32-libs&lt;br /&gt;
&lt;br /&gt;
On Redhat&lt;br /&gt;
&lt;br /&gt;
 yum install glibc-devel.i386&lt;br /&gt;
&lt;br /&gt;
====Fontconfig error====&lt;br /&gt;
Ignore the error &amp;quot;Fontconfig error: Cannot load default config file&amp;quot; if you get it.&lt;br /&gt;
&lt;br /&gt;
==Setup your environment==&lt;br /&gt;
In /opt/sybase/rep1571 you will find files like SYBASE.csh, SYBASE.sh and SYBASE.env. Depending on the type of shell you use you need to source in one of these. For instance, when your default shell is bash you should do this:&lt;br /&gt;
&lt;br /&gt;
 . /opt/sybase/rep1571/SYBASE.sh&lt;br /&gt;
&lt;br /&gt;
By doing:&lt;br /&gt;
&lt;br /&gt;
 echo $SYBASE&lt;br /&gt;
&lt;br /&gt;
it should return /opt/sybase/rep1571.&lt;br /&gt;
Is is fairly common to activate the SYBASE.sh script (or similar one) from your login script. &lt;br /&gt;
&lt;br /&gt;
When you have generated a licence file through http://sybase.subscribenet.com install it in the directory $SYBASE/SYSAM-2_0/licenses&lt;br /&gt;
&lt;br /&gt;
You can run without a license for 30 days (grace period).&lt;br /&gt;
&lt;br /&gt;
==Create the Replication Server==&lt;br /&gt;
A Replication Server needs an system database (RSSD) to store its definitions. You can choose between a Sybase ASE (RSSD) or an embedded SQL Anywhere database (ERSSD).&lt;br /&gt;
The choice between them depends on licensing costs, availabity of hardware or personal preference. After configuring replication server with either RSSD or ERSSD you cannot switch between them.&lt;br /&gt;
&lt;br /&gt;
When you select an ERSSD you do not need to manage it, it is all handled automatically. When choosing an RSSD (Sybase ASE) there is an extra layer of software that you need to install, manage and probably pay for as well. &lt;br /&gt;
&lt;br /&gt;
In this document an ERSSD server will be used for the Replication Server System Database.&lt;br /&gt;
&lt;br /&gt;
Create the directories for these servers:&lt;br /&gt;
 cd /opt/sybase&lt;br /&gt;
 mkdir admin&lt;br /&gt;
 mkdir admin/REP1&lt;br /&gt;
 mkdir admin/REP1_ERSSD&lt;br /&gt;
 mkdir /var/sybase/REP1&lt;br /&gt;
 mkdir -p /var/sybase/REP1_ERSSD/database&lt;br /&gt;
 mkdir /var/sybase/REP1_ERSSD/translog&lt;br /&gt;
 mkdir /var/sybase/REP1_ERSSD/backup&lt;br /&gt;
&lt;br /&gt;
Now go to the &amp;quot;/opt/sybase/admin/REP1&amp;quot; directory and create a resource file. Use the following template as an example, call it REP1.rs. You can also use the Sybase supplied resource file, it's $SYBASE/$SYBASE_REP/init/rs/install.rs&lt;br /&gt;
&lt;br /&gt;
 sybinit.product: rs&lt;br /&gt;
 rs.rs_operation: rs_install&lt;br /&gt;
 rs.rs_idserver_name: REP1&lt;br /&gt;
 rs.rs_id_server_is_rs_server: yes&lt;br /&gt;
 # Password for rs_REP1_id_user (RS to RS connectivity)&lt;br /&gt;
 rs.rs_idserver_pass: secret123&lt;br /&gt;
 rs.rs_name: REP1&lt;br /&gt;
 # Password for &amp;quot;sa&amp;quot; user&lt;br /&gt;
 rs.rs_rs_sa_pass: secret123&lt;br /&gt;
 rs.rs_needs_repagent: yes&lt;br /&gt;
 rs.rs_rs_errorlog: /opt/sybase/admin/REP1/REP1.errorlog&lt;br /&gt;
 rs.rs_rs_cfg_file: /opt/sybase/admin/REP1/REP1.cfg&lt;br /&gt;
 rs.rs_rssd_embedded: yes&lt;br /&gt;
 rs.rs_erssd_name: REP1_ERSSD&lt;br /&gt;
 rs.rs_erssd_database_dir: /var/sybase/REP1_ERSSD/database&lt;br /&gt;
 rs.rs_erssd_translog_dir: /var/sybase/REP1_ERSSD/translog&lt;br /&gt;
 rs.rs_erssd_backup_dir: /var/sybase/REP1_ERSSD/backup&lt;br /&gt;
 rs.rs_erssd_errorlog_dir: /opt/sybase/admin/REP1_ERSSD&lt;br /&gt;
 # Password for REP1_RSSD_prim&lt;br /&gt;
 rs.rs_rssd_prim_pass: secret123&lt;br /&gt;
 # Password for REP1_RSSD_maint&lt;br /&gt;
 rs.rs_rssd_maint_pass: secret123&lt;br /&gt;
 rs.rs_diskp_name: /var/sybase/REP1/part1.dat&lt;br /&gt;
 rs.rs_diskp_lname: part1&lt;br /&gt;
 # Password for REP1_rsi&lt;br /&gt;
 rs.rs_rs_pass: secret123&lt;br /&gt;
 # Password for REP1_ltm&lt;br /&gt;
 rs.rs_ltm_rs_pass: secret123&lt;br /&gt;
 rs.rs_id_server_network_protocol_list: tcp&lt;br /&gt;
 rs.rs_idserver_hostname: &amp;lt;put your hostname here&amp;gt;&lt;br /&gt;
 rs.rs_idserver_port: 5000&lt;br /&gt;
 rs.rs_rs_port: 5000&lt;br /&gt;
&lt;br /&gt;
When the partition as defined by &amp;quot;rs.rs_diskp_name&amp;quot; is on filesystem, you need to create the file with the &amp;quot;touch&amp;quot; command.&lt;br /&gt;
&lt;br /&gt;
 touch /var/sybase/REP1/part1.dat&lt;br /&gt;
&lt;br /&gt;
Add the entries for repserver and ERSSD to $SYBASE/interfaces&lt;br /&gt;
&lt;br /&gt;
 REP1&lt;br /&gt;
 	master tcp ether &amp;lt;put your hostname here&amp;gt; 5000&lt;br /&gt;
 	query tcp ether &amp;lt;put your hostname here&amp;gt; 5000&lt;br /&gt;
 &lt;br /&gt;
 REP1_ERSSD&lt;br /&gt;
 	query tcp ether &amp;lt;put your hostname here&amp;gt; 5001&lt;br /&gt;
&lt;br /&gt;
Now build the server with the command:&lt;br /&gt;
 $SYBASE/$SYBASE_REP/install/rs_init -r REP1.rs&lt;br /&gt;
&lt;br /&gt;
After a successful creation you can connect to the replication server using the command line tool isql. The login “sa&amp;quot; has been created, with the password that was specified in REP1.rs file. At the prompt of isql you can type a command or type exit to exit.&lt;br /&gt;
 isql -Usa -Psecret123 -SREP1&lt;br /&gt;
 admin who&lt;br /&gt;
 go&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
To connect to the ERSSD server cou can use the REP1_RSSD_prim login.&lt;br /&gt;
 isql -UREP1_RSSD_prim -Psecret123 -SREP1_ERSSD&lt;br /&gt;
 sa_conn_info&lt;br /&gt;
 go&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
==Basic Replication server tasks==&lt;br /&gt;
&lt;br /&gt;
===To shutdown Replication Server===&lt;br /&gt;
 isql -Usa -Psecret123 -SREP1&lt;br /&gt;
 shutdown&lt;br /&gt;
 go&lt;br /&gt;
&lt;br /&gt;
===To start Replication Server===&lt;br /&gt;
 cd /opt/sybase/admin/REP1&lt;br /&gt;
 nohup ./RUN_REP1 &amp;amp;&lt;br /&gt;
&lt;br /&gt;
===Check status===&lt;br /&gt;
When replication server has been started you can check if the status is ok by running the &amp;quot;admin health&amp;quot; command. It should return &amp;quot;HEALTHY&amp;quot;. When the status is not healthy check the errorlog file (at /opt/sybase/admin/REP1/REP1.errorlog) for the cause.&lt;br /&gt;
Please note that immediately after a start of replication server it may take a couple of minutes before all processes are up and running.&lt;br /&gt;
&lt;br /&gt;
 isql -Usa -Psecret123 -SREP1&lt;br /&gt;
 admin health&lt;br /&gt;
 go&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
==Recommended settings==&lt;br /&gt;
The following settings are recommended to improve stability and performance. To change a setting, use isql and log on with the sa account&lt;br /&gt;
 isql -Usa -Psecret123 -SREP1&lt;br /&gt;
&lt;br /&gt;
===Enable direct i/o===&lt;br /&gt;
Set sqm_write_flush to dio to enable direct I/O on the partitions. A reboot is needed to activate the setting.&lt;br /&gt;
&lt;br /&gt;
 configure replication server set sqm_write_flush to 'dio'&lt;br /&gt;
 go&lt;br /&gt;
 shutdown&lt;br /&gt;
 go&lt;br /&gt;
&lt;br /&gt;
===sqt_max_cache_size===&lt;br /&gt;
Increase sqt_max_cache_size when the following message is shown the errorlog:&lt;br /&gt;
&lt;br /&gt;
 WARNING #24068 SQT(105:1 DIST PRIM.tpcc) - t/sqtint.c(1333)&lt;br /&gt;
 SQT cache size is too low to load more than one transaction into the cache.&lt;br /&gt;
&lt;br /&gt;
As a rule of thumb you can double the value (default is 1048576 for 32 bit, 20971520 for 64 bit) but don't overdo it. Retrieve the current value with&lt;br /&gt;
&lt;br /&gt;
 admin config,sqt_max_cache_size&lt;br /&gt;
 go&lt;br /&gt;
&lt;br /&gt;
 configure replication server set sqt_max_cache_size to '41943040'&lt;br /&gt;
 go&lt;br /&gt;
&lt;br /&gt;
Increasing the value may require that you increase the allocated amount of memory for replication server (setting memory_limit).&lt;br /&gt;
===sts_cachesize===&lt;br /&gt;
Increase the value for sts_cachesize when this message is printed in the errorlog:&lt;br /&gt;
&lt;br /&gt;
 I. 2013/01/12 15:39:53. A cached row for system table ‘rs_columns’ was swapped out of the cache in order to accomodate another row.&lt;br /&gt;
&lt;br /&gt;
 configure replication server set sts_cachesize to '2000'&lt;br /&gt;
 go&lt;br /&gt;
&lt;br /&gt;
You can retrieve the current value with&lt;br /&gt;
&lt;br /&gt;
 admin config,sts_cachesize&lt;br /&gt;
 go&lt;br /&gt;
&lt;br /&gt;
==All done==&lt;br /&gt;
Happy Sybase-ing with your new server!!&lt;br /&gt;
&lt;br /&gt;
Further reading:&lt;br /&gt;
&lt;br /&gt;
Installation guide for Unix http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc32237.1571/doc/html/title.html&lt;br /&gt;
&lt;br /&gt;
Getting started http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc10114.1571/doc/html/title.html&lt;br /&gt;
&lt;br /&gt;
Reference manual http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc32410.1571/doc/html/title.html&lt;br /&gt;
&lt;br /&gt;
[[Category:RepServer]]&lt;/div&gt;</summary>
		<author><name>Psap</name></author>	</entry>

	</feed>