cancel
Showing results for 
Search instead for 
Did you mean: 

HANA Services startup Sequence

Former Member
0 Kudos

Hello Everyone,

Can anyone tell me the sequence of the HANA services when the HANA is started?

I know that the daemon.ini file initiates the nameserver .

But can someone please if there is a sequence in which the services start?

Regards,

Vinay

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vinay ,

In General startup sequence of services  is as follows – nameserver, preprocessor , compileserver, indexserver, scriptserver, statisticsserver, xsengine, sapwebdisp and daemon

Start up sequence of services in hana depens on run level VALUE.

For example if run valuve for nameserver is 1 means nameserver will be started first

You can find these start up sequence in daemon trace

XXXXX@XXX:/usr/sap/H00/HDB00/xxxxx/trace> more daemon_xxxx.30000.000.trc

[31244]{0}[0] 2013-03-25 14:24:27.955495 i Basis TraceStream.cpp(00398) : ==== Starting hdb.sapH00_HDB00, version 1.00.47.372360 (NewDB100_REL),

build linuxx86_64 not set 2012-12-21 04:39:09 ldm053.server cc (SAP release 20121004, based on SUSE gcc43-4.

3.4_20091019-0.22.17) 4.3.4 [gcc-4_3-branch revision 152973]

[31244]{0}[0] 2013-03-25 14:24:28.578147 i Daemon TrexDaemon.cpp(09975) : runlevel 0 completely started

[31244]{0}[0] 2013-03-25 14:24:28.952339 i Daemon TrexDaemon.cpp(08656) : start ‘hdbnameserver’ as process 31484

[31244]{0}[0] 2013-03-25 14:24:33.658756 i Daemon TrexDaemon.cpp(10341) : program hdbnameserver with pid 31484 is started

[31244]{0}[0] 2013-03-25 14:24:33.658772 i Daemon TrexDaemon.cpp(10355) : runlevel 1 completely started – shows nameserver started first.

[31244]{0}[0] 2013-03-25 14:24:33.658785 i Daemon TrexDaemon.cpp(09975) : runlevel 1 completely started

[31244]{0}[0] 2013-03-25 14:24:33.959784 i Daemon TrexDaemon.cpp(08656) : start ‘hdbpreprocessor’ as process 31538

[31244]{0}[0] 2013-03-25 14:24:35.625177 i Daemon TrexDaemon.cpp(10341) : program hdbpreprocessor with pid 31538 is started

[31244]{0}[0] 2013-03-25 14:24:35.625194 i Daemon TrexDaemon.cpp(10355) : runlevel 2 completely started

[31244]{0}[0] 2013-03-25 14:24:35.958264 i Daemon TrexDaemon.cpp(08656) : start ‘hdbindexserver’ as process 31555

[31244]{0}[0] 2013-03-25 14:24:36.955264 i Daemon TrexDaemon.cpp(08656) : start ‘hdbstatisticsserver’ as process 31563

[31244]{0}[0] 2013-03-25 14:24:37.988563 i Daemon TrexDaemon.cpp(08656) : start ‘hdbxsengine’ as process 31580

[31244]{0}[0] 2013-03-25 14:24:38.693402 i Daemon TrexDaemon.cpp(02403) : registered shared memory segment id “1638414/31555:1638414”

[31244]{0}[0] 2013-03-25 14:25:41.538095 i Daemon TrexDaemon.cpp(10341) : program hdbindexserver with pid 31555 is started

[31244]{0}[0] 2013-03-25 14:27:27.007114 i Daemon TrexDaemon.cpp(10341) : program hdbxsengine with pid 31580 is started

[31244]{0}[0] 2013-03-25 14:27:28.645294 i Daemon TrexDaemon.cpp(10341) : program hdbstatisticsserver with pid 31563 is started

[31244]{0}[0] 2013-03-25 14:27:28.645313 i Daemon TrexDaemon.cpp(10355) : runlevel 3 completely started

[31244]{0}[0] 2013-03-25 14:27:33.648992 i Daemon TrexDaemon.cpp(10355) : runlevel 4 completely started

Former Member
0 Kudos

You can check for the used runlevels via:

select * from m_infile_contents where key = 'runlevel'

Former Member
0 Kudos

Thnaks Martin for the query.

Former Member
0 Kudos

Thanks Martin..

Thank you everyone else.

Regards,

Vinay

Answers (1)

Answers (1)

davidebruno
Participant
0 Kudos

Hi Vinay, usually if you use the command

HDB start (in a single-node installation)

or

sapcontrol -nr <SysNum> -function StartSystem HDB (in a distributed installation)

you can not worry about the sequence



Former Member
0 Kudos

Hello Davide,

Thank you for the reply.

But I was not looking at whether HANA is started in the correct sequence or not, I was wondering if there any sequence involved when we give the command "HDB start or

sapcontrol -nr <SysNum> -function StartSystem HDB (in a distributed installation)"


Like which service gets started after nameserver service?


Regards,

Vinay