Question & Answer
Question
現在使用している Db2 のバージョンとエディションの確認方法を教えてください。
Answer
現在使用中の Db2 のバージョンは db2level コマンドで、登録されているエディションは db2licm -l コマンドで表示できます。
特に Db2 V10.5 以降の Workgroup Server Edition 以上のサーバー・エディションは、共通のインストール・イメージを使用するため、ライセンス情報でのみエディションを確認可能です。
a) Linux および UNIX 版の場合
a) Linux および UNIX 版の場合
- Db2 のインスタンス・オーナーで、Db2 サーバーにログインします。
- バージョンを確認する場合は、db2level コマンドを実行します。
例1 : V10.5 FixPack 2 のケース$ db2level DB21085I This instance or install (instance name, where applicable: "e105q2b") uses "64" bits and DB2 code release "SQL10052" with level identifier "0603010E". Informational tokens are "DB2 v10.5.0.2", "s131001", "IP23529", and FixPack "2". Product is installed at "/work/db2/V105FP2".
$ db2level DB21085I This instance or install (instance name, where applicable: "db2inst1") uses "64" bits and DB2 code release "SQL11054" with level identifier "0605010F". Informational tokens are "DB2 v11.5.4.0", "s2006161200", "DYN2006161200AMD64", and Fix Pack "0". Product is installed at "/opt/ibm/db2/V11.5".
例 : Advanced Workgroup Server Edition のケース$ db2licm -l Product name: "DB2 Advanced Workgroup Server Edition" License type: "CPU Option" Expiry date: "Permanent" Product identifier: "db2awse" Version information: "10.5" Max amount of memory (GB): "128" Enforcement policy: "Soft Stop"
b) Windows 版の場合
- Windows の管理者で Db2 サーバーにログオンします。
- [スタート] - [IBM DB2 <コピー名>] から [DB2 コマンド ウィンドウ - 管理者] を開きます。
バージョンを確認する場合は、db2level コマンドを実行します。
例 : V10.5 FixPack 5 のケースC:\>db2level DB21085I This instance or install (instance name, where applicable: "DB2") uses "64" bits and DB2 code release "SQL10055" with level identifier "0606010E". Informational tokens are "DB2 v10.5.500.107", "s141128", "IP23628", and FixPack "5". Product is installed at "C:\PROGRA~1\IBM\SQLLIB" with DB2 Copy Name"DB2COPY1".
例 : Advanced Enterprise Server Edition のケースC:\>db2licm -l Product name: "DB2 Advanced Enterprise Server Edition" License type: "CPU Option" Expiry date: "Permanent" Product identifier: "db2aese" Version information: "10.5" Enforcement policy: "Soft Stop"
運用上の考慮点
- 永続 (Permanent) ライセンスが登録されていない場合、「関連情報」の「Db2 のライセンス登録」を参照して、正しいライセンスを登録してください。
- バージョンはバージョン.リリース.モディフィケーション.フィックスパック(V.R.M.F) 形式で表示されます。かつモディフィケーションは V11.1 以降でのみ使用されています。たとえば v10.5.0.2 はバージョン 10 リリース 5 フィックスパック 2、v11.5.4.0 はバージョン 11 リリース 5 モディフィケーション 4 フィックスパック 0 を意味します。
- リリースがあがると「アップグレード」となり、インスタンスやデータベースのアップグレードが必要です。
[{"Type":"MASTER","Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"ARM Category":[{"code":"a8m500000008PknAAE","label":"Install\/Migrate\/Upgrade"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]
Was this topic helpful?
Document Information
Modified date:
30 August 2023
UID
swg21699248