Write a small plsql script using the utl_file.
http://technet.oracle.com/docs/produ...ile.htm#998101

Sam