zoukankan      html  css  js  c++  java
  • Howto install HANA license by OS commands hdbsql

    2690863 - Howto install HANA license by OS commands hdbsql

    Symptom

    You need to use OS commands to access the HANA Database and manage the license.

    Because there's no HANA Studio or HANA Cockpit available to manage the license for some reason.

    Environment

    • HANA Platform 1.0
    • HANA Platform 2.0

    Resolution

    For single container system, you can follow below steps to install the license directly.

    While for MDC system, you have to decide where the license needs to be installed. Generally, install system level license, you need to connect to system database.

    And for tenant level license, you can connect to the specific tenant database to perform below steps.

    1. Logon as sidadm user, connect to the Database via hdbsql.
    • For single container system, please try below command:
    > hdbsql -n <hostname>:3<instance no.>15 -i <instance no.> -u <DB username> -p <password>
    • For MDC system, please try connecting to the system DB by below command:
    > hdbsql -n <hostname>:3<instance no.>13 -i <instance no.> -u <DB username> -p <password>
    • To install license in a specific tenant, please maintain the SQL port of the tenant DB in the command accordingly.
    > hdbsql -n <hostname>:3<instance no.><tenant SQL port> -i <instance no.> -u <DB username> -p <password>
    1. Enable multiline mode in hdbsql
    hdbsql <DB name>=> mu
    1. You need a new license key, which you can download from Support Portal.

    2. Enter statement  
      SET SYSTEM LICENSE '<license file content>'

    Please note to add quotation mark outside the content of the license file you just downloaded.

    1. Execute the statement by command: g
    hdbsql <DB name>=> g


    See below screenshot for details:

    KBA_lic_1.jpg

    Remarks:

    Install the new license via hdbsql cannot replace the old license. Please consider to delete the old license key before installing the new one.

    You can also delete license keys by executing the SQL statement UNSET SYSTEM LICENSE ALL.

    See Also

    2311999 - Permanent license import failed via HDBSQL

    Keywords

    License; HANA license; license key; hdbsql; OS command; SET SYSTEM LICENSE;

  • 相关阅读:
    利用模板实现c++智能指针
    movit 相关函数(二)
    moveit相关函数解释
    ros常用函数(1)
    Qtcreator中cin函数无法在application output中进行输入的问题的解决
    c++速成,适合有c基础的朋友(3)
    【重要通知】本博客不再更新,更多教程请访问 makermaker.cc
    BBC micro:bit 学习资源汇总(最近更新2019年1月6日....)
    [20个项目学会BBC micro:bit编程] 20-无线通信
    [20个项目学会BBC micro:bit编程] 19-直流电机控制
  • 原文地址:https://www.cnblogs.com/weikui/p/13340688.html
Copyright © 2011-2022 走看看