You need to list down the names of the tables in a file suppose list.txt
you can use the following shell script to generate spool of various tables in xls files.
cat list.txt | while read a
do
echo "spooling $a"
sqlplus username/password@string <
spool /home/oracle/$a.xls
select * from $a;
spool off
set markup html off spool off
EOF
done
set feed off markup html on spool on
spool c:\salgrade.xls
select * from salgrade;
spool off
set markup html off spool off
No comments:
Post a Comment