cancel
Showing results for 
Search instead for 
Did you mean: 

DBENG17 Running on 2 processes

Former Member
0 Kudos
445

Hi Experts.

I have found that when I run my script, it is ran by the SYSTEM user and not my current user. My issue here is that after running the script below, our application would run a synchronization script for Mobilink. From there, the script is failing since it is running another DBENG17.exe process under my user and not by the SYSTEM user. Any suggestions how to ensure that dbeng17 is only ran by one process?

@echo off


:step1
echo creating db service
dbsvc -as -s auto -y -w Mosis "%ProgramFiles%\SQL Anywhere 17\Bin64\dbeng17.exe" -n Mosis -x "tcpip(port=2638)" -c 8m "C:\Users\*user*\Documents\Eclipse Oxygen\Application\db\mosis.db"
if %errorlevel% == 0 goto step2
echo ASA service already started
goto end


:step2
echo starting db service
dbsvc -u Mosis


:step3
echo ASA start successful


:end
exit

Accepted Solutions (0)

Answers (0)