Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How Can You Use One Database for Two JTS Servers

I have a single server which I use for a Staging Server.  It's an "image" of the Production server without going to the point of a rename.  I simply modify the "hosts" file so it points to itself.  You need to run it from the browser on that server.  Its isolated and only users that can log on to that server can access it.  So I decided to create another JTS, on that same server, but make this one from scratch and available from outside browsers.  I would like to use the same database currently being used by the Staging Server JTS.  Is this possible?  I tried going through JTS setup but when I get to the SQL Database screen, I enter the database but get the following message:

The configured database lock id does not match the lock id in the database. This can happen if 2 applications or Jazz Team Servers are trying to access the same set of tables, or if the lock id was overwritten or lost in the teamserver.properties configuration file. Check the server configuration and the database connection spec and ensure they are correct. To recover from an emergency lockout, the lock can be reset using the 'repotools -resetRepoLockId' command. Check the log file for information on the affected database.

Running "resetRepoLockId" does not work because it uses the current teamserver.properties files which has not been updated yet and still points to the default Derby database.  I tried "hacking" the teamserver.properties file and copy from the Staging Server teamserver.properities file, but that gets me more messed up.

Any ideas on how I can do this?  I do not run both JTS's at the same time.  They are running off of WebSpeher so I control which one is up and running.  Any ideas would be appreciated! 

0 votes


Accepted answer

Permanent link

I don't know why you would do it that way - you basically contradict yourself. You tried to create the second JTS from scratch, which means that you should start with an "empty" database. But then why do you want to use the same database with existing data? It just makes no sense to me.

It should be easy enough to create a new SQL Server database for the second JTS. I don't see any benefit (if any at all) of using the existing JTS database.

Ralph Schoon selected this answer as the correct answer

1 vote

Comments

Agreed. When setting up a new application create a new database with a new name. 

Donald, the rational was pretty simple to use the one database.  It already had all of the data from the Production server and will only be used for the staging server when I do upgrades.  Getting new databases is not as easy as 1-2-3 around here, and takes days (I know my problem).  So if the database existed, I figured I might as well use it.

I will accept Ralph's response though and go and get new databases created.  Thanks!

You probably only consider things that you see as "data". Remember that the database also contains metadata and other application self-contained data such such linkage between applications, applications configuration and etc.

The only thing in common two JTS DBs have is the table structure the data inside is completely different. 


Yes, you can backup on JTS and restore another JTS and maybe get it to work, but then you would have to be very careful and know how to back up CLM.

I do this every day with a tool I have written for me in my demo environments.  

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,121

Question asked: Feb 04 '17, 10:28 p.m.

Question was seen: 1,536 times

Last updated: Feb 08 '17, 2:16 a.m.

Confirmation Cancel Confirm