Tuesday 12 November 2013

Import data from EXCEL to Oracle table using PL/SQL Developer

After long time I am writing this article.

Here I am explain how we can import EXCEL data into Oracle table by using PL/SQL developer.
Here is the sample EXCEL sheet.


Now create a table with the columns, "EID","ENAME" and "Salary" in the database as below.

Choose "ODBC Importer" from Tools Menu. 





Select "Excel Files" from the drop down and click on "Connect". Now choose the Excel file and click "ok".






Note : Drives can be choose from the drop down as marked in the above image

Listed the all sheets in selected Excel file. Choose the sheet which having data. We can see preview of the data from "Result Preview".



Click on "Data to Oracle" tab and select "Owner" , "Table" from drop down.



In this case I created table "Test" under "SYS" owner. After selecting the table fields will be mapped automatically, because we created the columns withe same name of the excel columns. Check the preview and click on "Import".

Now Excel data transfer into Oracle table, "TEST".










32 comments:

  1. Thanks friend! Really helped me....

    ReplyDelete
  2. Thanks so much!!that was very helpful

    ReplyDelete
  3. Thanks for this.

    ReplyDelete
  4. It was helpful! Thank's a lot! Regards from Hungary :)

    ReplyDelete
  5. It was a great help. Thanks !!!

    ReplyDelete
  6. Is it also possible to create a new table from an excel file.

    ReplyDelete
  7. Hi Dk, Could you please provide more details...

    ReplyDelete
  8. when each record is added pl/sql keeps asking 'Do you want to continue?' you have to press yes every time. any way to get rid of that message? i have 10k records to load

    ReplyDelete
  9. Which tool you are using? is that PL/SQL Developer?

    ReplyDelete
  10. Thanks, it was very useful

    ReplyDelete
  11. Thanks it works.. But in the beginning it shows error that table doesn't exist.. it works after clearing the value of "owner"

    ReplyDelete
  12. Thank you very much. Very useful.

    ReplyDelete
  13. Thanks! Best which I found about topic.

    ReplyDelete
  14. This comment has been removed by the author.

    ReplyDelete
  15. How i insert data into oracle from excel without SQL developer
    and using PL/SQL for loop

    ReplyDelete
  16. when I go to ODBC I don't see anything in my list especially Excel files. I am on Win 10 and tried 32-bit and 64-bit ODBC and none worked. Do I need 64-bit ODBC driver or 32-bit for Win 10

    ReplyDelete
    Replies
    1. I am also facing same issue. No Excel Files showing up.
      Windows 10; 32-bit.

      Delete
  17. Thank you , Useful information

    ReplyDelete
  18. Great Article. As I read the blog I felt a tug on the heartstrings. it exhibits how much effort has been put into this.
    IEEE Projects for CSE in Big Data

    Spring Framework Corporate TRaining

    Final Year Project Centers in Chennai

    JavaScript Training in Chennai

    ReplyDelete
  19. Thank you!!! For a very long time I could not find how to do this, in TOAD it is much more convenient.

    ReplyDelete
  20. This comment has been removed by the author.

    ReplyDelete
  21. See this blog post to insert from blog excel's .xlsx file:
    https://apexrecipe.blogspot.com/2020/05/how-to-import-data-from-excels-xlsx.html

    and see blog post to insert from blog excel's .csv file:
    https://apexrecipe.blogspot.com/2020/05/how-to-import-data-from-excels-csv-file.html

    ReplyDelete