Thanks for the link to Tom's page... I use ODBC already, but I wanted an unlinked ascii file to be generated from Oracle itself.
I was actually going to use it to save a merge data file to a user's pc from an Oracle db sitting on the Internet, so they could do a mail merge using MS Word.
I think Tom's article might do the trick. Many thanks, have a good day!
Max Hugen
Hugen Enterprises Pty Ltd
www.hugen.com.au
Export has multiple meanings in Oracle. The actual Export utility will only export binary files that oracle can read to import back into a database. However you can use sqlplus and concatentation operators to export to an ascii text file.
Warning watch out for columns with embedded commas in data like a name field example.
"lastname, firstname"
sqlplus -s /nolog
connect user@sid/password
spool /tmp/comma.out
set heading off;
set pagesize 0;
set feedback off;
set echo off;
set pause off;
set termout off;
select col1||','||col2||','||col3 from tableA;
spool off
exit
the file /tmp/comma.out now contains your comma delimeted ascii text file.
Bookmarks