Tuesday, February 19, 2008

How to export query results from Oracle SQL Developer tool

You have run a query against the database in the Oracle SQL Developer tool. Now you want to export the results. This is how you can do it. The screen shows it all. First select all the data the rest is easy.


20 comments:

  1. Excellent tip! Thanks!

    ReplyDelete
  2. It's so obvious... Yet I could not figure out until I found your post via Google.

    ReplyDelete
  3. Excellent and very simple. Thank you very much.

    ReplyDelete
  4. Excellent and very simple. Thank you very much, you've save me some bandwidth with this tip.

    ReplyDelete
  5. I tried it but it doesn't work.
    I do the following:

    execute the query (with F9)
    in the results, i click on select all
    then I select export data-->XLS but it does nothing

    does anyone has the same problem?

    ReplyDelete
  6. I've had problems with the most recent version. I'm currently running 1.5.1 Build MAIN-5440 without issue. You may want to revert and see if that makes a difference.

    ReplyDelete
  7. Like suggested by Jayaram Krishnaswamy in a private mail I tried the 1.5.4 and it worked!

    ReplyDelete
  8. Program pauses for 10 mins (as it often does), then gives me the options to export to file or clipboard. When posting to the clipboard, only one string is shown when pasting it in Excl (java.io.Stringbuffer@)

    ReplyDelete
  9. Kindly check your software version as this may have a bearing. Please read the other related comments.

    Thanks

    ReplyDelete
  10. How do i remove the "" when exporting the results to CSV??

    ReplyDelete
  11. how do i remove the "" when exporting the query results to CSV.?

    ReplyDelete
  12. So easy, so obvious, I feel so dummy asking it :)

    Thanks for the tip

    ReplyDelete
  13. FYI, Oracle has now changed this to a terribly named "unload"

    ReplyDelete
  14. Unload... Really!!!! I've been ignoring that just because the name.

    Thanks for the information!!!!

    ReplyDelete
  15. Thanks! Saves me the trouble of creating a table with the data first..

    ReplyDelete
  16. am having option to zip the export data in Toad . Is any such options are available in SQL developer..

    ReplyDelete
  17. SQL Developer Data Modeler operates with and models metadata.[4] Prior to SQL Developer version 3, it constituted a separate (but integrated) free[5] counterpart of SQL Developer. As of SQL Developer version 3 modeling has become an integrated part of the overall tool.
    STC Technologies

    ReplyDelete
  18. Hi
    I ran a query in sql developer to see some data.
    Now i want to extract the scripts written for inserting those data.
    How can i extract those scripts?
    Reply me on c2swapnil@gmail.com

    Regards,
    Swapnil

    ReplyDelete
  19. If I have multiple query result tabs in sql developer how could I export them all to a single workbook

    ReplyDelete
  20. I will try to take a look after downloading the latest version. Right now I am somewhat busy.

    ReplyDelete