zoukankan      html  css  js  c++  java
  • 测试HANA的真实案例

    1. configure memory limit for DEV、QAS

    目前总内存为1367.19GB,
    DEV和QAS为同一数据库
    我们将设置DEV为600GB
    QAS也为600GB

    =================
    Create new database S4Q with HANA studio

    2175606 - HANA: How to set allocation limit for tenant databases

    < SPS11

    ALTER SYSTEM ALTER CONFIGURATION ('indexserver.ini', 'DATABASE', '<Tenant_SID>') SET ('memorymanager', 'allocationlimit') = '8192' WITH RECONFIGURE;

    = SPS11

    ALTER SYSTEM ALTER CONFIGURATION ('global.ini', 'DATABASE', '<Tenant_SID>') SET ('memorymanager', 'allocationlimit') = '8192' WITH RECONFIGURE;
    For SPS09, you need to restart HANA database to take effect.

    For later SPS, memory alignment will happen on the fly, but take some time. To make it happen immediately, you can restart the database.

    To confirm the changes with systemdb connection, you can use SQL query:

    SELECT * FROM "SYS_DATABASES"."M_SERVICE_MEMORY";
    Alternatively you can check it with column "Allocation Limit(MB)" in Sevices tab under Landspace in HANA studio by logging on to the tenant DB.

    ALTER SYSTEM ALTER CONFIGURATION ('global.ini', 'DATABASE', 'S4Q') SET ('memorymanager', 'allocationlimit') = '600000' WITH RECONFIGURE;

    SELECT * FROM "SYS_DATABASES"."M_SERVICE_MEMORY";

    1. begin t check SR with HANA studio:

    reboot SiteA

    测试结果:
    节点1reboot后,能发生切换,并重启后能自动加入到集群成为备节点
    节点2reboot后,能自动加入到集群成为备节点

    备节点HDB stop无法停止数据库,能自动起来
    主节点HDB stop,主数据库切换到备节点,并SR失效,
    ---解决方案1. reboot原来的主节点
    ---解决方案2. 用hdbnsutil -sr_register 注册到新的主节点,并清除管理段::7630下相应的报错

  • 相关阅读:
    fastjson 简单使用 及其JSONObject使用
    HttpClient 的使用
    python操作excel xlwt (转)
    matplotlib 设置标题 xy标题等
    matplotlib 饼状图
    Mac下面 matplotlib 中文无法显示解决
    matplotlib 折线图
    matplotlib条形图
    matplotlib直方图
    python matplotlib配置
  • 原文地址:https://www.cnblogs.com/weikui/p/10114134.html
Copyright © 2011-2022 走看看