所选语种没有对应资源,请选择:

本站点使用Cookies,继续浏览表示您同意我们使用Cookies。Cookies和隐私政策>

提示

尊敬的用户,您的IE浏览器版本过低,为获取更好的浏览体验,请升级您的IE浏览器。

升级

华为 SAP HANA 一体机 KunLun 9008&9016 单机安装指南 10

评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
安装数据库

安装数据库

说明:

本节介绍的是数据库1.0版本的安装方式,数据库2.0版本的安装方式与数据库1.0版本相似。

  1. 以root用户名登录服务器,打开terminal窗口。
  2. 执行命令cd切换目录到SAP HANA数据库文件夹所在的目录下面,本例是“cd /hana/shared/”。
  3. 执行命令chmod +x *,增加可执行权限。

  4. 执行命令./SAPCAR_617-80000935_Linux_64bit.EXE -manifest SIGNATURE.SMF -xvf IMDB_SERVER100_122_5-10009569.SAR解压数据库文件(SAPCAR和IMDB_SERVER的具体版本根据实际需求安装),得到一个SAP_HANA_DATABASE目录以及“SIGNATURE.SMF”文件夹。

  5. 执行命令cp SIGNATURE.SMF SAP_HANA_DATABASE/把解压生成的校验文件 “SIGNATURE.SMF”复制到SAP_HANA_DATABASE目录下面。

  6. 执行命令cat /etc/hosts确认hosts文件中包含本机主机名的解析,否则数据库会安装失败。

  7. 先执行命令cd SAP_HANA_DATABASE/进入SAP_HANA_DATABASE目录,再执行命令chmod +x -R *

  8. 执行命令chown root:root /hana/data /hana/log将“/hana/data”和“/hana/log”目录的用户名和用户组修改为“root”。
  9. 执行命令chmod 755 /hana/data /hana/log为“/hana/data”和“/hana/log”目录加执行权限。
  10. 执行命令./hdblcm开始安装数据库。

  11. 按界面提示配置参数。

    如果是双机高可靠组网,两台SAP HANA安装数据库时注意:
    1. 两台服务器的数据库Instance Number要保持一致
    2. 两台服务器的数据库SID要保持一致
    3. 两台服务器的数据库密码要保持一致
    hw00001:/hana/shared/SAP_HANA_DATABASE # ./hdblcm
    SAP HANA Lifecycle Management - SAP HANA 1.00.122.05.1481577062
    ***************************************************************
    Scanning Software Locations...
    Detected components:
    SAP HANA Database (1.00.122.05.1481577062) in /hana/shared/SAP_HANA_DATABASE/server
    Choose installation
    Index | System             | Database Properties
    ------------------------------------------------
    1     | Install new system |
    |                    |
    2     | Extract components |
    3     | Exit (do nothing)  |
    
    Enter selected system index [3]: 1    //选择“1”安装新系统
    Enter Installation Path [/hana/shared]: //输入安装路径,本例中保持默认
    Enter Local Host Name [hw00001]: //输入主机名,本例中保持默认
    Do you want to add additional hosts to the system? (y/n): n //是否增加其他主机名,本例中为单机场景输入“n”
    Enter SAP HANA System ID: S00 //输入数据库系统ID,本例中为“S00”
    Enter Instance Number [00]: //输入数据库实例号,本例中为“00”
    
    Index | Database Mode       | Description
    -----------------------------------------------------------------------------------------------
    1     | single_container    | The system contains one database
    2     | multiple_containers | The system contains one system database and 1..n tenant databases
    Select Database Mode / Enter Index [1]: 1 //输入数据库模式,本例中为单租户输入“1”
    Index | System Usage | Description
    -------------------------------------------------------------------------------
    1     | production   | System is used in a production environment
    2     | test         | System is used for testing, not production
    3     | development  | System is used for development, not production
    4     | custom       | System usage is neither production, test nor development
    Select System Usage / Enter Index [4]: 1 //输入数据库用途,本例中为生产环境输入“1”
    Enter Location of Data Volumes [/hana/data/S00]:  //输入HANA的数据存放路径,本例中保持默认
    Enter Location of Log Volumes [/hana/log/S00]: //输入HANA的日志存放路径,本例中保持默认
    Restrict maximum memory allocation? [n]: n //是否限制HANA内存大小,本例中为单实例选择“n”
    Enter Certificate Host Name For Host 'hw00001' [hw00001]: //保持默认)
    Enter System Administrator (sapadm) Password: //输入sapadm数据库管理账号密码
    Confirm System Administrator (sapadm) Password: //输入sapadm数据库管理账号密码
    Enter System Administrator (s00adm) Password: //输入<sid>adm数据库管理账号密码
    Confirm System Administrator (s00adm) Password: //输入<sid>adm数据库管理账号密码
    Enter System Administrator Home Directory [/usr/sap/S00/home]: //保持默认
    Enter System Administrator Login Shell [/bin/sh]: //保持默认
    Enter System Administrator User ID [1000]: //保持默认
    Enter ID of User Group (sapsys) [79]: //保持默认
    Enter Database User (SYSTEM) Password: //输入数据库管理SYSTEM账号密码,可以设置和<sid>adm一致
    Confirm Database User (SYSTEM) Password: //输入数据库管理SYSTEM账号密码,可以设置和<sid>adm一致
    Restart system after machine reboot? [n]: //保持默认
    Summary before execution:
    =========================
    SAP HANA Components Installation
    Installation Parameters
    Remote Execution: ssh
    Installation Path: /hana/shared
    Local Host Name: hw00001
    SAP HANA System ID: S00
    Instance Number: 00
    Database Mode: single_container
    System Usage: production
    Location of Data Volumes: /hana/data/S00
    Location of Log Volumes: /hana/log/S00
    Certificate Host Names: hw00001 -> hw00001
    System Administrator Home Directory: /usr/sap/S00/home
    System Administrator Login Shell: /bin/sh
    System Administrator User ID: 1000
    ID of User Group (sapsys): 79
    Software Components
    SAP HANA Database
    Install version 1.00.122.05.1481577062
    Location: /hana/shared/SAP_HANA_DATABASE/server
    
    Do you want to continue? (y/n): y //确认信息后继续安装
    ………
    Index | Database Isolation | Description
    ----------------------------------------------------------------------------
    1     | low                | All databases are owned by the sidadm user
    2     | high               | Each database has its own operating system user
    
    Select Database Isolation / Enter Index [1]: 1 //多租户模式安装时需要选择数据库隔离级别,请根据实际需要选择,本例中保持默认

    安装完成后显示信息如下(根据配置不同会有不同的安装路径提示,但是都会提示安装完毕):

    Installing components...
    Installing SAP HANA Database...
    Preparing package 'Saphostagent Setup'...
    Preparing package 'Python Support'...
    Preparing package 'Python Runtime'...
    Preparing package 'Product Manifest'...
    Preparing package 'Binaries'...
    Preparing package 'Installer'...
    Preparing package 'Ini Files'...
    Preparing package 'HWCCT'...
    Preparing package 'Emergency Support Package'...
    Preparing package 'EPM'...
    Preparing package 'Documentation'...
    Preparing package 'Delivery Units'...
    Preparing package 'DAT Languages'...
    Preparing package 'DAT Configfiles'...
    Creating System...
    Extracting software...
    Installing package 'Saphostagent Setup'...
    Installing package 'Python Support'...
    Installing package 'Python Runtime'...
    Installing package 'Product Manifest'...
    Installing package 'Binaries'...
    Installing package 'Installer'...
    Installing package 'Ini Files'...
    Installing package 'HWCCT'...
    Installing package 'Emergency Support Package'...
    Installing package 'EPM'...
    Installing package 'Documentation'...
    Installing package 'Delivery Units'...
    Installing package 'DAT Languages'...
    Installing package 'DAT Configfiles'...
    Creating instance...
    Starting SAP HANA Database system...
    Starting 7 processes on host 'hw00001' (worker):
    Starting on 'hw00001': hdbcompileserver, hdbdaemon, hdbindexserver, hdbnameserver, hdbpreprocessor, hdbwebdispatcher, hdbxsengine
    Starting on 'hw00001': hdbcompileserver, hdbdaemon, hdbindexserver, hdbpreprocessor, hdbwebdispatcher, hdbxsengine
    Starting on 'hw00001': hdbcompileserver, hdbdaemon, hdbindexserver, hdbwebdispatcher, hdbxsengine
    Starting on 'hw00001': hdbdaemon, hdbindexserver, hdbwebdispatcher, hdbxsengine
    Starting on 'hw00001': hdbdaemon, hdbwebdispatcher, hdbxsengine
    Starting on 'hw00001': hdbdaemon, hdbwebdispatcher
    All server processes started on host 'hw00001' (worker).
    Importing delivery units...
    Importing delivery unit HCO_INA_SERVICE
    Importing delivery unit HANA_DT_BASE
    Importing delivery unit HANA_IDE_CORE
    Importing delivery unit HANA_TA_CONFIG
    Importing delivery unit HANA_UI_INTEGRATION_SVC
    Importing delivery unit HANA_UI_INTEGRATION_CONTENT
    Importing delivery unit HANA_XS_BASE
    Importing delivery unit HANA_XS_DBUTILS
    Importing delivery unit HANA_XS_EDITOR
    Importing delivery unit HANA_XS_IDE
    Importing delivery unit HANA_XS_LM
    Importing delivery unit HDC_ADMIN
    Importing delivery unit HDC_IDE_CORE
    Importing delivery unit HDC_SEC_CP
    Importing delivery unit HDC_XS_BASE
    Importing delivery unit HDC_XS_LM
    Importing delivery unit SAPUI5_1
    Importing delivery unit SAP_WATT
    Importing delivery unit HANA_BACKUP
    Importing delivery unit HANA_HDBLCM
    Importing delivery unit HANA_SEC_BASE
    Importing delivery unit HANA_SEC_CP
    Importing delivery unit HANA_ADMIN
    Installing Resident hdblcm...
    Creating Component List...
    Updating SAP HANA Instance Integration on Local Host...
    Deploying SAP Host Agent configurations...
    SAP HANA system installed
    You can send feedback to SAP with this form: https://hw00001:1129/lmsl/HDBLCM/S00/feedback/feedback.html
    Log file written to '/var/tmp/hdb_S00_hdblcm_install_2016-07-26_10.57.48/hdblcm.log' on host 'hw00001'.
    You have new mail in /var/mail/root
    说明:

    如果数据库安装失败,请先卸载安装失败的数据库(卸载步骤请参考卸载数据库然后再重新安装。

  12. 验证数据库安装是否成功。

    1. 执行命令su - <sid>adm切换到数据库系统管理员用户。

      “s00adm”是上述数据库安装过程中配置的数据库系统管理员用户名,命名规则为 <sid>adm。 比如SID是S00,则用户名是s00adm。

    2. 执行命令HDB -version查询数据库版本信息,若能查询到版本信息说明数据库安装成功。
    3. 执行命令exit退回到操作系统用户模式。

    1. 执行命令ps -le |grep hdb查看数据库主要进程是否正常运行。

    1. 执行以下命令启动和关闭数据库。
      hw00001:/usr/sap/S00/HDB00 # su - s00adm
      hw00001:/usr/sap/S00/HDB00> HDB start   /*启动SAP HANA数据库*/
      hw00001:/usr/sap/S00/HDB00> HDB stop   /*关闭SAP HANA数据库。注意在关闭操作系统前请先使用该命令关闭SAP HANA数据库*/

翻译
下载文档
更新时间:2019-08-27

文档编号:EDOC1100004719

浏览量:11144

下载量:314

平均得分:
本文档适用于这些产品
相关文档
相关版本
Share
上一页 下一页