Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

spool output of @script.sql

Status
Not open for further replies.

antzzz

Programmer
Mar 9, 2001
85
AE
I tried to do the following in sqlplus:

SQL> spool output.txt
SQL> @script.sql

<results of script.sql>
.
.
.

SQL> spool off

but when I check output.txt, it only contains the ff:

SQL>@script.sql

Appreciate any advise.

Thanks
 
Antzz,

It's difficult to get a definitive answer without knowing what might be happening within "script.sql". Is is too large to post? Also, is there a reason that the "spool output.txt" and "spool off" are not inside the script?

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
@ 22:28 (28Oct04) UTC (aka "GMT" and "Zulu"),
@ 15:28 (28Oct04) Mountain Time
 
Actually, these are scripts that the vendor wants me to run to build various database objects, etc.

I received some errors while running some of those scripts and the vendor says I should have spooled the output while running them.

I believe some of them are quite large.

Since they are vendor scripts, we usually don't touch or play around with them.
 
Antzz,

Granted you don't want to modify the vendor scripts. But what you are telling me is very ambiguous: you tell me that "I received some errors while running some of those scripts," yet your spool file is empty. How do you account for that anomaly? If errors display on the screen while you are spooling, they will be in the spool file, right?

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
@ 07:12 (30Oct04) UTC (aka "GMT" and "Zulu"),
@ 00:12 (30Oct04) Mountain Time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top