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

Initialize Derby Database?

Hi,

I've been playing with RTC 2.0 and now want to scrap the content in there and start from scratch. I don't want to archive anything and have it lying around.

How do I do this?

Thanks

Jon

0 votes



4 answers

Permanent link
jonm@uk.ibm-dot-com.no-spam.invalid (jonm) wrote in news:h5knn5$okn$1
@localhost.localdomain:

How do I do this?

repotools -createtables

should do it (by dropping and recreating the tables and data)

--
Christophe Elek
Jazz L3
IBM Software Group - Rational

0 votes


Permanent link
Thanks Christophe.

I dropped the tables, and recreated them. Your answer helped immensley, but I was tripped up a little because the command is case sensitive (createTables).

One interesting thing you might want to look at is that although I have now initialized the database and it is empty... I can still log on with my old username. The user by the way is *not* listed as a user. I didn't need to log in as ADMIN at all. Seems like a bug somewhere, but I'm not sure where. I have bounced the server, but perhaps clearing the cache could help.

If this is required, it seems to be a bug and possible a security issue.

Thanks very much again

Jon


jonm@uk.ibm-dot-com.no-spam.invalid (jonm) wrote in news:h5knn5$okn$1
@localhost.localdomain:

How do I do this?

repotools -createtables

should do it (by dropping and recreating the tables and data)

--
Christophe Elek
Jazz L3
IBM Software Group - Rational

0 votes


Permanent link
jonm wrote:
One interesting thing you might want to look at is that although I
have now initialized the database and it is empty... I can still log
on with my old username. The user by the way is *not* listed as a
user. I didn't need to log in as ADMIN at all. Seems like a bug
somewhere, but I'm not sure where. I have bounced the server, but
perhaps clearing the cache could help.

If this is required, it seems to be a bug and possible a security
issue.

If you're using Tomcat as the app server, your "user database" is held
in the text file tomcat-users.xml, not in Derby. You may need to
manually edit that file and clip out the users, or just copy in an
original version.

MK

0 votes


Permanent link
Genius

Thanks again


jonm wrote:
One interesting thing you might want to look at is that although I
have now initialized the database and it is empty... I can still log
on with my old username. The user by the way is *not* listed as a
user. I didn't need to log in as ADMIN at all. Seems like a bug
somewhere, but I'm not sure where. I have bounced the server, but
perhaps clearing the cache could help.

If this is required, it seems to be a bug and possible a security
issue.

If you're using Tomcat as the app server, your "user database" is held
in the text file tomcat-users.xml, not in Derby. You may need to
manually edit that file and clip out the users, or just copy in an
original version.

MK

0 votes

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

Question asked: Aug 08 '09, 4:23 p.m.

Question was seen: 4,490 times

Last updated: Aug 08 '09, 4:23 p.m.

Confirmation Cancel Confirm