Using mybatis to move data from db to another

已查看 11 次
跳至第一个未读帖子

yaog

未读,
2019年7月9日 02:42:222019/7/9
收件人 mybatis-user
I have a use case where I need to move data from one DB to another. Db's could be different products (i.e. move from Oracle to MySql).

I saw an old apache lib that is not maintained anymore (ddlutils) and I am wondering if mybatis can assist me here somehow.

Any ideas?

Guy Rouillier

未读,
2019年7月9日 03:55:582019/7/9
收件人 mybatis-user
MyBatis has a Migrations tool: http://www.mybatis.org/migrations/

But I've never used it.  I already had a tool which assisted in moving data between different databases, and find it fast and easy to use: Sql Workbench/J: https://www.sql-workbench.eu/

Check out Data Pumper on the Tools menu.

--
Guy Rouillier
--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybatis-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/eaf23a41-0731-4ac7-adbc-71a1b8778440%40googlegroups.com.

Yair Ogen

未读,
2019年7月9日 04:45:282019/7/9
收件人 mybati...@googlegroups.com
Thanks. I don't see java based examples usages in that site. Also  - didn't find any maven or other binary repo information. Does it support usage from within Java?

You received this message because you are subscribed to a topic in the Google Groups "mybatis-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mybatis-user/94GbyJHcBHk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mybatis-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/embcd88c80-78e9-46d3-82f6-22b9924d9ae6%40asus.

Guy Rouillier

未读,
2019年7月9日 22:36:182019/7/9
收件人 mybati...@googlegroups.com
Are you referring to MyBatis Migrations or Sql Workbench/J?

--
Guy Rouillier

Yair Ogen

未读,
2019年7月9日 23:54:512019/7/9
收件人 mybati...@googlegroups.com
Sql Workbench/J

Guy Rouillier

未读,
2019年7月10日 01:27:172019/7/10
收件人 mybati...@googlegroups.com

It's pretty extensive.  The two primary ways the author intended this to be used is either interactively, or scripted via batch scripts.  I've used both frequently.  Don't really know what you might want to accomplish beyond scripting by including invocations from compiled Java code.  But take a look at scripting, it might do what you have in mind.  Just read on the linked page: "If you want to start the application from within another program (e.g. an Ant script or your own program)...", so the author thought of that, but only by invoking the main class he provides; he doesn't appear to have provided a documented class library that you can access directly.

Hope it helps.

--
Guy Rouillier
回复全部
回复作者
转发
0 个新帖子