• 週六. 5 月 30th, 2026

天南訊息

IT 工作者的工作紀錄

HANA 2.0 Installation Steps

個人頭像照片

By伍芳左

5 月 25, 2026

SAP HANA 2.0 安裝步驟


1) We have to decide which version of the HANA DB we have to install

先決定要安裝哪個版本的 HANA Database。

意思:

  • HANA 2.0 SPS05
  • HANA 2.0 SPS06
  • Express Edition
  • Scale-up / Scale-out
  • Single tenant / MDC

都不一樣。

SAP 通常會依:

  • ERP 版本
  • 作業系統版本
  • 硬體認證
  • SAP Note

來決定。


2) LINUX OS should be ready along with file systems, memory …etc..

Linux 作業系統必須先準備好,包含檔案系統、記憶體等。

意思是:

安裝 HANA 前:

OS 要先完成:

  • SUSE Linux / RedHat
  • hostname
  • IP
  • DNS
  • time sync
  • swap
  • kernel parameter

Disk/File System:

例如:

  • /hana/data
  • /hana/log
  • /hana/shared

都要先建立好。

RAM:

HANA 很吃記憶體。

例如:

  • 256GB
  • 512GB
  • 1TB RAM

3) get the root password

取得 root 密碼。

因為 HANA 安裝很多動作需要 root 權限。

例如:

  • 建立 user
  • 建立 service
  • mount filesystem
  • 修改 OS parameter

4) download the HANA DB software from SMP

從 SMP 下載 HANA 安裝檔。

SMP 指:

SAP Support Portal / Software Download Center

通常下載:

  • HANA Server
  • HANA Client
  • AFL
  • Cockpit

檔案通常是:

IMDB_SERVER20_XXX.SAR

5) copy or move the HANA DB software to your linux OS

把下載好的 HANA 安裝檔放到 Linux 主機。

例如:

/usr/sap/install
然後解壓縮:
SAPCAR -xvf *.SAR

6) start the installation using root user

使用 root 開始安裝。

通常:

./hdblcm

installation can be done using 3 ways

安裝有三種方式:


(1) command prompt

命令列安裝(CLI)

例如:

./hdblcm
文字模式。

SAP BASIS 很常用這種。


(2) GUI

圖形化安裝。

例如:

./hdblcmgui
會跳出 GUI 視窗。

通常需要:

  • X Window
  • 圖形介面

(3) WEB

Web 安裝方式。

例如:

./hdblcmweb
然後用瀏覽器開:
https://hostname:1129

HDBLCM tool

這個是重點。

HDBLCM =HANA Database Lifecycle Manager

SAP HANA 的安裝/升級/維護工具。

它能做:

  • Install
  • Update
  • Upgrade
  • Rename
  • Add host
  • Remove host
  • Uninstall

幾乎 HANA 生命周期管理都靠它。


常見指令

查看版本

./hdblcm --version

靜默安裝(Silent)

./hdblcm --batch

更新 HANA

./hdblcm --action=update

你現在看到的,其實只是「超簡化版」

真正企業安裝前還會做:

  • Storage layout
  • Multipath
  • XFS / GPFS
  • NUMA
  • NTP
  • SAP Note 檢查
  • TDI 認證
  • Backup strategy
  • Tenant design
  • HA / DR 架構

尤其你現在在看:

  • VMware
  • SUSE
  • SAP HANA
  • BASIS
個人頭像照片

By 伍芳左

MIS, ERP Pro... RHCE Member (7.2)

發表迴響