執行安裝精靈是配置資料庫連線及建立資料庫表格的建議方法。
如果您偏好手動執行這個程序,請利用這個主題來編輯 teamserver.properties 檔,以設定 SQL Server 資料庫連線,並執行 -createTables 指令來建立資料庫表格。
程序
- 如果要建立資料庫,請參閱設定 SQL Server 資料庫。
- 每個應用程式都有您必須將開啟及修改個別的 teamserver.properties 檔。
這些檔案位於 JazzInstallDir/server/conf 目錄下其各自的目錄(jts、ccm 和 qm)中。
請開啟每一個 teamserver.properties 檔,並且指定資料庫和連線的詳細資料。
註: 請將 JAZZ 替換成您的資料庫名稱,以及將伺服器位址替換成您的完整主機名稱。
- 在「Derby 配置」之下的各行,在每一行之前放置 # 記號,以將它們註銷:
#com.ibm.team.repository.db.vendor = DERBY
# com.ibm.team.repository.db.jdbc.location=conf/jts/derby/repositoryDB
# com.ibm.team.datawarehouse.db.vendor=DERBY
# com.ibm.team.datawarehouse.db.jdbc.location=conf/jts/derby/warehouseDB
# com.ibm.team.datawarehouse.db.net.port=1527
- 在「SQL Server 配置」之下的各行,移除每一行前面的 # 記號,以將它們解除註解:
com.ibm.team.repository.db.vendor = SQLSERVER
com.ibm.team.repository.db.jdbc.location=//localhost:1433;databaseName=jazz;user=jazzDBuser;password={password}
com.ibm.team.repository.db.jdbc.password=jazzDBpswd
com.ibm.team.datawarehouse.db.vendor = SQLSERVER
com.ibm.team.datawarehouse.db.jdbc.location=//localhost:1433;databaseName=jazz;user=jazzDBuser;password={password}
com.ibm.team.datawarehouse.db.jdbc.password=jazzDBpswd
com.ibm.team.datawarehouse.db.base.folder = /jazzdw
com.ibm.team.datawarehouse.report.user = RPTUSER
- 編輯 com.ibm.team.repository.db.jdbc.location 和 com.ibm.team.datawarehouse.db.jdbc.location 內容中的下列值:
註: 請勿變更 com.ibm.team.repository.db.jdbc.location 和 com.ibm.team.datawarehouse.db.jdbc.location 內容中的 password={password} 文字。
- 在 com.ibm.team.repository.db.jdbc.password 和 com.ibm.team.datawarehouse.db.jdbc.password 內容中,指定使用者密碼。
- 將資料倉儲基本資料夾變更為資料庫伺服器上的路徑。請注意,您必須手動建立這個資料夾。
在 Windows 上,如果指定新路徑,則必須使用雙反斜線來指定。
例如,com.ibm.team.datawarehouse.db.base.folder = C:\\jazzdw\\tempspace32k。
- 在 com.ibm.team.datawarehouse.report.user = RPTUSER 這一行中,輸入要授與適當許可權的報告使用者。
預設值是 RPTUSER。
註: 如果您使用安裝精靈,會將適當許可權授與報告使用者。如果您想手動授與許可權,這個使用者必須能夠在資料庫上選取,以便檢視報告。
- 將 com.ibm.team.fulltext.indexLocation=conf/jts/indices/workitemindex 這一行的值變更為全文索引的完整路徑位置。
例如,輸入 com.ibm.team.fulltext.indexLocation=c:/Progra~1/IBM/JazzTeamServer/server/conf/jts/indices/workitemindex。
- 將 com.ibm.team.jfs.index.root.directory=indices 這一行的值變更為 Jazz Foundation Service 索引根目錄的完整路徑位置。
例如,輸入 com.ibm.team.jfs.index.root.directory=c:/Progra~1/IBM/JazzTeamServer/server/conf/jts/indices。
- 建立每一個資料庫之後,您必須執行「儲存庫工具」指令,來建立資料庫表格。
重要: 只有在這是新安裝時,才能執行 createTables 指令。
註: 當您執行
repotools 指令時,將會更新
teamserver.properties 檔,而具有原始內容的原始檔案會儲在相同目錄中。
您也可能看到警告指出公用 URI 未設定。您現在可以忽略這個警告,因為
執行安裝精靈(自訂設定)時會設定公用 URI。
- 針對 Jazz Team Server,移至 JazzInstallDir/server 目錄,然後執行這些指令:
repotools-jts -createTables
repotools-jts -createWarehouse
- 針對「變更與配置管理」應用程式,移至 JazzInstallDir/server 目錄,然後執行這些指令:
repotools-ccm -createTables
- 針對「品質管理」應用程式,移至 JazzInstallDir/server 目錄,然後執行這些指令:
repotools-qm -createTables