|
|
495856 |
|
Sybase Replication Agents for Unix and Windows |
|
RepAgent/MsSQL |
|
|
Closed |
|
Microsoft Windows NT |
|
5.6.02 |
|
|
|
|
|
|
|
|
|
29 May 2008 |
Not reproducible with latest version of the product available as of Resolution Date |
|
|
|
|
|
Sybase Replication Agent for Unix & Windows/15.1.0.5602 is stopping abnormally when executed by the windows service manager starting a batch file. |
|
Workaround Description |
|
-Xrs command line option was added in the last line of the
%SYBASE%\RAX-15_1\bin\ra.bat ...
"%JRE%" -server -Xrs -Xmx%RA_JAVA_MAX_MEM% %FILENC% "-Dinstall.root=...
... see the following information for full details .
The customer has done the following...used the combination of the three items below to stablize the repagent running as a windows service under the windows service manger that starts the batch file for repagent
...the caveat here is this...
State Street created their Windows Service for starting rep agent under the
Windows Service Manager by copying(pse believes they did this by exporting a
key in regedit...changed it using a hexeditor and then importing it) an
existing service in the registry and then changing the name of that newly
copied service from whatever it was on the copied service to RAM_ONYX ...
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RAM_ONYX]
...then they changed the EXPANDABLE STRING VALUE (REG_EXPAND_SZ) item named
ImagePath in the registry under...
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RAM_ONYX]
...to use the batch file used to start rep agent ...
ImagePath REG_EXPAND_SZ C:\Sybase\RAX-15_1\RAM_ONYX\RUN_RAM_ONYX_ADMIN.bat
1>> C:\SYBASE\RAX-15_1\RAM_ONYX\RAM_ONYX.log 2>&1
1) used ...
C:\Sybase\RAX-15_1\RAM_ONYX\RUN_RAM_ONYX_ADMIN.bat 1>> C:\SYBASE\RAX-15_1\RAM_ONYX\RAM_ONYX.log 2>&1
... in their image path in the registry key for their user-defined service to be started by the windows service manager
... we are unsure how they created this service([HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RAM_ONYX])
here is the information we gleaned out of their exported registry key...
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RAM_ONYX]
(Default) REG_SZ (value not set)
DisplayName REG_SZ Replication Agent for Microsoft SQL Server
ErrorControl REG_DWORD 0x00000001 (1)
ImagePath REG_EXPAND_SZ C:\Sybase\RAX-15_1\RAM_ONYX\RUN_RAM_ONYX_ADMIN.bat 1>> C:\SYBASE\RAX-15_1\RAM_ONYX\RAM_ONYX.log 2>&1
ObjectName REG_SZ GA\mssql_service_acct
Start REG_DWORD 0x00000003(3)
Type REG_DWORD 0x00000010(16)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RAM_ONYX\Enum]
(Default) REG_SZ (value not set)
0 REG_SZ Root\LEGACY_RAM_ONYX\0000
Count REG_DWORD 0x00000001(1)
NextInterface REG_DWORD 0x00000001(1)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RAM_ONYX\Security]
(Default) REG_SZ (value not set)
Security REG_BINARY 01,00,14,80,b8,00,00,00,c4,00,00,00,14,00,00,00,30,00,00,00,02,00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,00,00,02,00,88,00,06,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,04,00,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,06,00,00,00,00,00,14,00,00,01,00,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,00,18,00,fd,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00
2) used a C:\Sybase\RAX-15_1\RAM_ONYX\RUN_RAM_ONYX_ADMIN.bat file according to the following ...
type C:\Sybase\RAX-15_1\RAM_ONYX\RUN_RAM_ONYX_ADMIN.bat
@echo off
set RA_JAVA_DFLT_CHARSET=
set RA_JAVA_MAX_MEM=256m
set SYBASE=C:\Sybase
set CLASSPATH=C:\Sybase\sqljdbc_1.2\enu\sqljdbc.jar
CALL %SYBASE%\RAX-15_1\bin\ra.bat -i RAM_ONYX
3) changed the last line in the C:\Sybase\RAX-15_1\bin\ra.bat to include the -Xrs arguement option when java is started
... from ...
"%JRE%" -server -Xmx%RA_JAVA_MAX_MEM% %FILENC% "-Dinstall.root=%RAX_DIR%" "-DSYSAM_LICDIR=%SYSAM%\licenses" -classpath "%RAX_JARS%;%JCONN_CLASSES%\jconn3.jar;%JCONN_CLASSES%\jTDS3.jar;%JHOME%\lib\charsets.jar;%RAX_DIR%\classes\sylapi.jar;%CLASSPATH%" com.sybase.ra.RepAgent %*
... to ...
"%JRE%" -server -Xrs -Xmx%RA_JAVA_MAX_MEM% %FILENC% "-Dinstall.root=%RAX_DIR%" "-DSYSAM_LICDIR=%SYSAM%\licenses" -classpath "%RAX_JARS%;%JCONN_CLASSES%\jconn3.jar;%JCONN_CLASSES%\jTDS3.jar;%JHOME%\lib\charsets.jar;%RAX_DIR%\classes\sylapi.jar;%CLASSPATH%" com.sybase.ra.RepAgent %* |
|
|
|