• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 577
  • Last Modified:

how to do this? oracle

Hello All,

This is question for oracle. I am new to it and sure how to tackle it. Recently, I have been granted read-only access to oracle 11g backend. Soon, I will install the run time client for 11 g on my pc soon.
Now I want to save an oracle pl/sql query result as a csv. How to do it?

Thank you
2 Solutions
Geert GOracle dbaCommented:
there is a few ways to do this.
one way is like in earlier asked Q:

you'll need access to the host to get at the file
> on windows, if the instance runs with the system user, it can only write to the host filesytem
If you can convince your database administrator to create special stored procedures, you may use below for generating CSV...
Saving SQL Query Results to Comma Delimited Files (CSV)
Geert GOracle dbaCommented:
it'll be hard to convince an oracle dba to implement sql server procedures ...
slightwv (䄆 Netminder) Commented:
If all you want to do is access the database, I would suggest the Instant Client:

You will need two downloads: Basic and sqlplus

There are some minor manual setup that will be needed after you unzip them to set up the tnsnames.ora file but we'll cover that later.

Once you have sqlplus there are several ways to generate a CSV.  Google: oracle string aggregation

I prefer the XML method:

The other option you have is just download SQL Developer:

I believe it has the ability to export to CSV built in (but I'm not 100% sure.... I don't use that tool).

If you can provide some sample data and expected results, we can create a custom script for you.
RayneAuthor Commented:
I will follow up for sure....:)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now