JIRA Database switch query

Hi All,

We have two JIRA instance running like, JIRA A with HSQL and JIAR B with oracle DB1.. both having same data.

Now I want to change the DB for these JIRA instance like, JIRA A has to connect DB1 and JIRA B to new oracle DB ie DB2? Please suggest the best way to do this.

Is it possible to simply change HSQL to Oracle DB1 for JIRA A by editing dbconfig.xml file? Is this will work? or JIRA everytime look for empty DB?

Many thanks in advance :)

3 answers

1 accepted

Accepted Answer
0 votes
Timothy Chin Community Champion Aug 27, 2013

If both JIRA A and B are the same version, you can just swap the dbconfig.xml and perform a reindex. You might want to make sure that the plugins exist on each of the instance and is the same version.

Timothy Chin Community Champion Aug 27, 2013

So I can go ahead with changing dbconfig.xml file... right?

Sure, if you are afraid, make a backup of your Oracle DB and copy your HSQL database folder.

Yes.. both instance are having same version.. only difference is DB. So I can go ahead with changing dbconfig.xml file... right?

Yew Teck En Atlassian Team Aug 27, 2013

It shouldn't be problem if both are using the same version. Timothy has a point there which you need to backup the directories as a precautions. From Atlassian point of view, we would suggest the XML import method instead: https://confluence.atlassian.com/display/JIRA060/Switching+Databases#SwitchingDatabases-differenttype

Do I need to restart the JIRA service for this? Or simply editing dbconfig.xml to map second DB will work? please advise.

Yew Teck En Atlassian Team Aug 28, 2013

You would have to shutdown the service, edit the dbconfig.xml and restart to ensure JIRA point to the new database.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

465 views 7 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you