Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oracle ddl drop table error #879

Open
asiroliu opened this issue Jan 20, 2022 · 1 comment
Open

oracle ddl drop table error #879

asiroliu opened this issue Jan 20, 2022 · 1 comment
Assignees
Labels
DDL DDL bug or issue Oracle
Milestone

Comments

@asiroliu
Copy link
Collaborator

Description

oracle ddl drop table error

Steps to reproduce the issue

  1. create oracle to mysql job
  2. src oracle execute sql
CREATE TABLE TEST.T4(col1 VARCHAR(20), col2 NUMBER);
DROP TABLE TEST.T4;
  1. dest mysql doesn`t drop table TEST.T4
  2. src dtle log
2022-01-20T15:42:20.937+0800 [DEBUG] client.driver_mgr.dtle: ============= ddl stmt parse end =========: driver=dtle @module=dtle.ExtractorOracle ddl="CREATE TABLE `TEST`.`T4` (`COL1` VARCHAR(20),`COL2` DOUBLE) DEFAULT CHARACTER SET=utf8" job=aaa-migration timestamp=2022-01-20T15:42:20.937+0800
2022-01-20T15:42:20.938+0800 [DEBUG] client.driver_mgr.dtle: ============= ddl stmt parse start===============: driver=dtle job=aaa-migration redoSQL="ALTER TABLE "TEST"."T4" RENAME TO "BIN$1f+kJxmfBN/gUGSsBAkA6g==$0" " @module=dtle.ExtractorOracle timestamp=2022-01-20T15:42:20.937+0800
2022-01-20T15:42:20.938+0800 [ERROR] client.driver_mgr.dtle: ============= ddl parse err===============: driver=dtle redoSQL="ALTER TABLE "TEST"."T4" RENAME TO "BIN$1f+kJxmfBN/gUGSsBAkA6g==$0" " @module=dtle.ExtractorOracle job=aaa-migration timestamp=2022-01-20T15:42:20.938+0800
2022-01-20T15:42:20.938+0800 [ERROR] client.driver_mgr.dtle: parseOracleToMySQL: driver=dtle err="syntax error, unexpected _to, at line 1:31" job=aaa-migration @module=dtle.ExtractorOracle timestamp=2022-01-20T15:42:20.938+0800
2022-01-20T15:42:20.938+0800 [DEBUG] client.driver_mgr.dtle: ============= ddl stmt parse start===============: driver=dtle job=aaa-migration redoSQL="DROP TABLE TEST.T4 AS "BIN$1f+kJxmfBN/gUGSsBAkA6g==$0" " @module=dtle.ExtractorOracle timestamp=2022-01-20T15:42:20.938+0800
2022-01-20T15:42:20.938+0800 [ERROR] client.driver_mgr.dtle: ============= ddl parse err===============: driver=dtle @module=dtle.ExtractorOracle job=aaa-migration redoSQL="DROP TABLE TEST.T4 AS "BIN$1f+kJxmfBN/gUGSsBAkA6g==$0" " timestamp=2022-01-20T15:42:20.938+0800
2022-01-20T15:42:20.938+0800 [ERROR] client.driver_mgr.dtle: parseOracleToMySQL: driver=dtle @module=dtle.ExtractorOracle err="syntax error, unexpected _as, at line 1:19" job=aaa-migration timestamp=2022-01-20T15:42:20.938+0800
202

Output of ./dtle version:**

4.22.01.0-4.22.01.x-bf38943
@asiroliu asiroliu added DDL DDL bug or issue Oracle labels Jan 20, 2022
@asiroliu asiroliu added this to the 3.21.12.0 milestone Jan 20, 2022
@LordofAvernus
Copy link
Collaborator

非必现场景,当redoSQL解析DROP TABLE 为如下两条SQL时候,不支持解析
1.ALTER TABLE SCHEMA.TABLE RENAME TO *
2.DROP TABLE SCHEMA.TABLE AS *

@LordofAvernus LordofAvernus modified the milestones: 3.21.12.0, next Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DDL DDL bug or issue Oracle
Projects
None yet
Development

No branches or pull requests

2 participants