Skip to Content
-2

how to find sid user and instance number of HANA db ?

for some script i wanted to find HANA sid and instance number from the server as a root user, is there any way to find it ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Jun 27, 2018 at 02:51 AM

    Dear customer,

    You could use following OS command to find all HANA sid users.

    cat /etc/passwd |grep HANA

    Moreover, for HANA system instance number, you could refer to the folder name of your HANA system.
    e.g.
    /usr/sap/<SID>/HDB<instance number>

    Best Regards,
    Eason Chen

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 26, 2018 at 04:19 PM

    Please check this table: "SYS"."M_SYSTEM_OVERVIEW"

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 26, 2018 at 02:23 PM

    SELECT * FROM SYS.M_SERVICES

    Derive instance number from sql port , if sql port is 34015 then instance number is 40.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 18, 2019 at 05:43 AM
    -1

    SELECT * FROM SYS.M_SYSTEM_OVERVIEW;

    From this sql command you will get the sid user ,instance number,current patch ...etc

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.