Installing Sybase SQL server and Replication server on one NT box


This page contains information on how I got both Sybase SQL server and Sybase Replication server working as a service on one NT box. This turned out to be more complicated than the same task on a Unix box... I wanted to install them under these conditions: I installed Sybase Adaptive Server Enterprise 11.5 and Replication server 11.03 on Windows NT 4.0 SP 3.

The installation takes these steps:


Create NT Accounts

Start by creating two (local) accounts on your NT server (start menu -> Programs -> Administrative Tools -> User Manager). I called them sybase_sql and sybase_rep. Make both accounts member of the local Administrators group. This is at least needed during installation, because they will install the services. (Actually, it is needed later too, because the SQL server will start up the XP server, and only administrators are allowed to start services). Think up good passwords (don't delay that until later, do it now) and write them down . Unselect the "User must change password at next logon" and select "Password never expires".

Install SQL server

Log on in NT using the sybase_sql account and install your server as usual. Choose a path that is meaningfull for the SQL server. (I used c:\etc\srvapp\ASE ). This is a pretty straigtforward process, and most readers will have done this before (Replication server is not normally installed by unexperienced DBA's...)

Modify SQL server environment

Modify a few settings: By now, you should be able to start your SQL server as a service. Test this.

Install Replication server

Log on in NT as sybase_rep. Install the Replication server in a normal way (Note: your Sybase server has to be running). The installation program probably defaults to the same directory where the SQL server is installed. Choose another directory! You might have to insert your Sybase SQL server in the SQL.INI file. (they use different interfaces files.) (I choose c:\etc\srvapp\repserver ). The installation program wants you to install a RSSD (Replication Server System Database) on your SQL server. You can do this in advance. Don't forget to write down all userids and passwords!

Modify Replication server environment

Modify a few settings:

Make the services start up in the right order

The Replcation server cannot start when the SQL server is not up yet, so we have to tell Windows NT to let it wait:

Start regedt32.exe (using Start -> RUN. There is no icon for it). Open the window HKEY_LOCAL_Machine On Local Machine . Go to the following path: SYSTEM -> CurrentControlSet -> Services and browse down until you are at SYBREP_APOLLO_RS (assuming your Replication server is named APOLLO_RS). Select this service and choose "Add Value" from the "Edit" menu. Add a value of type REG_MULTI_SZ named DependOnService . Fill in the name of the service for the SQL server (it is near the service of the replication service). It will be something like SYBSQL_APOLLO


Let both servers use the same SQL.INI file

You might want to let the replication server use the same interfaces file as the SQL server. First, edit the SQL.INI file in the SQL server directory so it contains the entry for the replication server. Then edit both the startup files of the replication server:
go to main homepage of Reinoud
Mail your comments to reinoud@xs4all.nl