You would have to create a cursor to read the data you want to export, and use the <a href="http://docs.oracle.com/cd/B19306_01/appdev.102/b14258/u_file.htm">UTL_FILE package</a> to create the file and write the data to it.
Here is another link with useful information and some examples:
<a href="http://docstore.mik.ua/orelly/oracle/bipack/ch06_02.htm">UTL_FILE: Reading and Writing Server-side Files</a>
Last Wiki Answer Submitted: March 14, 2012 3:11 pm by carlosdl63,535 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.