我可以将从oracle (8i) 创建的.dmp 文件导入MySql 数据库吗?我尝试使用 mysql workbench 直接导入转储文件,但显示了一些我在下面提到的错误。
<小时/>Creating schema newschema
10:49:15 Restoring G:\dmp\pass.dmp
Running: mysql.exe --defaults-extra-file="c:\users\acer\appdata\local\temp\tmpliqb6y.cnf" --host=localhost --user=root --port=3306 --default-character-set=utf8 --comments --database=newschema < "G:\\dmp\\xyz.dmp"
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
<小时/>
如何解决这个问题?
最佳答案
不,你可能不能。
Oracle 导出是一种专有的、未记录的文件格式。实际上,它只能由 Oracle 导入实用程序读取。可能有一些第三方工具可能对文件格式进行了逆向工程,但我不知道有任何工具可以导入到 MySQL 中。
如果将数据导入本地 Oracle 数据库,则将其传输到 MySQL 数据库会变得更加容易。任何 ETL 工具都可以这样做,您可以编写应用程序来移动数据,您可以从 Oracle 连接到 MySQL 来推送数据,您可以从 Oracle 数据库中提取 DDL 和 DML 等等。
关于database - 将转储 (.dmp) 文件导入 mysql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18584539/