urgent: DataMigration error
We have built an application based on RTC 2.0, now I need to migrate the data from Derby to DB2. I use the following command to do the migration:
./repotools.sh -clean -copy toFile=myDB.tar overwrite=yes source.teamserver.properties=./conf/jazz/mydb.properties target.teamserver.properties=./conf/jazz/teamserver.properties
I run this command under server folder, and I have set DEFINE="$DEFINE -Dcom.ibm.team.repotools.rcp.allowInvalidBundles=true" in the repotools.sh. However, it always give me the following error message:
2009-09-20 04:16:01,158 CRJAZ1218I The bundle "..." with the id 311 is invalid, it is not "RESOLVED".
2009-09-20 04:16:01,158 CRJAZ1218I The bundle "..." with the id 313 is invalid, it is not "RESOLVED".
2009-09-20 04:16:02,784 Rational Jazz Team Server - Standard
2009-09-20 04:16:02,787 Unrecognized parameters: "target.team.server.properties", "./conf/jazz/mydb.properties", "".
2009-09-20 04:16:02,800 CRJAZ1363I Loading configuration from "com.ibm.team.repository.common/teamserver.properties".
2009-09-20 04:16:02,803 Usage:
repotools <addTables>
-addTables --Add database tables.
--Path to the teamserver.properties file.
--Path to the log file.
-clone --Create a clone of a repository (special purpose). See the product documentation for details.
toFile=<value> --Path to the TAR file.
target.teamserver.properties=<value> --Path to the target teamserver.properties file.
--Path to the source teamserver.properties file.
--Path to the log file.
--Whether to overwrite an existing TAR file.
--Do not prompt before creating the tables prior to importing.
--Do not perform imported data verification.
-convertTomcatUsers --Convert a tomcat-users.xml to encrypted passwords.
--The path to the tomcat users file.
--Path to the log file.
-copy --Copy data from one database to another, via a TAR file.
toFile=<value> --Path to the TAR file.
target.teamserver.properties=<value> --Path to the target teamserver.properties file.
--Path to the source teamserver.properties file.
--Path to the log file.
--Whether to overwrite an existing TAR file.
--Do not prompt before creating the tables prior to importing.
--Do not perform imported data verification.
-createTables --Create the database tables.
--Path to the teamserver.properties file.
--Path to the log file.
--Do not prompt before creating the tables.
-createUser --Create a user and/or assign a license. If a user with the specified id exists, it will be updated.
userId=<value> --The id of the user to be created or updated.
--The name of the user. The default value is the user id.
--The e-mail address of the user.
--The group the user is a member of. Valid values are JazzAdmins, JazzDWAdmins, JazzUsers, JazzGuests.
--The id of the license to be assigned to the user. The license must exist.
--The connection URL for the server where the users will be stored.
--Admin user id to login to the Jazz repository.
--Admin password to login to the Jazz repository.
-createUsers --Create or update a batch of users from a file.
--The path to the file containing the users to be created or updated. The format of the file is a comma separated list of userid, e-mail address, name and license id.
--The connection URL for the server where the users will be stored.
--Admin user id to login to the Jazz repository.
--Admin password to login to the Jazz repository.
-dropTables --Drop the database tables.
--Path to the teamserver.properties file.
--Path to the log file.
--Do not prompt before dropping the tables.
-export --Export the contents of the database tables to a TAR files.
toFile=<value> --Path to the TAR file.
--Path to the teamserver.properties file.
--Path to the log file.
--Whether to overwrite an existing TAR file.
-help --Display this command usage.
-import --Import the contents of a TAR into newly create database tables.
fromFile=<value> --Path to the TAR file.
--Path to the teamserver.properties file.
--Path to the log file.
--Do not prompt before creating the tables prior to importing.
--Do not perform imported data verification.
-isServerRunning --Check to see if the server is running.
--Path to the teamserver.properties file.
--Path to the log file.
-listLicenses --List the known client access licenses for the specified server.
--The connection URL for the server.
--Admin user id to login to the Jazz repository.
--Admin password to login to the Jazz repository.
-rebuildIndices --Rebuild the database's indices.
--Path to the teamserver.properties file.
--Path to the log file.
-rebuildTextIndices --Rebuild text indices.
--Path to the teamserver.properties file.
--Path to the log file.
-verify --Verify the integrity of the database tables.
--Path to the teamserver.properties file.
--Path to the log file.
--The level at which to perform verification.
Examples:
repotools -addTables
repotools -clone toFile=/export.tar target.teamserver.properties=db.properties
repotools -convertTomcatUsers tomcatUsersPath=tomcat/conf/tomcat-users.xml
repotools -copy toFile=/export.tar target.teamserver.properties=db.properties
repotools -createTables
repotools -createUser userid=testId name="Test User1" emailAddress=test@test.com
repotools -createUsers fromFile=users.csv
repotools -dropTables
repotools -export toFile=/export.tar
repotools -help
repotools -import fromFile=/export.tar
repotools -isServerRunning
repotools -listLicenses
repotools -rebuildIndices
repotools -rebuildTextIndices
repotools -verify level=5
Tip: The -clean parameter can always be used to force repotools to be reprovisioned.
my OS is linux RedHat, could any one kindly to help me? Thank you.
./repotools.sh -clean -copy toFile=myDB.tar overwrite=yes source.teamserver.properties=./conf/jazz/mydb.properties target.teamserver.properties=./conf/jazz/teamserver.properties
I run this command under server folder, and I have set DEFINE="$DEFINE -Dcom.ibm.team.repotools.rcp.allowInvalidBundles=true" in the repotools.sh. However, it always give me the following error message:
2009-09-20 04:16:01,158 CRJAZ1218I The bundle "..." with the id 311 is invalid, it is not "RESOLVED".
2009-09-20 04:16:01,158 CRJAZ1218I The bundle "..." with the id 313 is invalid, it is not "RESOLVED".
2009-09-20 04:16:02,784 Rational Jazz Team Server - Standard
2009-09-20 04:16:02,787 Unrecognized parameters: "target.team.server.properties", "./conf/jazz/mydb.properties", "".
2009-09-20 04:16:02,800 CRJAZ1363I Loading configuration from "com.ibm.team.repository.common/teamserver.properties".
2009-09-20 04:16:02,803 Usage:
repotools <addTables>
-addTables --Add database tables.
--Path to the teamserver.properties file.
--Path to the log file.
-clone --Create a clone of a repository (special purpose). See the product documentation for details.
toFile=<value> --Path to the TAR file.
target.teamserver.properties=<value> --Path to the target teamserver.properties file.
--Path to the source teamserver.properties file.
--Path to the log file.
--Whether to overwrite an existing TAR file.
--Do not prompt before creating the tables prior to importing.
--Do not perform imported data verification.
-convertTomcatUsers --Convert a tomcat-users.xml to encrypted passwords.
--The path to the tomcat users file.
--Path to the log file.
-copy --Copy data from one database to another, via a TAR file.
toFile=<value> --Path to the TAR file.
target.teamserver.properties=<value> --Path to the target teamserver.properties file.
--Path to the source teamserver.properties file.
--Path to the log file.
--Whether to overwrite an existing TAR file.
--Do not prompt before creating the tables prior to importing.
--Do not perform imported data verification.
-createTables --Create the database tables.
--Path to the teamserver.properties file.
--Path to the log file.
--Do not prompt before creating the tables.
-createUser --Create a user and/or assign a license. If a user with the specified id exists, it will be updated.
userId=<value> --The id of the user to be created or updated.
--The name of the user. The default value is the user id.
--The e-mail address of the user.
--The group the user is a member of. Valid values are JazzAdmins, JazzDWAdmins, JazzUsers, JazzGuests.
--The id of the license to be assigned to the user. The license must exist.
--The connection URL for the server where the users will be stored.
--Admin user id to login to the Jazz repository.
--Admin password to login to the Jazz repository.
-createUsers --Create or update a batch of users from a file.
--The path to the file containing the users to be created or updated. The format of the file is a comma separated list of userid, e-mail address, name and license id.
--The connection URL for the server where the users will be stored.
--Admin user id to login to the Jazz repository.
--Admin password to login to the Jazz repository.
-dropTables --Drop the database tables.
--Path to the teamserver.properties file.
--Path to the log file.
--Do not prompt before dropping the tables.
-export --Export the contents of the database tables to a TAR files.
toFile=<value> --Path to the TAR file.
--Path to the teamserver.properties file.
--Path to the log file.
--Whether to overwrite an existing TAR file.
-help --Display this command usage.
-import --Import the contents of a TAR into newly create database tables.
fromFile=<value> --Path to the TAR file.
--Path to the teamserver.properties file.
--Path to the log file.
--Do not prompt before creating the tables prior to importing.
--Do not perform imported data verification.
-isServerRunning --Check to see if the server is running.
--Path to the teamserver.properties file.
--Path to the log file.
-listLicenses --List the known client access licenses for the specified server.
--The connection URL for the server.
--Admin user id to login to the Jazz repository.
--Admin password to login to the Jazz repository.
-rebuildIndices --Rebuild the database's indices.
--Path to the teamserver.properties file.
--Path to the log file.
-rebuildTextIndices --Rebuild text indices.
--Path to the teamserver.properties file.
--Path to the log file.
-verify --Verify the integrity of the database tables.
--Path to the teamserver.properties file.
--Path to the log file.
--The level at which to perform verification.
Examples:
repotools -addTables
repotools -clone toFile=/export.tar target.teamserver.properties=db.properties
repotools -convertTomcatUsers tomcatUsersPath=tomcat/conf/tomcat-users.xml
repotools -copy toFile=/export.tar target.teamserver.properties=db.properties
repotools -createTables
repotools -createUser userid=testId name="Test User1" emailAddress=test@test.com
repotools -createUsers fromFile=users.csv
repotools -dropTables
repotools -export toFile=/export.tar
repotools -help
repotools -import fromFile=/export.tar
repotools -isServerRunning
repotools -listLicenses
repotools -rebuildIndices
repotools -rebuildTextIndices
repotools -verify level=5
Tip: The -clean parameter can always be used to force repotools to be reprovisioned.
my OS is linux RedHat, could any one kindly to help me? Thank you.