3
0

S/4 HANA 2023インストールしてみた(HANA DB編)

Last updated at Posted at 2023-11-20

先月2023/10月にS/4 HANA 2023がリリースされたのでインストール検証をしました。
インストールで遭遇したエラーやS/4 HANA 2022から変更されていた点があれば話そうと思います。
インストール検証はAWSで実施しました。詳細は以下。

使用OSとインスタンスタイプ
S/4 HANA
OS:RHEL8.6(AWSが用意しているSAP High AvailabilityのAMIを使用しました)
インスタンスタイプ:m6i.2xlarge

HANADB
OS:同上
インスタンスタイプ:r5.8xlarge

OS設定

下記に従い推奨のOS設定をします。
SAP Note
①2772999 - Red Hat Enterprise Linux 8.x: インストールと構成
https://launchpad.support.sap.com/#/notes/2772999
②2777782 - SAP HANA DB: RHEL 8 の推奨 OS 設定
https://launchpad.support.sap.com/#/notes/2777782
AWSドキュメント
③Configure Operating System – RHEL for SAP 7.x, 8.x, and 9.x
https://docs.aws.amazon.com/ja_jp/sap/latest/sap-hana/operating-system-and-storage-configuration.html#configure-operating-system-rhel-for-sap-7.x

ソフトウェアダウンロード

PAMを参考にHANA DATABASEはSPS040以上を取得する。
image.png
※ソフトウェア コンポーネント アーカイブ (*.SAR ファイル) を解凍するために、最新のSAPCARも併せてダウンロードしておく。

HANA DATABASEインストール

権限変更とアーカイブ抽出
chmod 777 SAPCAR_1115-70006178.EXE
./SAPCAR_1115-70006178.EXE -xvf IMDB_SERVER20_073_0-80002031.SAR
インストーラ起動
cd SAP_HANA_DATABASE
./hdblcm
1のInstallを選択した後エラーに遭遇
Index | Action                    | Description
  -------------------------------------------------------------
  1     | install                   | Install new system
  2     | extract_components        | Extract components
  3     | print_detected_components | Print detected components
  4     | Exit (do nothing)         |
Enter selected action index [4]: 1
ERROR本文
Cannot access required library '/opt/rh/SAP/lib64/compat-sap-c++-11.so': No such file or directory
Install the rpm package 'compat-sap-c++-11'!
For more information, see SAP Note 3216146.
Checking system requirements failed

Log file written to '/var/tmp/hdb_hdblcm_install_2023-10-16_13.55.22_1804/hdblcm.log' on host 'SRHTYODB'.

パッケージが不足していたようです。ということでインストール。

不足パッケージインストール
yum install compat-sap-c++-11 libatomic

再度インストーラ起動。先程と同じところで2つ目のエラーに遭遇。

ERROR本文
Configuration error:
  File 'SIGNATURE.SMF' cannot be found in the SAP HANA Database installation kit. To include the signature when extracting the installation kit from a .SAR archive, use the SAPCAR option: -manifest SIGNATURE.SMF You can ignore this error and continue with the execution by passing the ignore option 'check_signature_file' to hdblcm, started as root. See SAP note 2078425, section 'How to prepare SAP HANA packages for installation or update' for instructions how to prepare packages for update or implications of ignoring this error.

SIGNATURE.SMFがないと言われました。
Noteを参考にアーカイブ抽出コマンドを変更し再度アーカイブを抽出します。

抽出コマンド修正版
./SAPCAR_1115-70006178.EXE -xvf IMDB_SERVER20_073_0-80002031.SAR -manifest SIGNATURE.SMF

ようやく先に進めます。
今回はとりあえず追加コンポーネントなしとするため、2番を選択。

エラー解消後、次の設問
  Index | Components      | Description
  --------------------------------------------------------------------------------------------------
  1     | all             | All components
  2     | server          | No additional components
  3     | client          | Install SAP HANA Database Client version 2.14.23.1667857685
  4     | lss             | Install SAP HANA Local Secure Store version 2.5.0.0
  5     | studio          | Install SAP HANA Studio version 2.3.70.000000
  6     | xs              | Install SAP HANA XS Advanced Runtime version 1.0.152.1100
  7     | afl             | Install SAP HANA AFL (incl.PAL,BFL,OFL) version 2.00.065.0000.1665821064
  8     | eml             | Install SAP HANA EML AFL version 2.00.065.0000.1665821064
  9     | epmmds          | Install SAP HANA EPM-MDS version 2.00.065.0000.1665821064
  10    | sap_afl_sdk_apl | Install Automated Predictive Library version 4.203.2223.0.0
Enter comma-separated list of the selected indices [3]:2

後の設問は後述する暗号化の項目以外は基本デフォルト設定とします。
最新バージョンのHANAだと暗号化のデフォルトがYESとなっているようです。
S/4 HANA2022をインストールした際に使用した最新のHANA(050かな?)ではNOでした。
今回はNOで進めます。

暗号化に関する設問
Do you want to enable backup encryption? [y]: n
Do you want to enable data and log volume encryption? [y]: n

そうこうしているうちにインストールが完了しました。

インストール完了
SAP HANA Database System installed
Log file written to '/var/tmp/hdb_HDB_hdblcm_install_2023-03-13_11.25.22/hdblcm.log' on host 'SRHTYO02DB'.

バージョン確認をします。

バージョン確認
su - hdbadm
HDB version

問題なくインストールが完了しているようです。

バージョン情報
HDB version info:
  version:             2.00.073.00.1695288802
  branch:              fa/hana2sp07
  machine config:      linuxx86_64
  git hash:            bd5a764f6e1a36488a7bcfe9a134471227715b10
  git merge time:      2023-09-21 11:33:22
  weekstone:           0000.00.0
  cloud edition:       0000.00.00
  compile date:        2023-09-21 11:46:33
  compile host:        ld4551
  compile type:        rel

次の記事ではS/HANAのインスト―ルを実施します。
自分の成長につながるため、何か気づき質問等ありましたら是非コメントよろしくお願いします。

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0