How does one get Oracle data into MS-Excel?
Submitted by admin on Wed, 2005-11-09 13:50.
There are several ways to extract data from Oracle and load it into Microsoft Excel. Here are some:
SQL*Plus
The easiest method is to spool the data from sqlplus to a CSV formatted file and open it in MS-Excel. Here is an example:
set echo off pagesize 0 head off feed off veri off trimspool on spool data.csv select COL1 || ',' || COL2 || ',' || COL3 .... spool off
The resulting spool file (data.csv in our exampel) can now be copied to a Windows machine and opened in Excel.
OO4O
Oracle Objects for OLE (OO4O) can be used to load data into Excel. For more details, see the OO4O FAQ.
3rd Party Tools
Download SQL*XL Lite, a freeware plug-in used to run SQL statements directly from Excel. SQL*XL (formerly Oraxcel) requires OO4O to be installed on your PC.
»
- Login to post comments


3rd party tool
Here is a tool to extract Oracle data into CSV format - Fastreader from wisdomforce (www.wisdomforce.com)
Especially useful when large amounts of data and high speed required.
Data exported into csv converts character value to numer
One of my columns which is a Varchar2 carries values as follows:
Unfortunately when a csv file is opened, these values get converted to numeric
This happens without any indication in csv.
Jnan