配置資料庫階段作業持續性
您可以針對資料庫階段作業持續性,配置一個資料庫來收集階段作業資料。
關於這項作業
如果要配置資料庫階段作業持續性的階段作業管理機能,請完成下列步驟。
程序
- 建立和配置 JDBC 提供者。
- 建立一個指向資料庫的資料來源。
請使用您定義的 JDBC 提供者:資源 > JDBC > JDBC 提供者 > JDBC_provider > 資料來源 > 新建。資料來源應該是非 JTA,例如,已啟用非 XA。請記下資料來源的 JNDI 名稱。
指向現有的資料庫。
指向包含 DB2® 階段作業持續性表格的 z/OS® DB2 資料庫。
階段作業持續性的配置範例:
名稱 階段作業 JNDI 名稱 jdbc/sessions 儲存器管理的持續性 已選取 元件管理的鑑別別名 CELL/jaasalias 儲存器管理鑑別別名 CELL/jaasalias - 驗證資源 > JDBC
提供者 > JDBC_provider > 資料來源 > datasource_name 之下已列出正確的資料庫。 必要的話,請聯絡資料庫管理者,驗證正確的資料庫名稱。
例如:
資料庫名稱 LOC1(指定您的系統) 在階段作業持續性要用的 z/OS DB2 資料庫中,建立 DB2 表格。
針對階段作業持續性,配置 DB2 表格。
- 移至階段作業管理的適當層次。
- 在「其他內容」之下,按一下分散式環境設定
- 選取和按一下資料庫。
- 指定上一步驟的資料來源 JNDI 名稱。 資料庫使用者 ID 和密碼會區分大小寫。
- 指定用來存取資料庫和建立表格的資料庫使用者 ID 和密碼。 當您建立資料來源時,您可能指定了「儲存器管理鑑別別名」或「元件管理鑑別別名」;不過,階段作業管理程式並不會為了階段作業持續性而使用這兩項設定。對於階段作業持續性,階段作業管理程式會使用這個步驟指定的使用者 ID 和密碼。
- 選擇性的:
如果您想有多個階段作業表格實例,請在階段作業「使用者 ID」欄位中,附加綱目名稱。
階段作業管理程式會利用綱目名稱,來限定所有資料庫作業的階段作業表格名稱。如果只指定使用者 ID 而不含綱目名稱,綱目名稱預設為 NULL,因此,會建立以 NULL 為綱目名稱的表格名稱,例如 NULL.SESSIONS。您可以將使用者名稱修改成包含適當的綱目名稱,以便建立多個含有不同綱目名稱(而不是 NULL)的階段作業表格,並個別存取它們。
重新輸入密碼,來加以確認。
配置 DB2 階段作業資料庫的表格空間和頁面大小。
- 切換至多列綱目。
- 按一下確定。
- 如果您想變更調整參數,請在「其他內容」之下,按一下自訂調整參數。
- 按一下套用。
- 按一下儲存。
次主題
Switching to a multi-row schema
The multi-row schema configuration supports storing an unlimited amount of data that is only bounded by the database capacities in an application. The application can read individual fields instead of the whole record, which can help to improve performance by avoiding unnecessary Java object serialization. Configure the session management facility to store each attribute in a session object in its own row in the database by using the multi-row schema configuration.Configuring tablespace and page sizes for DB2 session databases
If you are using DB2 for session persistence, you can increase the page size to optimize performance for writing large amounts of data to the database. Page sizes of 8K, 16K, and 32K are supported.Creating a DB2 table for session persistence
Session data is collected and stored in a DB2 table. If you are using DB2 for session persistence, you must create and define a DB2 table that is associated with the application server.Configuring a table for session persistence
To configure a table for collecting session data, you must add the name of the table to the web container configuration properties.Creating a table for session persistence
You can use a database table to collect and store session data. If you are using a database table for session persistence, you must create and define a database table that is associated with the application server.Database settings
Use this page to specify the settings for database session support.


http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=tprs_cnfp
檔名:tprs_cnfp.html