473,662 Members | 2,637 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do you spool to txt file?

55 New Member
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.tx t
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 5079
debasisdas
8,127 Recognized Expert Expert
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
8379
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 few lines from the spool file as well. The best I've been able to do so far is the name of the original document, without a path to it. To get that far I had to import some functions from winspool. By the way, the spooled data is Postscript,...
0
1331
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 about? Sorry for my english Tanks
1
3986
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
1755
by: tvishwaprasad | last post by:
Hi Please help me to read the spool files in windows platform. From shekhar
0
1144
by: Bob Allen | last post by:
is there anyway to view a jes2 sysout spool file in c# readers. bob;
1
2713
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 FROM ist.costedevent_test ; BEGIN
1
2186
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 echo off; set trimspool on; set verify off; set feedback off;
4
2285
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 previous. Can somebody please help me? This is very urgent Thanks echo spool c:\temp\oracle\script_output.txt > c:\temp\oracle\tests.sql echo @c:\temp\oracle\Create_Config.sql >> c:\temp\oracle\tests.sql echo spool off ...
1
3282
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
1199
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. What's the best way of doing this print? Thanks
0
8857
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8768
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8547
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4181
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2763
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1754
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.