473,322 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

How do you spool to txt file?

55
I have a table in oracle 7.3 and I use SQLPLUS 8.0.6.0.0 to work with is DB.I would like to know how to spool the contents of a table to a txt file.
i tried this

spool c:\companies.txt
SELECT
COMPANY_NO ||','||
COMPANY_NAME
FROM companies

but i keep getting:ERROR at line 1:ORA-00900: invalid SQL statement
Nov 21 '08 #1
1 4999
debasisdas
8,127 Expert 4TB
but that should work for you.

please post what exactly you are doing.
Nov 21 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Larry Maturo | last post by:
I'm not sure if this is the right group to post this to, but here goes. I need to find out the name of the print spool file for every job queued to a particular printer. I actually need to read a...
0
by: Michele | last post by:
Hi, i need a software o a library to manage a spool file in ascii-txt file. It's a spool of invoice and i must divide it. For each invoice i must make a file. Where must i take information...
1
by: THOMAS FULLER | last post by:
How do I reset the default file locations for Oracle Xe? -- Thomas M. Fuller thomas.fuller@worldnet.att.net
0
by: tvishwaprasad | last post by:
Hi Please help me to read the spool files in windows platform. From shekhar
0
by: Bob Allen | last post by:
is there anyway to view a jes2 sysout spool file in c# readers. bob;
1
by: orajit | last post by:
I Have created following PL/sql blok DECLARE vl_n_cnt NUMBER:=0; vl_max_date varchar2(100); CURSOR c1 IS SELECT CREATED_DTM,EVENT_DTM,ACCOUNT_NUM,EVENT_COST_MNY,EVENT_TYPE_ID ...
1
by: akaley | last post by:
HI.. iam using Spool ..for loading the data into file from select statement.. iam facing some problems...Please give me u r valuable suggestion.. This is the sample code used by me.. set...
4
by: kwartz | last post by:
I have several .sql file that I am runing from the dos prompt using echo. I want to spool the log files of each of the .sql files into one. The way I have it now, the current log file overwrites the...
1
by: Atif | last post by:
Hi, I want to read the spool file's contents not pages but Text Data. Can any body plz help me in this regards Thanks in advance Best Regards Atif
0
by: Ertan Zanagar | last post by:
I have large number of spool files that I need to send to a printer in my ..net 2 C# code. I am trying to write a load testing app that can take these spool files and print them over and over. ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.