-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: copy databases
PostPosted: Thu Jun 19, 2008 4:53 am 
Newbie

Joined: Thu Jun 19, 2008 4:49 am
Posts: 12
is it possible to transfer the content of a database (e.g. MSSQL) into another database (e.g. Derby) with hibernate? both are mapped with the same mapping file.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 19, 2008 5:22 am 
Newbie

Joined: Thu Jan 03, 2008 8:39 am
Posts: 5
Hi,

would you like to migrate MSSQL to Derby?

If that's right, has the structure changed?

If not use an export tool of MSSQL named bcp to generate dumps for each table and use a tool to from derby to load this dumps.

It's much more faster than using java.
I just migrate a MSSQL to Oracle.
With java I can insert 100 to 1000 rows per second
with bcp and sqlldr I can insert more than 20000 rows per second.

Best regards
Joerg


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 23, 2008 5:22 am 
Newbie

Joined: Thu Jun 19, 2008 4:49 am
Posts: 12
Thank you for your reply referring to my question.

I try to synchronize two databases at runtime as we need a (offline) backup database if our online connection interrupts.

At present we really try to resolve this using java which is, as you said, not very fast. Moreover, when copying our dataobjects, junction tables of bidirectional relations (many to many) are not transferred (we are investigating this problem).

This is why I ask if Hibernate has a fuction to transfer the content of two databases with the same structure.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 23, 2008 10:26 am 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
Hibernate is great, but it's not really designed for this purpose in particular. Most databases have export and import tools that are fairly compatible. For more complex transfers those, you might want to look at some ETL tools such as IBM's DataStage.

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.