Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to avoid/hide column header and ---- in sql command output

user564706Jan 12 2012 — edited Jan 12 2012
Dear Friends,

I have a script to get the list and delete datafiles

script is : (del.sql)

spool d:\del.bat
select 'rm -r '||name from v$datafile;
spool off;


script output (del.bat)

'RM-R'||NAME
--------------------------------------------------------------------------------
rm -r C:\ORACLE10GDB\ORADATA\TEST\SYSTEM01.DBF
rm -r C:\ORACLE10GDB\ORADATA\TEST\UNDOTBS01.DBF
rm -r C:\ORACLE10GDB\ORADATA\TEST\SYSAUX01.DBF
rm -r C:\ORACLE10GDB\ORADATA\TEST\USERS01.DBF



I don't want to have the column header and ---- which is present before the rm -r commands in my output spool file (del.bat)

how can i do it?Please suggest

Regards,
DB
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 9 2012
Added on Jan 12 2012
3 comments
1,603 views