相關文章
DBeaver execute larger SQL
https://keithbox.blogspot.com/2026/05/dbeaver-execute-larger-sql.html
前言
file size太大的檔案,上回提到,魔法二,
DBeaver 建立tasks
如果tasks也program crash ,檔案真的太多,幾百MB甚至上GB
幾十萬rows
海豚之前有經驗
Oracle DB 有官方原生支持的 Oracle CLI
很大的檔案一律建議用Oracle CLI
魔法三
於是海豚寫了一個CLI小工具,將檔案切成很多份
SplitTextFile
https://github.com/dolphinotaku/SplitTextFile
command
filePath [rowsPerFile]
rowsPerFile 選填,預設是40000 行
example
C:\Users\dolph\OneDrive\Documents\SplitTextFile\SplitTextFile\bin\Debug\net8.0\PlaylistTrack_202605251328.sql 1000
執行結果
Reference
OPC CLI
https://github.com/oracle/oci-cli
https://www.oracle.com/downloads/cloud/opc-cli-downloads.html
SplitTextFile
No comments:
Post a Comment