{"id":40018,"date":"2025-09-05T08:52:08","date_gmt":"2025-09-05T08:52:08","guid":{"rendered":"http:\/\/www.withdata.com\/blog\/?p=40018"},"modified":"2025-09-05T08:52:08","modified_gmt":"2025-09-05T08:52:08","slug":"import-data-from-json-to-oracle-via-command-line-on-linux","status":"publish","type":"post","link":"https:\/\/www.withdata.com\/blog\/ora-cmd\/import-data-from-json-to-oracle-via-command-line-on-linux.html","title":{"rendered":"Import data from JSON to Oracle via command line on Linux"},"content":{"rendered":"<p>Want to import data from <a href=\"https:\/\/jsonlines.org\/\">JSON Lines (JSONL)<\/a> to  <a href=\"https:\/\/www.oracle.com\/database\/\">Oracle<\/a>  via Command Line Interface (CLI) on Linux (Ubuntu\/RedHat\/CentOS&#8230;)?<\/p>\n<p>Using <a href=\"https:\/\/www.withdata.com\/ora-cmd\/\">ora-cmd<\/a>, a Command Line Interface (CLI) client for Oracle, you can import data from JSON Lines to Oracle  easily and fast. Direct Interaction or Scripting and Automation.<\/p>\n<ul>\n<li>No need to install Oracle client library.<\/li>\n<li>Convenient to deploy to cloud. No need to run installation file, just uncompress and run, immediately.<\/li>\n<li>Commands are entered into a terminal or command prompt, accessed from local or remote (like SSH).<\/li>\n<li>Support Windows, Linux, and MacOS.<\/li>\n<\/ul>\n<p><a href=\"#download-top\" onclick=\"dtv.style.display = 'block';\">Download ora-cmd Linux version<\/a>  <a href=\"#download-top\" onclick=\"dtv.style.display = 'block';\"><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/download_3.jpg\" alt=\"Download ora-cmd\" width=\"80\" height=\"22\" style=\"max-width:100%;height:auto;\" \/><\/a> <span id=\"dtv\" style=\"display: none;\"><br \/>\n<a href=\"\/down\/ora-cmd.linux-386.zip\">ora-cmd.linux-386.zip<\/a><br \/>\n<a href=\"\/down\/ora-cmd.linux-amd64.zip\">ora-cmd.linux-amd64.zip<\/a><br \/>\n<a href=\"\/down\/ora-cmd.linux-arm64.zip\">ora-cmd.linux-arm64.zip<\/a><\/p>\n<p><\/span><\/p>\n<p>JSON Lines text format, also called newline-delimited JSON (NDJSON), or Line-delimited JSON (LDJSON). JSON Lines files may be saved with the file extension .jsonl, *.ndjson, *.ldjson.<\/p>\n<h2>Import data from JSON Lines to Oracle  via command line on Linux (Ubuntu\/RedHat\/CentOS&#8230;)<\/h2>\n<p>1. In interactive mode:<\/p>\n<pre>\nora-cmd> load table=media_messages \n      > datafile=f:\\media_messages.json \n      > filetype=json;\n<\/pre>\n<p>2. In batch mode:<\/p>\n<pre>\nora-cmd dsn=\"pan:withdata@192.168.0.102:3306\/test\" task=load table=media_messages datafile=f:\\media_messages.json filetype=json quit=y\n<\/pre>\n<p>&#8220;loadtype=replace&#8221; will delete all data in table before inserting.<\/p>\n<p>See <a href=\"https:\/\/www.withdata.com\/ora-cmd\/load-json.html\">parameters detail<\/a>.<\/p>\n<hr style=\"clear: both;\" \/>\n<p>More about <a href=\"https:\/\/www.withdata.com\/ora-cmd\/\">ora-cmd &#8211; Command Line Interface (CLI) tool for Oracle<\/a><\/p>\n<div id=\"download-bottom\" style=\"clear: both;\">\n<p>Download ora-cmd Linux version<a href=\"#download-bottom\" onclick=\"dbv.style.display = 'block';\"><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/btn_download_green.png\" alt=\"Download ora-cmd\" width=\"165\" height=\"50\" style=\"max-width:100%;height:auto;\" \/><\/a> <span id=\"dbv\" style=\"display: none;\"><br \/>\n<a href=\"\/down\/ora-cmd.linux-386.zip\">ora-cmd.linux-386.zip<\/a><br \/>\n<a href=\"\/down\/ora-cmd.linux-amd64.zip\">ora-cmd.linux-amd64.zip<\/a><br \/>\n<a href=\"\/down\/ora-cmd.linux-arm64.zip\">ora-cmd.linux-arm64.zip<\/a><\/p>\n<p><\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Want to import data from JSON Lines (JSONL) to Oracle via Command Line Interface (CLI) on Linux (Ubuntu\/RedHat\/CentOS&#8230;)? Using ora-cmd, a Command Line Interface (CLI) client for Oracle, you can import data from JSON Lines to Oracle easily and fast. Direct Interaction or Scripting and Automation. No need to install Oracle client library. Convenient to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3146],"tags":[73,6,1418,2553,1325,1430],"class_list":["post-40018","post","type-post","status-publish","format-standard","hentry","category-ora-cmd","tag-command-line","tag-import","tag-json","tag-linux","tag-oracle","tag-oracle-import-json"],"_links":{"self":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/40018","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/comments?post=40018"}],"version-history":[{"count":1,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/40018\/revisions"}],"predecessor-version":[{"id":40019,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/40018\/revisions\/40019"}],"wp:attachment":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/media?parent=40018"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/categories?post=40018"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/tags?post=40018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}