<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: DBENG17 Running on 2 processes in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/dbeng17-running-on-2-processes/qaa-p/597200#M139997</link>
    <description>&lt;P&gt;Just to add.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;A dbeng17 is being ran whenever the Mobilink synchronization is triggered. That dbeng17 during this process is being ran under the local user account instead of the local system. This is what I don't understand as to why it won't run under the SYSTEM account.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jun 2018 14:12:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-06-19T14:12:47Z</dc:date>
    <item>
      <title>DBENG17 Running on 2 processes</title>
      <link>https://community.sap.com/t5/technology-q-a/dbeng17-running-on-2-processes/qaq-p/597193</link>
      <description>&lt;P&gt;Hi Experts.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;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?&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;@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
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jun 2018 08:38:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dbeng17-running-on-2-processes/qaq-p/597193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-06-14T08:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: DBENG17 Running on 2 processes</title>
      <link>https://community.sap.com/t5/technology-q-a/dbeng17-running-on-2-processes/qaa-p/597194#M139991</link>
      <description>&lt;P&gt;The script setups and starts a SQL Anywhere personal service SYSTEM service. This script will fail at Step 2 if the service is running when it is executed. &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;If I understand what is described&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;The script is run. This creates and starts an engine with the name Mosis running on TCPIP port 2638. This process is owned by SYSTEM.&lt;/LI&gt;
   &lt;LI&gt;You establish a connection to a database from your application.&lt;/LI&gt;
   &lt;LI&gt;After running the application, you have an SQL Anywhere engine running in an user account.&lt;/LI&gt;
  &lt;/UL&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;A second engine will not be started if&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;the database server name is the same&lt;/LI&gt;
   &lt;LI&gt;the port is the same&lt;/LI&gt;
  &lt;/UL&gt;
  &lt;P&gt;Can you share the connection string that you are using in your application? For it to use the service, the string should look like:&lt;/P&gt;
  &lt;P&gt; eng=Mosis;dbn=Mosis,uid=&amp;lt;uid&amp;gt;;pwd=&amp;lt;pwd&amp;gt;;links=tcpip(port=2639)&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 11:35:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dbeng17-running-on-2-processes/qaa-p/597194#M139991</guid>
      <dc:creator>chris_keating</dc:creator>
      <dc:date>2018-06-14T11:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: DBENG17 Running on 2 processes</title>
      <link>https://community.sap.com/t5/technology-q-a/dbeng17-running-on-2-processes/qaa-p/597195#M139992</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Here's the connection string we use:&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Uri = jdbc:sybase:Tds:localhost:2638&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 11:39:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dbeng17-running-on-2-processes/qaa-p/597195#M139992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-06-14T11:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: DBENG17 Running on 2 processes</title>
      <link>https://community.sap.com/t5/technology-q-a/dbeng17-running-on-2-processes/qaa-p/597196#M139993</link>
      <description>&lt;P&gt;If different processes require access to the same database, I would recomment creating a service to run the database server.&lt;/P&gt;
  &lt;P&gt;See &lt;A href="http://dcx.sap.com/index.html#sqla170/en/html/813963cc6ce21014b53f93288e6e8bad.html" target="_blank"&gt;DCX SQLA 17 Database Servers&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 13:48:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dbeng17-running-on-2-processes/qaa-p/597196#M139993</guid>
      <dc:creator>reimer_pods</dc:creator>
      <dc:date>2018-06-14T13:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: DBENG17 Running on 2 processes</title>
      <link>https://community.sap.com/t5/technology-q-a/dbeng17-running-on-2-processes/qaa-p/597197#M139994</link>
      <description>&lt;P&gt;Based on the service definition and the URL, there should be only one engine instance running after the process. If you do the following&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;run script &lt;/LI&gt;
   &lt;LI&gt;run app&lt;/LI&gt;
   &lt;LI&gt;run script&lt;/LI&gt;
  &lt;/UL&gt;
  &lt;P&gt;The second run script will report that the service is already running when this is executed: &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;dbsvc -u Mosis&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;There is certainly not enough information to explain a second engine instance as you have described the environment. Perhaps you can get Process Explorer from Microsoft SysInternals to help get more information about the SQL Anywhere instances that are running. For example, I have a service based on the script and a second engine running on my machine. According to process monitor, I can see the service command line&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt; &amp;lt;path to exe&amp;gt;\dbeng17.exe -hvSQLANYe_demo17&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;and the standalone command line (running under an user account)&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt; dbeng17 -n keating -x tcpip&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;With this information, I can investigate the source of the user account dbeng17 instance.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 19:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dbeng17-running-on-2-processes/qaa-p/597197#M139994</guid>
      <dc:creator>chris_keating</dc:creator>
      <dc:date>2018-06-14T19:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: DBENG17 Running on 2 processes</title>
      <link>https://community.sap.com/t5/technology-q-a/dbeng17-running-on-2-processes/qaa-p/597198#M139995</link>
      <description>&lt;P&gt;Hi Chris.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Is there a way to make sure that dbeng17 will be ran by the user account instead of the SYSTEM account? Just to eliminate this issue.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 13:23:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dbeng17-running-on-2-processes/qaa-p/597198#M139995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-06-19T13:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: DBENG17 Running on 2 processes</title>
      <link>https://community.sap.com/t5/technology-q-a/dbeng17-running-on-2-processes/qaa-p/597199#M139996</link>
      <description>&lt;P&gt;That will not solve the problem you describe. You cannot run two engines with the same name and/or port. That will fail. If you expect two engines to be running in this environment, you need to provide unique names and ports (an adjust the connection information accordingly). If you only want one engine but run multiple databases, you can do that also - here is an example of an engine running to two databases with TCPIP:&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;dbeng17 -x tcpip -n DbSrvName db1.db -n Database1Name db2.db -n Database2Name &lt;/LI&gt;
  &lt;/UL&gt;
  &lt;P&gt; ** dbeng17 only permits 10 local connections&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;Engine Name: DbSrvName &lt;/LI&gt;
   &lt;LI&gt;db1.db Name: Database1Name&lt;/LI&gt;
   &lt;LI&gt;db2.db Name: Database2Name&lt;/LI&gt;
  &lt;/UL&gt;
  &lt;P&gt; If you want to connect to a specific database, the connectior url would be:&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt; jdbc:sybase:Tds:host:port?ServiceName=database&lt;/P&gt;
  &lt;P&gt;Here is the url for db1.db &lt;/P&gt;
  &lt;P&gt; jdbc:sybase:Tds:localhost:2638?ServiceName=Database1Name&lt;/P&gt;
  &lt;P&gt;and db2:&lt;/P&gt;
  &lt;P&gt; jdbc:sybase:Tds:localhost:2638?ServiceName=Database2Name&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;If that second engine is not expected, you need to figure out its source. You may be forced to change configuration if that other engine is later determined as expected.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 13:52:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dbeng17-running-on-2-processes/qaa-p/597199#M139996</guid>
      <dc:creator>chris_keating</dc:creator>
      <dc:date>2018-06-19T13:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: DBENG17 Running on 2 processes</title>
      <link>https://community.sap.com/t5/technology-q-a/dbeng17-running-on-2-processes/qaa-p/597200#M139997</link>
      <description>&lt;P&gt;Just to add.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;A dbeng17 is being ran whenever the Mobilink synchronization is triggered. That dbeng17 during this process is being ran under the local user account instead of the local system. This is what I don't understand as to why it won't run under the SYSTEM account.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 14:12:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dbeng17-running-on-2-processes/qaa-p/597200#M139997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-06-19T14:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: DBENG17 Running on 2 processes</title>
      <link>https://community.sap.com/t5/technology-q-a/dbeng17-running-on-2-processes/qaa-p/597201#M139998</link>
      <description>&lt;P&gt;&lt;/P&gt;
  &lt;P&gt; Is that sync intended to use the database that you are running in the service? What is the connection string for the synchronization?&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt; &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 02:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dbeng17-running-on-2-processes/qaa-p/597201#M139998</guid>
      <dc:creator>chris_keating</dc:creator>
      <dc:date>2018-06-20T02:56:46Z</dc:date>
    </item>
  </channel>
</rss>

