dbTalk Databases Forums  

How to spool statements too

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss How to spool statements too in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Norbert Pürringer
 
Posts: n/a

Default How to spool statements too - 08-14-2008 , 10:27 AM






Hello,

I would like to spool an Oracle SQL script. Now, if I have started a
spool in SQL Plus, each statement and its result is going to be logged
in a text file. But if I want to spool an SQL script, only the results
are spooled, but not the respective statements. Is there a chance to
spool the executed statements of an SQL script too?

Thank you,
Norbert

Reply With Quote
  #2  
Old   
Terry Dykstra
 
Posts: n/a

Default Re: How to spool statements too - 08-14-2008 , 10:43 AM






"Norbert Pürringer" <thalion77 (AT) graffiti (DOT) net> wrote

Quote:
Hello,

I would like to spool an Oracle SQL script. Now, if I have started a
spool in SQL Plus, each statement and its result is going to be logged
in a text file. But if I want to spool an SQL script, only the results
are spooled, but not the respective statements. Is there a chance to
spool the executed statements of an SQL script too?

Thank you,
Norbert
A simple test script x.sql:

set echo on
set feedback on
set verify on
set termout on

spool x.lst
select sysdate from dual;
spool off


--
Terry Dykstra




Reply With Quote
  #3  
Old   
Terry Dykstra
 
Posts: n/a

Default Re: How to spool statements too - 08-14-2008 , 10:43 AM



"Norbert Pürringer" <thalion77 (AT) graffiti (DOT) net> wrote

Quote:
Hello,

I would like to spool an Oracle SQL script. Now, if I have started a
spool in SQL Plus, each statement and its result is going to be logged
in a text file. But if I want to spool an SQL script, only the results
are spooled, but not the respective statements. Is there a chance to
spool the executed statements of an SQL script too?

Thank you,
Norbert
A simple test script x.sql:

set echo on
set feedback on
set verify on
set termout on

spool x.lst
select sysdate from dual;
spool off


--
Terry Dykstra




Reply With Quote
  #4  
Old   
Terry Dykstra
 
Posts: n/a

Default Re: How to spool statements too - 08-14-2008 , 10:43 AM



"Norbert Pürringer" <thalion77 (AT) graffiti (DOT) net> wrote

Quote:
Hello,

I would like to spool an Oracle SQL script. Now, if I have started a
spool in SQL Plus, each statement and its result is going to be logged
in a text file. But if I want to spool an SQL script, only the results
are spooled, but not the respective statements. Is there a chance to
spool the executed statements of an SQL script too?

Thank you,
Norbert
A simple test script x.sql:

set echo on
set feedback on
set verify on
set termout on

spool x.lst
select sysdate from dual;
spool off


--
Terry Dykstra




Reply With Quote
  #5  
Old   
Terry Dykstra
 
Posts: n/a

Default Re: How to spool statements too - 08-14-2008 , 10:43 AM



"Norbert Pürringer" <thalion77 (AT) graffiti (DOT) net> wrote

Quote:
Hello,

I would like to spool an Oracle SQL script. Now, if I have started a
spool in SQL Plus, each statement and its result is going to be logged
in a text file. But if I want to spool an SQL script, only the results
are spooled, but not the respective statements. Is there a chance to
spool the executed statements of an SQL script too?

Thank you,
Norbert
A simple test script x.sql:

set echo on
set feedback on
set verify on
set termout on

spool x.lst
select sysdate from dual;
spool off


--
Terry Dykstra




Reply With Quote
  #6  
Old   
gazzag
 
Posts: n/a

Default Re: How to spool statements too - 08-14-2008 , 10:52 AM



On 14 Aug, 16:27, Norbert Pürringer <thalio... (AT) graffiti (DOT) net> wrote:
Quote:
Hello,

I would like to spool an Oracle SQL script. Now, if I have started a
spool in SQL Plus, each statement and its result is going to be logged
in a text file. But if I want to spool an SQL script, only the results
are spooled, but not the respective statements. Is there a chance to
spool the executed statements of an SQL script too?

Thank you,
Norbert
SET ECHO ON

HTH

-g


Reply With Quote
  #7  
Old   
gazzag
 
Posts: n/a

Default Re: How to spool statements too - 08-14-2008 , 10:52 AM



On 14 Aug, 16:27, Norbert Pürringer <thalio... (AT) graffiti (DOT) net> wrote:
Quote:
Hello,

I would like to spool an Oracle SQL script. Now, if I have started a
spool in SQL Plus, each statement and its result is going to be logged
in a text file. But if I want to spool an SQL script, only the results
are spooled, but not the respective statements. Is there a chance to
spool the executed statements of an SQL script too?

Thank you,
Norbert
SET ECHO ON

HTH

-g


Reply With Quote
  #8  
Old   
gazzag
 
Posts: n/a

Default Re: How to spool statements too - 08-14-2008 , 10:52 AM



On 14 Aug, 16:27, Norbert Pürringer <thalio... (AT) graffiti (DOT) net> wrote:
Quote:
Hello,

I would like to spool an Oracle SQL script. Now, if I have started a
spool in SQL Plus, each statement and its result is going to be logged
in a text file. But if I want to spool an SQL script, only the results
are spooled, but not the respective statements. Is there a chance to
spool the executed statements of an SQL script too?

Thank you,
Norbert
SET ECHO ON

HTH

-g


Reply With Quote
  #9  
Old   
gazzag
 
Posts: n/a

Default Re: How to spool statements too - 08-14-2008 , 10:52 AM



On 14 Aug, 16:27, Norbert Pürringer <thalio... (AT) graffiti (DOT) net> wrote:
Quote:
Hello,

I would like to spool an Oracle SQL script. Now, if I have started a
spool in SQL Plus, each statement and its result is going to be logged
in a text file. But if I want to spool an SQL script, only the results
are spooled, but not the respective statements. Is there a chance to
spool the executed statements of an SQL script too?

Thank you,
Norbert
SET ECHO ON

HTH

-g


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.