› MySQL 5.5 Community Server
› MySQL 5.6 Community Server
› Percona Configuration Wizard
› XtraBackup 搭建主从复制
Great Sites on MySQL
› Percona
› MySQL Performance Blog
› Severalnines
推荐管理工具
› Sequel Pro
› phpMyAdmin
推荐书目
› MySQL Cookbook
MySQL 相关项目
› MariaDB
› Drizzle
参考文档
› http://mysql-python.sourceforge.net/MySQLdb.html
sdushn
0D
V2EX  ›  MySQL

从 oracle 数据库到 sqlite 数据库,有没有什么好的办法

  •  
  •   sdushn · Aug 8, 2018 · 4525 views
    This topic created in 3019 days ago, the information mentioned may be changed or developed.
    网上的工具是收费的,oracleToSqlite,有没有什么好办法导入呢
    10 replies  •  2018-08-21 15:38:54 +08:00
    lihongjie0209
    lihongjie0209
    Aug 8, 2018
    1
    导出 csv, 再导入 sqlite?
    sdushn
    sdushn
    OP
    Aug 8, 2018 via Android
    2
    @lihongjie0209 正在用这个方法😂数据量大,导入太慢了
    lihongjie0209
    lihongjie0209
    Aug 8, 2018❤️1
    3
    Situations Where A Client/Server RDBMS May Work Better

    High Concurrency

    SQLite supports an unlimited number of simultaneous readers, but it will only allow one writer at any instant in time. For many situations, this is not a problem. Writer queue up. Each application does its database work quickly and moves on, and no lock lasts for more than a few dozen milliseconds. But there are some applications that require more concurrency, and those applications may need to seek a different solution.


    看起来不支持并行写入, 不管什么工具都没办法提速吧
    sdushn
    sdushn
    OP
    Aug 8, 2018
    4
    @lihongjie0209 是啊,似乎是不能提速的,比较尴尬啊
    LightLolo
    LightLolo
    Aug 8, 2018❤️1
    5
    只是数据抽取的话,试试数据抽取工具么? KETTLE 这种。
    jydeng
    jydeng
    Aug 8, 2018❤️1
    6
    LS+1
    rockyou12
    rockyou12
    Aug 8, 2018
    7
    其实我很好奇既然数据量很大,为什么还要换成 sqlite 这种单文件的数据库(‘◇’)?
    lihongjie0209
    lihongjie0209
    Aug 8, 2018
    8
    @LightLolo #5 数据库不支持并行写入的话, 使用其他工具也没办法
    sdushn
    sdushn
    OP
    Aug 8, 2018
    9
    @LightLolo 数据已经抽取出来了,只是导入稍慢

    @rockyou12 在调试程序,手动同步服务端和客户端数据(笑哭)

    @lihongjie0209 已经导入进去了,导入了几个小时的样子,哈哈
    sdushn
    sdushn
    OP
    Aug 21, 2018
    10
    最后采用了最笨的办法,导出后再导入,弄完之后自己有写了 java 小脚本,两边数据库连起来,一边读,一边写就好了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2107 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 01:18 · PVG 09:18 · LAX 17:18 · JFK 20:18
    ♥ Do have faith in what you're doing.