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.
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-win32soft-098987.html 
Now I want to save an oracle pl/sql query result as a csv. How to do it?

Thank you
RayneAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Geert GOracle dbaCommented:
there is a few ways to do this.
one way is like in earlier asked Q:
http://www.experts-exchange.com/Database/Oracle/Q_27832701.html

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
0
ThommyCommented:
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)
0
Geert GOracle dbaCommented:
Thommy,
it'll be hard to convince an oracle dba to implement sql server procedures ...
0
slightwv (䄆 Netminder) Commented:
If all you want to do is access the database, I would suggest the Instant Client:
http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html

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:
http://www.experts-exchange.com/Database/Oracle/Q_24914739.html#a25864822

The other option you have is just download SQL Developer:
http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html

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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RayneAuthor Commented:
I will follow up for sure....:)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.