diff --git a/README.md b/README.md
index cc0aff1e12526932c658199c9fec91662010de4d..6622f154f3d4cb7dd65bbfaa4024762d07e98ccc 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# oracle-migration-tool
+# ora-migration-tool
本插件是在datax的基础上增加了数据库对象迁移和scn读取,来支持oracle->oprengauss的在线和离线迁移。
相关datax的知识原理在这里就不在描述,
具体使用方式见userGuid。
diff --git a/common/pom.xml b/common/pom.xml
index 442cd1df4f83f3f1475c91c648e1d16aa51741c0..709fdf413a644d1346d1c930563c6b15be08f59f 100644
--- a/common/pom.xml
+++ b/common/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.alibaba.datax
- oracle-migration-tool
+ ora-migration-tool
0.0.1-SNAPSHOT
diff --git a/core/pom.xml b/core/pom.xml
index 97797d9f24262a98e087277d209306e3521721d4..31471844ba628ccbe9286a449c488c4de8661f67 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.alibaba.datax
- oracle-migration-tool
+ ora-migration-tool
0.0.1-SNAPSHOT
diff --git a/dmt/pom.xml b/dmt/pom.xml
index ecf7592187a98d08f412ca5f1fa29b56da8df3e8..09782551aa28a2d71502bad85cfdc19b33c3a1cc 100644
--- a/dmt/pom.xml
+++ b/dmt/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.alibaba.datax
- oracle-migration-tool
+ ora-migration-tool
0.0.1-SNAPSHOT
diff --git a/dmt/src/main/java/com/gbase8c/dmt/Dmt.java b/dmt/src/main/java/com/gbase8c/dmt/Dmt.java
index edad1b689bf77dfe952338f6d02db9dde65d68e3..104b5769fd6ade331167eada24630f4462c72364 100644
--- a/dmt/src/main/java/com/gbase8c/dmt/Dmt.java
+++ b/dmt/src/main/java/com/gbase8c/dmt/Dmt.java
@@ -1,31 +1,17 @@
package com.gbase8c.dmt;
-import com.alibaba.datax.common.util.Configuration;
-import com.alibaba.datax.core.Engine;
-import com.alibaba.datax.core.util.ConfigParser;
-import com.gbase8c.dmt.common.util.JsonMapper;
import com.gbase8c.dmt.config.DmtConfig;
import com.gbase8c.dmt.service.TaskService;
-import org.apache.commons.cli.BasicParser;
-import org.apache.commons.cli.CommandLine;
-import org.apache.commons.cli.Options;
-import org.apache.commons.cli.ParseException;
-
-import java.io.File;
+import org.apache.commons.cli.*;
public class Dmt {
public static void main(String[] args) throws ParseException {
- // just for test
-// args = new String[] {"-workdir", "d:/workdir", "-taskid", "1"};
-// System.setProperty("datax.home", "D:/ora-migration-tool/target/oracle-migration-tool/oracle-migration-tool");
-// System.setProperty("datax.resume", "true");
-
Options options = new Options();
options.addOption("workdir", true, "work dir.");
options.addOption("taskid", true, "task id.");
- BasicParser parser = new BasicParser();
+ DefaultParser parser = new DefaultParser();
CommandLine cl = parser.parse(options, args);
String workdir = cl.getOptionValue("workdir");
@@ -34,12 +20,5 @@ public class Dmt {
DmtConfig dmtConfig = DmtConfig.read(workdir, taskId);
TaskService taskService = new TaskService(dmtConfig);
taskService.start();
-
- // 此方法可行, 现在难点是构造configuration
-// Configuration configuration = ConfigParser.parse("D:/workdir/1/configuration/TEST.T_TABLE.json");
-// Configuration configuration = ConfigParser.parse("D:/workdir/ori.json");
-// configuration.set("core.container.model", "taskGroup");
-// Engine engine = new Engine();
-// engine.start(configuration);
}
}
diff --git a/dmt/src/test/java/com/gbase8c/dmt/Test.java b/dmt/src/test/java/com/gbase8c/dmt/Test.java
new file mode 100644
index 0000000000000000000000000000000000000000..52194698e58b5b8cef8099dcd0947bcade12f749
--- /dev/null
+++ b/dmt/src/test/java/com/gbase8c/dmt/Test.java
@@ -0,0 +1,20 @@
+package com.gbase8c.dmt;
+
+import com.alibaba.datax.common.util.Configuration;
+import com.alibaba.datax.core.Engine;
+import com.alibaba.datax.core.util.ConfigParser;
+
+public class Test {
+
+ public static void main(String[] args) {;
+ System.setProperty("datax.home", "D:/ora-migration-tool/target/ora-migration-tool/ora-migration-tool");
+ System.setProperty("datax.resume", "true");
+
+// Configuration configuration = ConfigParser.parse("D:/workdir/1/configuration/TEST.T_TABLE.json");
+ Configuration configuration = ConfigParser.parse("D:/workdir/ori.json");
+ configuration.set("core.container.model", "taskGroup");
+ Engine engine = new Engine();
+ engine.start(configuration);
+ }
+
+}
diff --git a/opengausswriter/pom.xml b/opengausswriter/pom.xml
index b653f08ee36ab54945c8a5a5cca9acbf1871d47a..5d3beb4dcc30493bdf4be91377c304b07f4696dd 100644
--- a/opengausswriter/pom.xml
+++ b/opengausswriter/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.alibaba.datax
- oracle-migration-tool
+ ora-migration-tool
0.0.1-SNAPSHOT
opengausswriter
diff --git a/oraclereader/pom.xml b/oraclereader/pom.xml
index 8f4fba9a5852ae0309975ec962108d85e95cceeb..b3f8f526f2326e60a6afe818be461111c18960bb 100644
--- a/oraclereader/pom.xml
+++ b/oraclereader/pom.xml
@@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
com.alibaba.datax
- oracle-migration-tool
+ ora-migration-tool
0.0.1-SNAPSHOT
4.0.0
diff --git a/package.xml b/package.xml
index 0d6158a84314470e6a0d37f6a018fe3ad85235a8..2524c7f14f14a483b206776382fe9709f5f0d21f 100644
--- a/package.xml
+++ b/package.xml
@@ -14,7 +14,7 @@
**/*.*
- oracle-migration-tool
+ ora-migration-tool
@@ -22,14 +22,14 @@
**/*.*
- oracle-migration-tool
+ ora-migration-tool
core/target/datax/
**/*.*
- oracle-migration-tool
+ ora-migration-tool
@@ -38,7 +38,7 @@
**/*.*
- oracle-migration-tool
+ ora-migration-tool
@@ -47,7 +47,7 @@
**/*.*
- oracle-migration-tool
+ ora-migration-tool
diff --git a/plugin-rdbms-util/pom.xml b/plugin-rdbms-util/pom.xml
index 397823223f4cb68bdcc010384d6c010d243377fe..dc81d4ecd61b5b5094be966bfa4222c8a6587759 100644
--- a/plugin-rdbms-util/pom.xml
+++ b/plugin-rdbms-util/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.alibaba.datax
- oracle-migration-tool
+ ora-migration-tool
0.0.1-SNAPSHOT
plugin-rdbms-util
diff --git a/pom.xml b/pom.xml
index 686a943bfa9c31a8dbfc44f6107e2d49f780953d..42e943331e44a7d444be780cf65a0e41ec552bdf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,10 +3,10 @@
4.0.0
com.alibaba.datax
- oracle-migration-tool
+ ora-migration-tool
0.0.1-SNAPSHOT
- oracle-migration-tool
+ ora-migration-tool
pom
@@ -180,7 +180,7 @@
maven-assembly-plugin
- oracle-migration-tool
+ ora-migration-tool
package.xml
diff --git a/quickstart/workdir.zip b/quickstart/workdir.zip
index 3ee5548fa63e55b9f283be8492269820a368c4ea..75ae1c58e49515a2549dcd04a52ff8ad941c2674 100644
Binary files a/quickstart/workdir.zip and b/quickstart/workdir.zip differ
diff --git a/transformer/pom.xml b/transformer/pom.xml
index 8669b06cd91764db12104217c3947215e1837fda..5a0aae93c3c9004384e6915bbf0b32aa39990807 100644
--- a/transformer/pom.xml
+++ b/transformer/pom.xml
@@ -2,7 +2,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
com.alibaba.datax
- oracle-migration-tool
+ ora-migration-tool
0.0.1-SNAPSHOT
4.0.0
diff --git a/userGuid.md b/userGuid.md
index 4e31eb70522d43956f3254d7ab123703e127a60a..0c4aae54387bfd6b2ab009e683b56e9557b57ec0 100644
--- a/userGuid.md
+++ b/userGuid.md
@@ -17,7 +17,7 @@
(2)、通过maven打包:
``` shell
- $ cd {oracle-migration-tool_source_code_home}
+ $ cd {ora-migration-tool_source_code_home}
$ mvn -U clean package assembly:assembly -Dmaven.test.skip=true
```
@@ -35,8 +35,8 @@
打包成功后的DataX包位于 {DataX_source_code_home}/target/datax/datax/ ,结构如下:
``` shell
- $ cd {oracle-migration-tool_source_code_home}
- $ ls ./target/oracle-migration-tool/oracle-migration-tool/
+ $ cd {ora-migration-tool_source_code_home}
+ $ ls ./target/ora-migration-tool/ora-migration-tool/
bin conf job lib log log_perf plugin script tmp
```
@@ -47,7 +47,7 @@
* 第二步:准备迁移相关文件。将quickstart/wrokdir.zip解压到指定目录
``` shell
- cp {oracle-migration-tool_source_code_home}/quickstart/workdir.zip /home
+ cp {ora-migration-tool_source_code_home}/quickstart/workdir.zip /home
cd /home
unzip workdir.zip
```
@@ -70,7 +70,7 @@
* 第四步:启动迁移
``` shell
- java -server -Xms1g -Xmx1g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=${oracle-migration-tool.home}/log -Dloglevel=info -Dfile.encoding=UTF-8 -Dlogback.statusListenerClass=ch.qos.logback.core.status.NopStatusListener -Djava.security.egd=file:///dev/urandom -Ddatax.home=${oracle-migration-tool.home} -Dlogback.configurationFile=${oracle-migration-tool.home}/conf/logback.xml -classpath ${oracle-migration-tool.home}\lib\* com.gbase8c.dmt.Dmt -taskid ${tasked} -workdir ${workdir}
+ java -server -Xms1g -Xmx1g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=${ora-migration-tool.home}/log -Dloglevel=info -Dfile.encoding=UTF-8 -Dlogback.statusListenerClass=ch.qos.logback.core.status.NopStatusListener -Djava.security.egd=file:///dev/urandom -Ddatax.home=${ora-migration-tool.home} -Ddatax.resume=true -Dlogback.configurationFile=${ora-migration-tool.home}/conf/logback.xml -classpath ${ora-migration-tool.home}\lib\* com.gbase8c.dmt.Dmt -taskid ${tasked} -workdir ${workdir}
```
* 配置文件说明