After you configure the DirectConnect server, Sybase recommends that you add and start DirectConnect as a Windows service. For information on configuring, starting, and stopping the DirectConnect server, see the Sybase Enterprise Connect Data Access documentation available on the SyBooks CD for Sybase Replication, or the Sybase Product Manual Web site.
To add DirectConnect as a Windows service, invoke the ServiceWrapper.exe that is available in the ServiceWrapper directory. This is available on the DI Suite installation media or in the directory where you have extracted the Sybase Data Integration Suite 1.1 Core download file. For more information on the Sybase Data Integration Suite 1.1 Core download file, see “Installing from the SPDC”.
Copy ServiceWrapper.exe to your installation directory (%SYBASE%) and invoke:
%SYBASE%\ServiceWrapper.exe --install service_name --user=DOMAIN_NAME\username --password=password installation directory\DC-12_6\bin\DCStart.bat -Sserver_name
where:
service_name is the Windows service name.
username includes the domain name and the user name under which the service will run.
If your Windows machine is not a member of a Windows
domain, but is a Workgroup member instead, use the COMPUTER_NAME in
place of DOMAIN_NAME.
password is the password for the user name.
server_name is the name of the DirectConnect server you created earlier using the AddServer command. See “DirectConnect”.
For example:
C:\Sybase\ServiceWrapper.exe --install Syb_DCserver --user=SYBASE\jdoe --password=jdpassword c:\Sybase\DC-12_6\bin\DCStart.bat -SDCserver
You must specify the .bat suffix
for DCStart.
Select Start | Settings | Control Panel | Administrative Tools | Services. The Services window opens.
Select the name of the service you just installed. Right-click and select Properties. In the Properties dialog, select the Log On tab, and ensure “This Account” is selected. Verify that the user name is the same as the one you specified while adding the service.
Use the Recovery tab to specify any desired actions in case the service fails.
Use the General tab to provide a description of the service and to specify whether the service should start automatically or manually. Click Start to start the service.
Use the ServiceWrapper.exe to remove the service using this command, where service_name is the name of the service:
%SYBASE%\ServiceWrapper.exe --uninstall service_name