WebSphere WebSphere Enterprise Service Bus, Version 6.0.1 作業系統: AIX, HP-UX, Linux, Solaris, Windows

更新資料庫統計資料

如果要讓 DB2 資料庫能夠最佳化查詢及尋找可用空間, 請使用 runstats Script 更新資料庫統計資料。

執行這項作業的原因和時機

建議您定期更新資料庫統計資料,尤其是在下列任何情況之下,更應該如此:

runstats Script 在 install_root/event/dbscripts/db2 目錄中。

這項作業的步驟

如果要更新資料庫統計資料,請執行下列指令之一:
這些參數如下:
db_user
要使用的資料庫使用者 ID。這個參數是必要的。
db_password
資料庫密碼。這個參數是選用的。如果您未在指令行中指定密碼,DB2 資料庫會提示您輸入。

範例

比方說,下列指令會利用資料庫使用者 ID dbadmin 和密碼 mypassword 來更新 Windows 系統中的 DB2 資料庫統計資料:

runstats.bat dbadmin mypassword

Task topic

使用條款 | 此頁的評等

「時間戳記」圖示前次更新: 5 Mar 2006
http://publib.boulder.ibm.com/infocenter/dmndhelp/v6rxmx/index.jsp?topic=/com.ibm.websphere.wesb.doc.nl1_6.0.1\doc\tcei_admin_runstats.html

(C) Copyright IBM Corporation 2005. All Rights Reserved.
本資訊中心採用 Eclipse 技術。(http://www.eclipse.org)