Вы находитесь на странице: 1из 3

OTN Discussion Forums : Export from oracle to excel ... http://forums.oracle.com/forums/thread.jspa?

messageID=2478921&

Welcome, Guest
Forum Home » Database » SQL and PL/SQL Sign In / Register
Guest Settings

Thread: Export from oracle to excel Search


FAQ

Reply to this Thread Search Forum Back to Thread List

Replies: 6 - Pages: 1 - Last Post: Apr 22, 2008 3:51 AM Last Post By: user539644 Legend

Guru : 2500 - 1000000 pts


user539644 Export from oracle to excel Reply Expert : 1000 - 2499 pts
Posted: Apr 22, 2008 1:54 AM
Posts: 525 Pro : 500 - 999 pts
Registered: 10/29/06 Hi , Journeyman : 200 - 499 pts

I like to export data from oracle to excel. Newbie : 0 - 199 pts

Oracle ACE Director


2 ways to do it i found is
Oracle ACE Member
First through "Import external Data" function in EXCEL but that
is not working on my system Oracle Employee ACE
Secondly through toad utility.
Java Champion
But i like to have a way where i can press one button and it will Helpful Answer (5 pts)
refresh the updated data.
Correct Answer (10 pts)
Thanx

Sven W. Re: Export from oracle to excel Reply


Posted: Apr 22, 2008 2:03 AM
Posts: 5,630 in response to: user539644
Registered: 10/13/00
The import external data is a good way to go.

What you need to do there is create an ODBC connection to


your database. usually you choose the same parameters for
your connection as you would do in TOAD.

BEDE Re: Export from oracle to excel Reply


Posted: Apr 22, 2008 2:07 AM
Posts: 282 in response to: user539644
Registered: 03/28/06
You may use a tool like TOAD or PL/SQL Developer, that have
the facility to export to Excel.
Or you may connect the Excel to Oracle through ADO. In Excel
you have the querytable object, that may be quite useful.
Beware of the sheets limit of only 65536 rows. In an Oracle
table you may have millions of rows. So, you must filter and/or
aggregate for large tables.

1 of 3 4/5/2011 5:08 PM
OTN Discussion Forums : Export from oracle to excel ... http://forums.oracle.com/forums/thread.jspa?messageID=2478921&

user539644 Re: Export from oracle to excel Reply


Posted: Apr 22, 2008 2:14 AM
Posts: 525 in response to: BEDE
Registered: 10/29/06
What i have seen in toad is it export data in txt,sql and other
format but not in excel. Secondly i need option where i just
have to refresh the data by a single click like we do in "Import
external Data". I have used "import External Data" with sql but
never with Oracle. and when i am doing that it is asking for tool
MS Query? Doest it support MS excel 2000?

Sven W. Re: Export from oracle to excel Reply


Posted: Apr 22, 2008 2:20 AM
Posts: 5,630 in response to: user539644
Registered: 10/13/00
Use "+Connect to New Data Source" then choose "Oracle" in
the database connection wizard from Excel.

sql_dev Re: Export from oracle to excel Reply


Posted: Apr 22, 2008 2:23 AM
Posts: 196 in response to: user539644
Registered: 04/18/08
From Sql plus, u can try like this..

SQL> set feed off markup html on spool on

SQL> spool 'd:\filename.xls'

SQL> select * from s_school_type;--Your query

SQL> spool off

SQL> set markup html off spool off

SQL>

user539644 Re: Export from oracle to excel Reply


Posted: Apr 22, 2008 3:51 AM
Posts: 525 in response to: Sven W.
Registered: 10/29/06

Use "+Connect to New Data Source" then choose


"Oracle" in the database connection wizard from
Excel.

thanx....it works as you say .... thanx alot

Pages: 1 Back to Thread List

2 of 3 4/5/2011 5:08 PM
OTN Discussion Forums : Export from oracle to excel ... http://forums.oracle.com/forums/thread.jspa?messageID=2478921&

About Oracle | Oracle and Sun | | Subscribe | Careers | Contact Us | Site Maps | Legal Notices | Terms of Use | Your Privacy Rights

3 of 3 4/5/2011 5:08 PM

Вам также может понравиться