Skip to Main Content

SQL & PL/SQL

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!

Spool using .dat file

NordikJul 5 2010 — edited Jul 5 2010
Hi,

I am trying to take a spool of multiple tables using .dat file. The script used in .dat file is given below. The problem is that i am able to log into oracle using this script but enviournment settings and spool doesnot happen. Please help.


sqlplus demo_user/sms123@orcl

echo set lin 10000
echo set pages 50000
echo set trimspool on
echo set colsep ','
echo set feedback off
echo set heading off
echo set arraysize 5000

echo SPOOL c:\abc.txt
echo SELECT * FROM XMLTEST11;
echo SPOOL OFF

echo exit

Edited by: Sonu on Jul 5, 2010 3:02 AM
This post has been answered by BluShadow on Jul 5 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 2 2010
Added on Jul 5 2010
2 comments
1,093 views