用于将 Jazz™ Team Server 数据库从 Derby 更改为 DB2® 的步骤。
关于此任务
假设您在迁移数据库且同时未更改服务器的版本。如果您计划迁移并更改服务器版本,请确保使用与目标服务器相匹配的 repotools 版本。
- 停止 Jazz Team Server。
- 使用数据库命令备份数据库。这是一种预防性措施,以防出现意外。
- 在目录 JazzInstallDir/server/conf/jazz 中,编辑文件 teamserver.db2.properties,以确保目标属性准确描述正在迁移到的 DB2 数据库。检查文件 teamserver.properties 的内容,并复制对 teamserver.db2.properties 进行的任何必要的更改。
- 运行 repotools 以将 Jazz 存储库的内容从 teamserver.properties 描述的 Derby 数据库复制到到由 teamserver.db2.properties 描述的 DB2 数据库中。用于 Linux®、AIX® 和 Solaris 的脚本 repotools.sh 以及用于 Windows® 的脚本 repotools.bat 打包在目录 JazzInstallDir/server 中。 以下是使用 repotools 的示例命令。请参阅 repotools 文档以获取更多信息。
repotools -copy toFile=temp.tar target.teamserver.properties=teamserver.db2.properties
- 将目录 JazzInstallDir/server/conf/jazz 中的文件 teamserver.properties 重命名为 teamserver.derby.properties。
- 将目录 JazzInstallDir/server/conf/jazz 中的文件 teamserver.db2.properties 重命名为 teamserver.properties。
- 启动服务器。