{"id":1926,"date":"2018-09-11T06:17:51","date_gmt":"2018-09-11T06:17:51","guid":{"rendered":"https:\/\/vinish.dev\/?p=1926"},"modified":"2025-05-27T14:05:11","modified_gmt":"2025-05-27T08:35:11","slug":"how-to-import-csv-into-oracle-table-using-python","status":"publish","type":"post","link":"https:\/\/vinish.dev\/how-to-import-csv-into-oracle-table-using-python","title":{"rendered":"How to Import CSV Into Oracle Table Using Python?"},"content":{"rendered":"\n<p>In this tutorial, I am giving some examples of importing a CSV file into Oracle table using Python. You will learn how to use <strong>csv.reader<\/strong> and <strong>csv.DictReader<\/strong> methods to load data from CSV file. The following are the examples.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Import CSV into Oracle Table Using csv.reader Method in Python<\/h3>\n\n\n\n<p>In the below example, I am using the&nbsp;CSV file format as shown below from the locations table of HR schema in Oracle. The file is containing delimiter pipe '|' and will import this file into the new_locations table of HR schema. You can download this CSV file from the following link <a href=\"https:\/\/drive.google.com\/file\/d\/1DGx26wcd5sgiQ2I5P6Mgo35RbHpBX2rA\/view?usp=sharing\">Download locations.csv file<\/a>, and you can also download the HR schema script from this link Download HR Schema. The fields in the CSV file are as below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">1400|\"Jabber Rd\"|\"26192\"|\"Southlake\"|\"Texas\"|\"US\"<\/pre>\n\n\n\n<p>The csv.reader method from the CSV module is used to import the file in this example. You need to specify the field's number to get the value of each delimited column. Below is an example of a single record of CSV file, the first column should treat as 0, the second is 1 and so on.<\/p>\n\n\n\n<figure class=\"wp-block-table MsoTableGrid\"><table class=\"has-fixed-layout\"><tbody><tr><td>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt; line-height: normal;\"><span style=\"color: black;\">1400<\/span><\/p>\n<\/td><td>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt; line-height: normal;\"><span style=\"color: black;\">Jabber Rd<\/span><\/p>\n<\/td><td>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt; line-height: normal;\"><span style=\"color: black;\">26192<\/span><\/p>\n<\/td><td>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt; line-height: normal;\"><span style=\"color: black;\">Southlake<\/span><\/p>\n<\/td><td>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt; line-height: normal;\"><span style=\"color: black;\">Texas<\/span><\/p>\n<\/td><td>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt; line-height: normal;\"><span style=\"color: black;\">US<\/span><\/p>\n<\/td><\/tr><tr><td>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt; line-height: normal;\"><strong><span style=\"color: black;\">0<\/span><\/strong><\/p>\n<\/td><td>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt; line-height: normal;\"><strong><span style=\"color: black;\">1<\/span><\/strong><\/p>\n<\/td><td>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt; line-height: normal;\"><strong><span style=\"color: black;\">2<\/span><\/strong><\/p>\n<\/td><td>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt; line-height: normal;\"><strong><span style=\"color: black;\">3<\/span><\/strong><\/p>\n<\/td><td>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt; line-height: normal;\"><strong><span style=\"color: black;\">4<\/span><\/strong><\/p>\n<\/td><td>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt; line-height: normal;\"><strong><span style=\"color: black;\">5<\/span><\/strong><\/p>\n<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Python Program Example<\/h3>\n\n\n\n<p>Put the location.csv file into the current directory of your Python program and then create a file import_test.py with the following code.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># import_test.py\nimport cx_Oracle\nimport csv\n\ncon = cx_Oracle.connect('hr\/hrpsw@localhost\/orcl')\ncur = con.cursor()\nwith open(\"locations.csv\", \"r\") as csv_file:\n    csv_reader = csv.reader(csv_file, <strong>delimiter='|'<\/strong>)\n    for lines in csv_reader:\n        cur.execute(\n            \"insert into <strong>new_locations<\/strong> (LOCATION_ID, STREET_ADDRESS, POSTAL_CODE, CITY, STATE_PROVINCE, COUNTRY_ID) values (:1, :2, :3, :4, :5, :6)\",\n            (lines[<strong>0<\/strong>], lines[<strong>1<\/strong>], lines[<strong>2<\/strong>], lines[<strong>3<\/strong>], lines[<strong>4<\/strong>], lines[<strong>5<\/strong>]))\n\ncur.close()\ncon.commit()\ncon.close()<\/pre>\n\n\n\n<p>After <a href=\"https:\/\/vinish.dev\/how-to-run-python-file-in-terminal-guide\">running the code<\/a>, you can check your Oracle database table for the inserted data.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Skip The First Row If CSV Has Header<\/h3>\n\n\n\n<p>The locations.csv file has no header row in it. But if the CSV file contains a header row and you want to skip the first row then just put the <strong>next(csv_reader)<\/strong> command before the&nbsp;loop. Below is an example.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># skip first line if header row\n<strong>next(csv_reader)<\/strong>\nfor lines in csv_reader:<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Python Program Example to Import CSV Using csv.DictReader method<\/h3>\n\n\n\n<p>In the&nbsp;following example, it will import the CSV file using csv.DictReader method. You can notice in the below code that fields are being specified in the fields array and using it while inserting the data into Oracle table. Suppose if CSV file has a header row then we don't need to specify the fields, we can use header row fields for the reference. I will give another example of that.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import cx_Oracle\nimport csv\n\ncon = cx_Oracle.connect('hr\/hrpsw@localhost\/orcl')\ncur = con.cursor()\nwith open(\"locations.csv\", \"r\") as csv_file:\n    <strong>fields = ['F_LOCATION_ID', 'F_STREET_ADDRESS', 'F_POSTAL_CODE', 'F_CITY', 'F_STATE_PROVINCE', 'F_COUNTRY_ID']<\/strong>\n    csv_reader = csv.DictReader(csv_file, fieldnames=fields, <strong>delimiter='|'<\/strong>)\n    for lines in csv_reader:\n        cur.execute(\n            \"insert into new_locations (LOCATION_ID, STREET_ADDRESS, POSTAL_CODE,\"\n            \" CITY, STATE_PROVINCE, COUNTRY_ID) values (:1, :2, :3, :4, :5, :6)\",\n            (lines['<strong>F_LOCATION_ID<\/strong>'], lines['<strong>F_STREET_ADDRESS<\/strong>'], lines['<strong>F_POSTAL_CODE<\/strong>'],\n             lines['<strong>F_CITY<\/strong>'], lines['<strong>F_STATE_PROVINCE<\/strong>'], lines['<strong>F_COUNTRY_ID<\/strong>']))\n\ncur.close()\ncon.commit()\ncon.close()<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Import CSV With Header Row Using csv.DictReader Method Example<\/h3>\n\n\n\n<p>In the following example, I am using locations_wheader.csv with a header row which you can download with the following link <a href=\"https:\/\/drive.google.com\/file\/d\/1TF07rV3gtmkq_1ugJOMcKXUUQplYerQ1\/view?usp=sharing\">Download locations_wheader.csv<\/a>. The file is containing header row as below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>LOCATION_ID<\/strong>|<strong>STREET_ADDRESS<\/strong>|<strong>POSTAL_CODE<\/strong>|<strong>CITY<\/strong>|<strong>STATE_PROVINCE<\/strong>|<strong>COUNTRY_ID<\/strong><\/pre>\n\n\n\n<p>Now we no need to create a field array to specify column names; we can use header row columns for each field. Also, we no need to skip the first header; it will automatically skip&nbsp;the row. Below is the example.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import cx_Oracle\nimport csv\n\ncon = cx_Oracle.connect('hr\/hrpsw@localhost\/orcl')\ncur = con.cursor()\nwith open(\"<strong>locations_wheader.csv<\/strong>\", \"r\") as csv_file:\n    csv_reader = csv.DictReader(csv_file, <strong>delimiter='|'<\/strong>)\n    for lines in csv_reader:\n        cur.execute(\n            \"insert into new_locations (LOCATION_ID, STREET_ADDRESS, POSTAL_CODE,\"\n            \" CITY, STATE_PROVINCE, COUNTRY_ID) values (:1, :2, :3, :4, :5, :6)\",\n            (lines['<strong>LOCATION_ID<\/strong>'], lines['<strong>STREET_ADDRESS<\/strong>'], lines['<strong>POSTAL_CODE<\/strong>'],\n             lines['<strong>CITY<\/strong>'], lines['<strong>STATE_PROVINCE<\/strong>'], lines['<strong>COUNTRY_ID<\/strong>']))\n\ncur.close()\ncon.commit()\ncon.close()<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">See also:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/vinish.dev\/how-to-export-csv-from-oracle-table-in-python\">How to Export CSV from Oracle Table in Python?<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, I am giving some examples of importing a CSV file into Oracle table using Python. You will learn how to use csv.reader and csv.DictReader methods to load data from CSV file. The following are the examples. Import CSV into Oracle Table Using csv.reader Method in Python In the below example, I am [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[192],"tags":[],"class_list":["post-1926","post","type-post","status-publish","format-standard","hentry","category-python"],"blocksy_meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Import CSV Into Oracle Table Using Python? &#8226; Vinish.Dev<\/title>\n<meta name=\"description\" content=\"Learn how to import CSV into Oracle table using Python. Multiple examples are given to load data using csv.reader and csv.DictReader method of CSV module.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vinish.dev\/how-to-import-csv-into-oracle-table-using-python\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Import CSV Into Oracle Table Using Python? &#8226; Vinish.Dev\" \/>\n<meta property=\"og:description\" content=\"Learn how to import CSV into Oracle table using Python. Multiple examples are given to load data using csv.reader and csv.DictReader method of CSV module.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vinish.dev\/how-to-import-csv-into-oracle-table-using-python\" \/>\n<meta property=\"og:site_name\" content=\"Vinish.Dev\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/foxinfotech2014\" \/>\n<meta property=\"article:published_time\" content=\"2018-09-11T06:17:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-27T08:35:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/vinish.dev\/wp-content\/uploads\/2018\/09\/Python.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"940\" \/>\n\t<meta property=\"og:image:height\" content=\"788\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Vinish Kapoor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/x.com\/vinish_kapoor\" \/>\n<meta name=\"twitter:site\" content=\"@foxinfotech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vinish Kapoor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/vinish.dev\\\/how-to-import-csv-into-oracle-table-using-python#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vinish.dev\\\/how-to-import-csv-into-oracle-table-using-python\"},\"author\":{\"name\":\"Vinish Kapoor\",\"@id\":\"https:\\\/\\\/vinish.dev\\\/#\\\/schema\\\/person\\\/a7790479716d2a54131ca873f8483d3f\"},\"headline\":\"How to Import CSV Into Oracle Table Using Python?\",\"datePublished\":\"2018-09-11T06:17:51+00:00\",\"dateModified\":\"2025-05-27T08:35:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/vinish.dev\\\/how-to-import-csv-into-oracle-table-using-python\"},\"wordCount\":478,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/vinish.dev\\\/#\\\/schema\\\/person\\\/df5e5ca816f6f4302efc03cf58dc97b4\"},\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/vinish.dev\\\/how-to-import-csv-into-oracle-table-using-python#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vinish.dev\\\/how-to-import-csv-into-oracle-table-using-python\",\"url\":\"https:\\\/\\\/vinish.dev\\\/how-to-import-csv-into-oracle-table-using-python\",\"name\":\"How to Import CSV Into Oracle Table Using Python? &#8226; Vinish.Dev\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vinish.dev\\\/#website\"},\"datePublished\":\"2018-09-11T06:17:51+00:00\",\"dateModified\":\"2025-05-27T08:35:11+00:00\",\"description\":\"Learn how to import CSV into Oracle table using Python. Multiple examples are given to load data using csv.reader and csv.DictReader method of CSV module.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vinish.dev\\\/how-to-import-csv-into-oracle-table-using-python#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vinish.dev\\\/how-to-import-csv-into-oracle-table-using-python\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vinish.dev\\\/how-to-import-csv-into-oracle-table-using-python#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vinish.dev\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\",\"item\":\"https:\\\/\\\/vinish.dev\\\/category\\\/python\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Import CSV Into Oracle Table Using Python?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vinish.dev\\\/#website\",\"url\":\"https:\\\/\\\/vinish.dev\\\/\",\"name\":\"Vinish.Dev\",\"description\":\"Vinish Kapoor&#039;s Blog: Best Oracle Blog for Developers\",\"publisher\":{\"@id\":\"https:\\\/\\\/vinish.dev\\\/#\\\/schema\\\/person\\\/df5e5ca816f6f4302efc03cf58dc97b4\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vinish.dev\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/vinish.dev\\\/#\\\/schema\\\/person\\\/df5e5ca816f6f4302efc03cf58dc97b4\",\"name\":\"Vinish Kapoor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vinish.dev\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/vinishprofile.png\",\"url\":\"https:\\\/\\\/vinish.dev\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/vinishprofile.png\",\"contentUrl\":\"https:\\\/\\\/vinish.dev\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/vinishprofile.png\",\"width\":192,\"height\":192,\"caption\":\"Vinish Kapoor\"},\"logo\":{\"@id\":\"https:\\\/\\\/vinish.dev\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/vinishprofile.png\"},\"description\":\"Vinish Kapoor is a seasoned software development professional and a fervent enthusiast of artificial intelligence (AI). His impressive career spans over 25+ years, marked by a relentless pursuit of innovation and excellence in the field of information technology. As an Oracle ACE, Vinish has distinguished himself as a leading expert in Oracle technologies, a title awarded to individuals who have demonstrated their deep commitment, leadership, and expertise in the Oracle community.\",\"sameAs\":[\"https:\\\/\\\/vinish.dev\\\/\",\"https:\\\/\\\/www.facebook.com\\\/foxinfotech2014\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/vinish-kapoor\\\/\",\"https:\\\/\\\/x.com\\\/foxinfotech\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/vinish.dev\\\/#\\\/schema\\\/person\\\/a7790479716d2a54131ca873f8483d3f\",\"name\":\"Vinish Kapoor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a67232caa79b11f24f16c371866a96cfb575e011ebda6fa6e3d088a837a31bde?s=96&d=identicon&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a67232caa79b11f24f16c371866a96cfb575e011ebda6fa6e3d088a837a31bde?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a67232caa79b11f24f16c371866a96cfb575e011ebda6fa6e3d088a837a31bde?s=96&d=identicon&r=g\",\"caption\":\"Vinish Kapoor\"},\"description\":\"Vinish Kapoor is a seasoned software development professional and a fervent enthusiast of artificial intelligence (AI). His impressive career spans over 25+ years, marked by a relentless pursuit of innovation and excellence in the field of information technology. As an Oracle ACE, Vinish has distinguished himself as a leading expert in Oracle technologies, a title awarded to individuals who have demonstrated their deep commitment, leadership, and expertise in the Oracle community.\",\"sameAs\":[\"https:\\\/\\\/vinish.dev\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/vinish-kapoor\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/x.com\\\/vinish_kapoor\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Import CSV Into Oracle Table Using Python? &#8226; Vinish.Dev","description":"Learn how to import CSV into Oracle table using Python. Multiple examples are given to load data using csv.reader and csv.DictReader method of CSV module.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vinish.dev\/how-to-import-csv-into-oracle-table-using-python","og_locale":"en_US","og_type":"article","og_title":"How to Import CSV Into Oracle Table Using Python? &#8226; Vinish.Dev","og_description":"Learn how to import CSV into Oracle table using Python. Multiple examples are given to load data using csv.reader and csv.DictReader method of CSV module.","og_url":"https:\/\/vinish.dev\/how-to-import-csv-into-oracle-table-using-python","og_site_name":"Vinish.Dev","article_publisher":"https:\/\/www.facebook.com\/foxinfotech2014","article_published_time":"2018-09-11T06:17:51+00:00","article_modified_time":"2025-05-27T08:35:11+00:00","og_image":[{"width":940,"height":788,"url":"https:\/\/vinish.dev\/wp-content\/uploads\/2018\/09\/Python.jpg","type":"image\/jpeg"}],"author":"Vinish Kapoor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/x.com\/vinish_kapoor","twitter_site":"@foxinfotech","twitter_misc":{"Written by":"Vinish Kapoor","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vinish.dev\/how-to-import-csv-into-oracle-table-using-python#article","isPartOf":{"@id":"https:\/\/vinish.dev\/how-to-import-csv-into-oracle-table-using-python"},"author":{"name":"Vinish Kapoor","@id":"https:\/\/vinish.dev\/#\/schema\/person\/a7790479716d2a54131ca873f8483d3f"},"headline":"How to Import CSV Into Oracle Table Using Python?","datePublished":"2018-09-11T06:17:51+00:00","dateModified":"2025-05-27T08:35:11+00:00","mainEntityOfPage":{"@id":"https:\/\/vinish.dev\/how-to-import-csv-into-oracle-table-using-python"},"wordCount":478,"commentCount":1,"publisher":{"@id":"https:\/\/vinish.dev\/#\/schema\/person\/df5e5ca816f6f4302efc03cf58dc97b4"},"articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/vinish.dev\/how-to-import-csv-into-oracle-table-using-python#respond"]}]},{"@type":"WebPage","@id":"https:\/\/vinish.dev\/how-to-import-csv-into-oracle-table-using-python","url":"https:\/\/vinish.dev\/how-to-import-csv-into-oracle-table-using-python","name":"How to Import CSV Into Oracle Table Using Python? &#8226; Vinish.Dev","isPartOf":{"@id":"https:\/\/vinish.dev\/#website"},"datePublished":"2018-09-11T06:17:51+00:00","dateModified":"2025-05-27T08:35:11+00:00","description":"Learn how to import CSV into Oracle table using Python. Multiple examples are given to load data using csv.reader and csv.DictReader method of CSV module.","breadcrumb":{"@id":"https:\/\/vinish.dev\/how-to-import-csv-into-oracle-table-using-python#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vinish.dev\/how-to-import-csv-into-oracle-table-using-python"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/vinish.dev\/how-to-import-csv-into-oracle-table-using-python#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vinish.dev\/"},{"@type":"ListItem","position":2,"name":"Python","item":"https:\/\/vinish.dev\/category\/python"},{"@type":"ListItem","position":3,"name":"How to Import CSV Into Oracle Table Using Python?"}]},{"@type":"WebSite","@id":"https:\/\/vinish.dev\/#website","url":"https:\/\/vinish.dev\/","name":"Vinish.Dev","description":"Vinish Kapoor&#039;s Blog: Best Oracle Blog for Developers","publisher":{"@id":"https:\/\/vinish.dev\/#\/schema\/person\/df5e5ca816f6f4302efc03cf58dc97b4"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vinish.dev\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/vinish.dev\/#\/schema\/person\/df5e5ca816f6f4302efc03cf58dc97b4","name":"Vinish Kapoor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vinish.dev\/wp-content\/uploads\/2023\/12\/vinishprofile.png","url":"https:\/\/vinish.dev\/wp-content\/uploads\/2023\/12\/vinishprofile.png","contentUrl":"https:\/\/vinish.dev\/wp-content\/uploads\/2023\/12\/vinishprofile.png","width":192,"height":192,"caption":"Vinish Kapoor"},"logo":{"@id":"https:\/\/vinish.dev\/wp-content\/uploads\/2023\/12\/vinishprofile.png"},"description":"Vinish Kapoor is a seasoned software development professional and a fervent enthusiast of artificial intelligence (AI). His impressive career spans over 25+ years, marked by a relentless pursuit of innovation and excellence in the field of information technology. As an Oracle ACE, Vinish has distinguished himself as a leading expert in Oracle technologies, a title awarded to individuals who have demonstrated their deep commitment, leadership, and expertise in the Oracle community.","sameAs":["https:\/\/vinish.dev\/","https:\/\/www.facebook.com\/foxinfotech2014","https:\/\/www.linkedin.com\/in\/vinish-kapoor\/","https:\/\/x.com\/foxinfotech"]},{"@type":"Person","@id":"https:\/\/vinish.dev\/#\/schema\/person\/a7790479716d2a54131ca873f8483d3f","name":"Vinish Kapoor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/a67232caa79b11f24f16c371866a96cfb575e011ebda6fa6e3d088a837a31bde?s=96&d=identicon&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a67232caa79b11f24f16c371866a96cfb575e011ebda6fa6e3d088a837a31bde?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a67232caa79b11f24f16c371866a96cfb575e011ebda6fa6e3d088a837a31bde?s=96&d=identicon&r=g","caption":"Vinish Kapoor"},"description":"Vinish Kapoor is a seasoned software development professional and a fervent enthusiast of artificial intelligence (AI). His impressive career spans over 25+ years, marked by a relentless pursuit of innovation and excellence in the field of information technology. As an Oracle ACE, Vinish has distinguished himself as a leading expert in Oracle technologies, a title awarded to individuals who have demonstrated their deep commitment, leadership, and expertise in the Oracle community.","sameAs":["https:\/\/vinish.dev\/","https:\/\/www.linkedin.com\/in\/vinish-kapoor\/","https:\/\/x.com\/https:\/\/x.com\/vinish_kapoor"]}]}},"_links":{"self":[{"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/posts\/1926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/comments?post=1926"}],"version-history":[{"count":2,"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/posts\/1926\/revisions"}],"predecessor-version":[{"id":19262,"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/posts\/1926\/revisions\/19262"}],"wp:attachment":[{"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/media?parent=1926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/categories?post=1926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vinish.dev\/wp-json\/wp\/v2\/tags?post=1926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}