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

0 vote
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?

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.

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,322 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot