應用程式開發:建置及執行應用程式

| | |

動態重新配置範例 (AIX)

|

DB2 Universal Database(TM) (UDB) 8.2 版 FixPak 3 (相當於 V8.1 |Fixpak 10) 提供有新的範例檔 ibm_db2_sln_upart_smt|下表顯示範例檔的名稱及說明。

|

| |||||||||||||||
表 17. 動態重新配置範例 Script
範例 Script 名稱 檔案說明
ibm_db2_sln_upart_smt 這個 AIX 版的 Korn Shell 動態重新配置 Script (DR Script) 可讓您更容易使用 AIX 5.3 版 |(在 POWER5 型 pSeries(R) 系統上執行,如 p5 570 及 p5 590) 隨附的「動態邏輯分割 (DLPAR)」功能。這個 Script 類似於 ibm_db2_sln DR Script, |但是為了支援如微分割及 SMT 的 POWER5(TM) 及 AIX V5.3 特性,已進行最佳化。 |進一步資訊位在 DR Script 本身中。
|

ibm_db2_sln_upart_smt 範例 Script 位於 DB2 UDB for AIX 上的 sqllib/samples/DLPAR 目錄。

Linux 支援的開發軟體

如需安裝明細,請參閱 DB2 UDB 8.2.2 版版本注意事項中的「Linux 2.6 核心程式安裝映像檔」 (本版次新增的功能一節)。

下表說明當推出 FixPak 9 時支援的 DB2 Linux 架構。請檢查之前的驗證網站,以取得這個支援的更新:

   http://www.ibm.com/db2/linux/validate

表 18. Linux on Intel(R) x86 (32 位元)
發行版 核心程式 檔案庫 註解
Conectiva Linux Enterprise Edition (CLEE) 2.4.19 glibc 2.2.5 以 United Linux 1.0 驅動
LINX Rocky Secure Server 2.1 2.4.21 glibc 2.2.5
Red Flag Advanced Server 4.0 2.4.21-as.2 glibc 2.2.93-5
Red Flag Function Server 4.0 2.4.20-8smp glibc 2.2.93-5
Red Hat Enterprise Linux 2.1 AS/ES/WS 2.4.9-e16 glibc 2.2.4
Red Hat Enterprise Linux (RHEL) 3 AS/ES/WS 2.4.21-7.EL glibc-2.3.2- 95.3
Red Hat Enterprise Linux (RHEL) 4 2.6.9 glibc-2.3.3 也需要 compat-libstdc++-33 套件
SCO Linux 4.0 2.4.19 glibc 2.2.5 以 United Linux 1.0 驅動
SuSE Pro 8.0 2.4.18 glibc 2.2.5
SuSE Pro 8.1 2.4.19 glibc 2.2.5
SuSE Linux Enterprise Server (SLES) 7 2.4.7 glibc 2.2.2
SuSE Linux Enterprise Server (SLES) 8 2.4.19 glibc 2.2.5 已驗證至 SuSE Service Pack 2 層次
SuSE Linux Enterprise Server (SLES) 9 2.6.5 glibc-2.3.3
Turbolinux 7 Server 2.4.9 glibc 2.2.4
Turbolinux 8 Server 2.4.18-5 glibc 2.2.5
Turbolinux Enterprise Server 8 2.4.19 glibc 2.2.5
United Linux 1.0 2.4.19 glibc 2.2.5

表 19. Linux on Intel(R) x86 (32 位元) 非企業發行版 (供應商不再支援)
發行版 核心程式 檔案庫 註解
Red Hat 7.2 2.4.9-34 glibc 2.2.4
Red Hat 7.3 2.4.18 glibc 2.2.5
Red Hat 8.0 2.4.18-14 glibc 2.2.93-5
SuSE 7.3 2.4.10 glibc 2.2.4

表 20. Linux on s/390 及 zSeries(R) (s/390 上支援 31 位元核心程式版本; zSeries 上則支援 64 位元)
發行版 核心程式 檔案庫 註解
Red Hat 7.2 2.4.9-38 glibc 2.2.4
Red Hat Enterprise Linux (RHEL) 4 2.6.9 glibc-2.3.3 也需要 compat-libstdc++-33 套件
SuSE Linux Enterprise Server (SLES) 7 2.4.7-58 glibc 2.2.4 compat.rpm 包含 libstdc++ 6.1。請使用 JDK 1.3.1 SR 1 for Java(TM)
SuSE Linux Enterprise Server (SLES) 8 2.4.19 glibc 2.2.5 以 United Linux 1.0 驅動
SuSE Linux Enterprise Server (SLES) 9 2.6.5 glibc-2.3.3
Turbo Linux Enterprise Server (TLES) 8 2.4.19 glibc 2.2.5 以 United Linux 1.0 驅動
United Linux 1.0 2.4.19 glibc 2.2.5

表 21. Linux on x86-64
發行版 核心程式 檔案庫 註解
Red Hat Enterprise Linux (RHEL) 3 AS/ES/WS 2.4.21-7.EL glibc-2.3.2- 95.3
Red Hat Enterprise Linux (RHEL) 4 2.6.9 glibc-2.3.3 也需要 compat-libstdc++-33 套件
SuSE Linux Enterprise Server (SLES) 8.0 2.4.19-SMP glibc 2.2.5-16
SuSE Linux Enterprise Server (SLES) 9 2.6.5 glibc-2.3.3

表 22. Linux on POWER(TM) (iSeries 及 pSeries(R))
發行版 核心程式 檔案庫 註解
Red Hat Enterprise Linux (RHEL) 3 AS 2.4.21-7.EL glibc-2.3.2- 95.3
Red Hat Enterprise Linux (RHEL) 4 2.6.9 glibc-2.3.3 也需要 compat-libstdc++-33 套件
SuSE Enterprise Server (SLES) 8 2.4.19-16 glibc 2.2.5 以 United Linux 1.0 驅動
SuSE Linux Enterprise Server (SLES) 9 2.6.5 glibc-2.3.3
Turbolinux Enterprise Server 8 2.4.19-16 glibc 2.2.5 以 United Linux 1.0 驅動
United Linux 1.0 2.4.19 glibc 2.2.5

表 23. Linux on IA64
發行版 核心程式 檔案庫 註解
Red Hat Enterprise Linux 2.1 AS/ES/WS 2.4.18-e. 12smp glibc
Red Hat Enterprise Linux (RHEL) 3 AS/ES/WS 2.4.21-7.EL glibc-2.3.2- 95.3
Red Hat Enterprise Linux (RHEL) 4 2.6.9 glibc-2.3.3 也需要 compat-libstdc++-33 套件
SuSE Linux Enterprise Server (SLES) 8 2.4.19-SMP glibc 2.2.5 以 United Linux 1.0 驅動
SuSE Linux Enterprise Server (SLES) 9 2.6.5 glibc-2.3.3
United Linux 1.0 2.4.19 glibc 2.2.5

DB2 UDB for Linux 2.6 核心程式型 Linux 發行版 (適用於 Intel x86) 支援下列程式設計語言及編譯器:

C
GNU/Linux gcc 3.3 版
C++
GNU/Linux g++ 3.3 版
COBOL
Micro Focus COBOL Server Express 2.2 版 (含 Service Pack 1)
Java(TM)
IBM(R) Developer Kit and Runtime Environment for Linux,Java 2 Technology Edition,1.3.1 及 1.4.1 版 Service Release 1,32 位元版本
註:
如果未安裝最新支援版本的開發者套件,DB2 UDB 將安裝它, 除非 DB2 UDB 安裝只是用來更新先前的 DB2 UDB 第 8 版安裝。如果更新先前的 DB2 UDB 第 8 版安裝, 則必須從 CD-ROM 以手動方式安裝支援的開發者套件。
Perl
Perl 5.004_04 或更新版本、DBI 0.93 或更新版本
PHP
PHP 4.3.4 或更新版本
REXX
Object REXX Interpreter for Linux 2.1 版

DB2 UDB for Linux 2.6 核心程式型 Linux 發行版 (用於 x86-64) 上的 32 位元實例支援下列程式設計語言及編譯器:

C
GNU/Linux gcc 3.3 版
註:
"-m32" 編譯器選項必須用來產生 32 位元應用程式或常式 (儲存程序及使用者定義的函數)。
C++
GNU/Linux g++ 3.3 版
註:
  1. 這些 GNU/Linux g++ 編譯器版本並不接受某些 fstream 函數的整數參數。 如需詳細資訊,請參閱編譯器文件。
  2. "-m32" 編譯器選項必須用來產生 32 位元應用程式或常式 (儲存程序及使用者定義的函數)。
Java
IBM Developer Kit and Runtime Environment for Linux x86,Java 2 Technology Edition,1.3.1 版 Service Release 4,32 位元版本,以及 1.4.1 版 Service Release 1,32 位元版本。
註:
如果未安裝最新支援版本的開發者套件,DB2 UDB 將安裝它, 除非 DB2 UDB 安裝只是用來更新先前的 DB2 UDB 第 8 版安裝。如果更新先前的 DB2 UDB 第 8 版安裝, 則必須從 CD-ROM 以手動方式安裝支援的開發者套件。
Perl
Perl 5.8
PHP
PHP 4.3.4 或更新版本

DB2 UDB for Linux 2.6 核心程式型 Linux 發行版 (適用於 Linux on x86-64) 上的 64 位元實例支援下列程式設計語言及編譯器:

C
GNU/Linux gcc 3.3 版
C++
GNU/Linux g++ 3.3 版
註:
這些 GNU/Linux g++ 編譯器版本並不接受某些 fstream 函數的整數參數。 如需詳細資訊,請參閱編譯器文件。
Java
DB2 UDB 目前不支援任何 64 位元 Java Developer Kit for Linux on x86-64。
Perl
Perl 5.8
PHP
PHP 4.3.4 或更新版本

自訂 SQL 程序的前置編譯及連結選項

您可以利用下列命令來設定全實例的 DB2(R) 登錄變數 DB2_SQLROUTINE_PREPOPTS, 以自訂 SQL 程序的前置編譯及連結選項:

db2set DB2_SQLROUTINE_PREPOPTS=<options>

除了 8.2 版中所說明的選項外,也容許 REOPT 選項:

BLOCKING {UNAMBIG | ALL | NO}
DATETIME {DEF | USA | EUR | ISO | JIS | LOC}
DEGREE {1 | degree-of-parallelism | ANY}
DYNAMICRULES {BIND | RUN}
EXPLAIN {NO | YES | ALL}
EXPLSNAP {NO | YES | ALL}
FEDERATED {NO | YES}
INSERT {DEF | BUF}
ISOLATION {CS | RR | UR | RS | NC}
QUERYOPT optimization-level
REOPT {ALWAYS | NONE | ONCE}
VALIDATE {RUN | BIND}

需要 C/C++ 編譯選項 (Linux on POWER 64 位元)

當使用 gcc/g++,為 DB2 Universal Database(TM) for Linux(TM) on POWER 上的 64 位元實例建置 C/C++ 應用程式及常式時, 需要編譯器選項 "-m64"。

當使用 xlc/xlC,為 DB2 Universal Database for Linux on POWER 上的 64 位元實例建置 C/C++ 應用程式及常式時, 需要編譯器選項 "-q64"。

Micro Focus COBOL 儲存程序的 compile 及 link 命令 (HP-UX)

關於在 HP-UX 上使用 Micro Focus COBOL 來建置儲存程序 DB2 Universal Database 8.2 版文件中顯示的 compile 及 link 命令不正確。 實際 Script sqllib/samples/cobol_mf/bldrtn 內含的 compile 命令是正確的。 現在,compile 及 link 命令會組合成單一命令,使用 -y 選項, 來指定想要的輸出是共用檔案庫。

最低支援的 Micro Focus COBOL 版本 (HP-UX)

HP-UX 上最低支援的 Micro Focus COBOL 編譯器及執行時期版本是 Micro Focus Server Express 2.2 - Service Pack 1 加上 Fix Pack Fixpack22.02_14 for HP-UX PA-RISC 11.x (32/64bit)。這個 Fix Pack 可以從 Micro Focus Support Line 網站取得,其網址為 http://supportline.microfocus.com

設定 Micro Focus COBOL 儲存程序的環境變數 (Windows)

為了能夠在 Windows(R) 上執行 Micro Focus COBOL 外部常式, 需要確定 Micro Focus COBOL 環境變數已永久地設為系統變數。

程序

若要將環境變數設為系統變數:

  1. 開啟「控制台」
  2. 選取系統
  3. 選取進階標籤
  4. 按一下環境變數
  5. 新增變數至系統變數清單

使用者變數清單、在命令提示或在 Script 中設定環境變數是不夠的。

[ 頁面頂端 |前一頁 | 下一頁 | 目錄 ]