What to do when JTS database corrupted
2 answers
I think a good approach to this problem is:
1. Backup the JTS server conf folder (.../server/conf/jts);
2. Drop the lost JTS database and recreate it;
3. Run the JTS setup (you don't need to fill up all the config fields like LDAP, server name etc), only the database config to create the tables. Do the setup only to the JTS App.
4. Stop the server (all app) and restore the backup you did on step 1.
5. Start the server.
It should work.
Change to the database directory and copy the database backup to a secure location.
The default location is Jazz_install_dir / server / conf / app / derby / repositoryDB, where app is jts, ccm, rm, qm, dcc, gc, relm, ldx, lqe, or dm.
Start the Jazz Team Server.
To restore a version of a database from a backup, follow these steps:
Stop the Jazz Team Server.
Replace the Derby database directory with the version from the backup.
Restart the Jazz Team Server.