Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

migrate h2 to sql server

how to migrate from h2 to an external database (SQL Server 2012)

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted

Export it to xml with the system backup tool, hook up the new database and restore the xml.

As descriptive as your answer is, i thought I would elaborate on it. The sequence of events is as follows

1) login to admin console and back up the database (https://confluence.atlassian.com/adminjiraserver073/backing-up-data-861253815.html)

2) use config program to flip the DB to sql (you need to create a user on the database and create a blank database, and install sql if you dont already have a database you want to use) Also remember to turn on TCP/IP services for the database in sql server configuration manager, so that it can actually talk to the network ( https://social.technet.microsoft.com/Forums/sqlserver/en-US/2cdcab2e-ea49-4fd5-b2b8-13824ab4619b/help-server-not-listening-on-1433?forum=sqlsetupandupgrade ). I couldnt get an AD user to work so i just made a local sql authenticated user.

*make sure you set the collation of the database to Latin1_General_CI_AI (by default in sql express 2016 is Latin1_General_CI_AS (note the S)) , and set " Is_Read_committed_snapshot_on" to TRUE (under options when you create the database)

3) Reboot the server, or restart the jira service. Otherwise you will get database connection errors.

4) When you browse to your jira URL it will go through a "jira is starting up" process, which acts like a brand new server.

5) wehn it comes time to put server name and stuff in, click "import data" at the top and you will presented with another screen which asks you for the file to import. However this file must be located in the ./import directory on the server. So you need to move it from the ./export directory from step 1.

6) all done!

As descriptive as your answer is, i thought I would elaborate on it. The sequence of events is as follows

1) login to admin console and back up the database (https://confluence.atlassian.com/adminjiraserver073/backing-up-data-861253815.html)

2) use config program to flip the DB to sql (you need to create a user on the database and create a blank database, and install sql if you dont already have a database you want to use) Also remember to turn on TCP/IP services for the database in sql server configuration manager, so that it can actually talk to the network ( https://social.technet.microsoft.com/Forums/sqlserver/en-US/2cdcab2e-ea49-4fd5-b2b8-13824ab4619b/help-server-not-listening-on-1433?forum=sqlsetupandupgrade ). I couldnt get an AD user to work so i just made a local sql authenticated user.

*make sure you set the collation of the database to Latin1_General_CI_AI (by default in sql express 2016 is Latin1_General_CI_AS (note the S)) , and set " Is_Read_committed_snapshot_on" to TRUE (under options when you create the database)

3) Reboot the server, or restart the jira service. Otherwise you will get database connection errors.

4) When you browse to your jira URL it will go through a "jira is starting up" process, which acts like a brand new server.

5) wehn it comes time to put server name and stuff in, click "import data" at the top and you will presented with another screen which asks you for the file to import. However this file must be located in the ./import directory on the server. So you need to move it from the ./export directory from step 1.

6) all done!

TAGS
Community showcase
Published in Confluence

Miss the Confluence demos at Team 21? Watch them here!

Phew, Atlassian Team 2021 blew by. With dozens of demos and a handful of keynotes, you may have missed some of the awesome Confluence Cloud sessions. Don't' worry, you can watch them all here or on Y...

147 views 2 5
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you