简体   繁体   English

如何获取从 oracle 到 mongoDB 的导出数据

[英]how to get export data from oracle to mongoDB

I'm trying to change data from oracle data base to mongodb the problem is: my friend give me "file.sql" that have all the tables with data and I want to get this data and add it to my mongo database please I don't know how to do it我正在尝试将数据从 oracle 数据库更改为 mongodb 问题是:我的朋友给我“file.sql”,其中包含所有包含数据的表,我想获取这些数据并将其添加到我的 mongo 数据库中,请不要不知道怎么做

MongoDB is a No SQL database, thus the SQL file will not help you. MongoDB 是No SQL 数据库,因此 SQL 文件对您没有帮助。

Ask for CSV files, then you can use the mongoimport tool to import it into your MongoDB.询问 CSV 文件,然后您可以使用mongoimport工具将其导入您的 MongoDB。 Please note, usually it is a poor design when you migrate from Oracle to MongoDB and move tables to collections one-by-one.请注意,当您从 Oracle 迁移到 MongoDB 并将表逐个移动到 collections 时,通常这是一个糟糕的设计。 Typically in a MongoDB you will have much less collections than you have tables in Oracle.通常,在 MongoDB 中,collections 比 Oracle 中的表少得多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM