suppressing unwanted entries while spooling of data [message #8753] |
Wed, 24 September 2003 02:06 |
ARANGASWAMY.V.
Messages: 29 Registered: April 2002
|
Junior Member |
|
|
Sir,
While spooling of data, I am able to suppress feedback, heading, trailing spaces, etc. But not in a position to suppress the command, @file_name and also spool off given in the end.
Is there any way to suppress, the file name given in the beginning and spool off given in the end. In otherwords, these two should not find a place in the spooling file, which is not at all required.
with advance thanks
V.A.Swamy
|
|
|
|
Re: suppressing unwanted entries while spooling of data [message #8756 is a reply to message #8754] |
Wed, 24 September 2003 06:44 |
ARANGASWAMY.V.
Messages: 29 Registered: April 2002
|
Junior Member |
|
|
Thanks.
I tested the same on UNIX. It is working fine.
Will it work on WINDOWS.
I also wanted to know whether it will work only on OS, but not in SQLPLUS environment.
i.e. you can not suppress within ORACLE, by using set commands as like feedback off, head off, etc.
with regards,
V.A.Swamy
|
|
|
|
Re: suppressing unwanted entries while spooling of data [message #8775 is a reply to message #8759] |
Thu, 25 September 2003 04:07 |
ARANGASWAMY.V.
Messages: 29 Registered: April 2002
|
Junior Member |
|
|
Thanks a lot.
Tested in WINDOWS, working well. Whatever, suggested by you, comes out of SQLPLUS environment. To continue, the work, I have to log in to ORACLE again. In other words, in between my work, it comes out of ORACLE.
Is there any way, i can capture the required report instead of going out of ORACLE.
with regards,
V.A.Swamy
|
|
|
|
|
Re: suppressing unwanted entries while spooling of data [message #8808 is a reply to message #8806] |
Fri, 26 September 2003 06:26 |
|
Mahesh Rajendran
Messages: 10707 Registered: March 2002 Location: oracleDocoVille
|
Senior Member Account Moderator |
|
|
-- ECHO CONTROLS THE DISPLAY OF THE 'START' COMMAND
-- or, if u set echo OFF , the commands that are executed in script are not displyaed. only result is displayed
mag@mutation_mutation > get one
1 set feed off
2 set head off
3 spool myfile.txt
4 select * from dept;
5* spool off;
-- lets set echo on and run the above script.
-- you will seee every command executed is shown ( and spooled
mag@mutation_mutation > set echo on
mag@mutation_mutation > @one
mag@mutation_mutation > set feed off
mag@mutation_mutation > set head off
mag@mutation_mutation > spool myfile.txt
mag@mutation_mutation > select * from dept;
10 ACCOUNTING NEW YORK
20 RESEARCH DALLAS
30 SALES CHICAGO
40 OPERATIONS BOSTON
mag@mutation_mutation > spool off;
-- check the spool file, the commands are there
mag@mutation_mutation > !cat myfile.txt
mag@mutation_mutation > select * from dept;
10 ACCOUNTING NEW YORK
20 RESEARCH DALLAS
30 SALES CHICAGO
40 OPERATIONS BOSTON
mag@mutation_mutation > spool off;
-- now set the echo off and try the same
-- no command or calling script is displayed
mag@mutation_mutation > set echo off
mag@mutation_mutation > @one
10 ACCOUNTING NEW YORK
20 RESEARCH DALLAS
30 SALES CHICAGO
40 OPERATIONS BOSTON
mag@mutation_mutation > !cat myfile.txt
10 ACCOUNTING NEW YORK
20 RESEARCH DALLAS
30 SALES CHICAGO
40 OPERATIONS BOSTON
mag@mutation_mutation >
|
|
|