You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
6.结果:/usr/local/yugong/conf/translator/table.log
[YuGongInstance-UECHN2_DB.XT_BASECOURSE] ERROR com.taobao.yugong.controller.YuGongInstance - retry 1 ,something error happened. caused by java.lang.RuntimeException: java.util.concurrent.ExecutionException: com.taobao.yugong.exception.YuGongException: table[null.XT_BASECOURSE] is not found
The text was updated successfully, but these errors were encountered:
流程是这样的
CREATE TABLE "XT_BASECOURSE" (
"COURSE_ID" NUMBER(16) NOT NULL ,
"NAME" NVARCHAR2(150) NULL ,
"SORT_NUM" NUMBER NULL ,
"DESCRIPTION" NVARCHAR2(1000) NULL ,
"CREATE_TIME" DATE NULL ,
"UPDATE_TIME" DATE NULL ,
"CREATE_USER" NUMBER(16) NULL ,
"UPDATE_USER" NUMBER(16) NULL
)tablespace UECHNDB;
2.插入表
INSERT INTO "XT_BASECOURSE" VALUES ('1', '语文', '1', null, null, null, null, null);
INSERT INTO "XT_BASECOURSE" VALUES ('2', '数学', '2', null, null, null, null, null);
3.新建表MYSQL
DROP TABLE IF EXISTS
T_BASE_COURSE
;CREATE TABLE
T_BASE_COURSE
(BASE_COURSE_ID
int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',BASE_COURSE_NAME
varchar(32) DEFAULT NULL COMMENT '名称',SORT_NUM
smallint(2) unsigned DEFAULT NULL COMMENT '排序',CREATE_TIME
datetime DEFAULT NULL COMMENT '创建时间',PRIMARY KEY (
BASE_COURSE_ID
)) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='基础学科';
4.配制文件
yugong.database.source.username=uechn2_db
yugong.database.source.password=123
yugong.database.source.type=ORACLE
yugong.database.source.url=jdbc:oracle:thin:@192.168.*.21:1521:orcl
yugong.database.source.encode=UTF-8
yugong.database.source.poolSize=30
yugong.database.target.url=jdbc:mysql://192.168.*.204:3306/ue
yugong.database.target.username=root
yugong.database.target.password=root
yugong.database.target.type=MYSQL
yugong.database.target.encode=UTF-8
yugong.database.target.poolSize=30
yugong.table.white=uechn2_db.XT_BASECOURSE
5.XTBASECOURSEDataTranslator.java
public class XTBASECOURSEDataTranslator extends AbstractDataTranslator implements DataTranslator {
6.结果:/usr/local/yugong/conf/translator/table.log
[YuGongInstance-UECHN2_DB.XT_BASECOURSE] ERROR com.taobao.yugong.controller.YuGongInstance - retry 1 ,something error happened. caused by java.lang.RuntimeException: java.util.concurrent.ExecutionException: com.taobao.yugong.exception.YuGongException: table[null.XT_BASECOURSE] is not found
The text was updated successfully, but these errors were encountered: