用于将 Jazz™ Team Server 数据库从 Derby 更改为 DB2® 的步骤。
关于此任务
本节假定您要迁移数据库,但是不同时更改服务器的版本。如果您打算迁移数据库并且还要更改服务器版本,那么应确保使用与目标服务器相匹配的 repotools 版本。
- 停止 Jazz Team Server。
- 使用数据库命令来备份数据库。这是一项预防措施,以防某些对象出错。
- 在 JazzInstallDir/server 目录中,编辑 teamserver.db2.properties 文件以确保目标属性准确地描述了您要迁移到其中的 DB2 数据库。复查 teamserver.properties 文件的内容,并将任何必需的更改复制到 teamserver.db2.properties 中。
- 运行 repotools,以将 Jazz 存储库中的内容从由 teamserver.properties 描述的 Derby 数据库复制到由 teamserver.db2.properties 描述的 DB2 数据库中。用于 Linux® 的 repotools.sh 脚本和用于 Windows® 的 repotools.bat 脚本被打包在 JazzInstallDir/server 目录中。 下面是一个使用 repotools 的示例命令。请参阅 repotools 文档以了解更多信息。
repotools -copy toFile=temp.tar target.teamserver.properties=teamserver.db2.properties
- 将 JazzInstallDir/server 目录中的 teamserver.properties 文件重命名为 teamserver.derby.properties。
- 将 JazzInstallDir/server 目录中的 teamserver.db2.properties 文件重命名为 teamserver.properties。
- 启动服务器。