GDPR Cookie Consent by Free Privacy Policy Generator
post thumb
Asset Control
by Matthias Hanitzsch-Moonlight/ on 01 Mar 2019

Starting and stopping the AC Server with adstart2 and adstop2

To start and stop either all or some of the query, update server and replicator you use the adstart2 and adstop2 commands.

In its simplest form, you would want to use adstart2 to start both the query and update server as well as the replicator if it is configured:

acdba@acbox:~$ adstart2
+++INFO+++ 20190319_21:15:32 @(#)waitdb[7.3/$Revision: 45930 $]: Verifying server component build level
+++INFO+++ 20190319_21:15:32 @(#)waitdb[7.3/$Revision: 45930 $]: RDBMS XE is accepting connections and contains the correct component build level
+++INFO+++ 20190319_21:15:32 adstart2: Starting Query server DEFAULT on node acbox...
+++INFO+++ 20190319_21:15:32 adstart2: Starting Update server DEFAULT on node acbox...
+++INFO+++ 20190319_21:15:32 @(#)acmon[7.3/$Revision: 46530 $]: Still waiting for server process(es) to become active
+++INFO+++ 20190319_21:15:37 @(#)acmon[7.3/$Revision: 46530 $]: AC Query Server 536870932@acbox is alive
+++INFO+++ 20190319_21:15:37 @(#)acmon[7.3/$Revision: 46530 $]: AC Update Server 536870931@acbox is alive
+++INFO+++ 20190319_21:15:37 adstart2: Calling ac_auto_load to check for automatic datamodel updates
+++INFO+++ 20190319_21:15:37 ac_auto_load: Generating and comparing signatures for auto-load files...
+++INFO+++ 20190319_21:15:37 ac_auto_load: No files need to be loaded.

To stop all, you would use adstop2:

acdba@acbox:~$ adstop2
+++INFO+++ 20190319_21:16:30 adstop2: Shutting down Query Server DEFAULT...
+++INFO+++ 20190319_21:16:30 @(#)ac_shut_server[7.3/$Revision: 47831 $]: Trying to shutdown Query Server
+++INFO+++ 20190319_21:16:30 @(#)ac_shut_server[7.3/$Revision: 47831 $]: Shutdown of Query Server successful
+++INFO+++ 20190319_21:16:30 adstop2: Shutting down Update Server DEFAULT...
+++INFO+++ 20190319_21:16:30 @(#)ac_shut_server[7.3/$Revision: 47831 $]: Trying to shutdown Update Server
+++INFO+++ 20190319_21:16:30 @(#)ac_shut_server[7.3/$Revision: 47831 $]: Shutdown of Update Server successful

You can also be specific about which component you want to start or stop by adding one of the following options:

  • qry - for the query server
  • upd - for the update server
  • rep - for the replicator

The following would start the query server only:

acdba@acbox:~$ adstart2 qry
+++INFO+++ 20190319_21:21:27 @(#)waitdb[7.3/$Revision: 45930 $]: Verifying server component build level
+++INFO+++ 20190319_21:21:27 @(#)waitdb[7.3/$Revision: 45930 $]: RDBMS XE is accepting connections and contains the correct component build level
+++INFO+++ 20190319_21:21:27 adstart2: Starting Query server DEFAULT on node acbox...
+++INFO+++ 20190319_21:21:27 @(#)acmon[7.3/$Revision: 46530 $]: Still waiting for server process(es) to become active
+++INFO+++ 20190319_21:21:32 @(#)acmon[7.3/$Revision: 46530 $]: AC Query Server 536870932@acbox is alive

Or you would want to stop the update server only:

acdba@acbox:~$ adstop2 upd
+++INFO+++ 20190319_21:26:14 adstop2: Shutting down Update Server DEFAULT...
+++INFO+++ 20190319_21:26:14 @(#)ac_shut_server[7.3/$Revision: 47831 $]: Trying to shutdown Update Server
+++INFO+++ 20190319_21:26:14 @(#)ac_shut_server[7.3/$Revision: 47831 $]: Shutdown of Update Server successful
comments powered by Disqus