Eric,
Just so that we are speaking the same language, let me preface my reply with some nomenclature clarifications.
Some of Oracle's worst decisions have been made in the naming of products. And premier amongst their worst naming decisions was of their dump and restore utilities, which they stupidly named, "export" and "import" ("exp" and "imp").
Everyone else in the software industry use the terms "export" and "import" for code that allows easy data interchange with other software applications. For Oracle, however, their "exp" and "imp" utilities are really "dump" and "restore" utilities: The only software that can read and process the results of an Oracle "exp" ("export") is the same (or higher) version of Oracle "imp" ("import"). Conversely, the only file that an Oracle "imp" can read and process is a dump file that either the same version (or earlier version) of Oracle "exp" created.
Therefore, what you want is a solution that does not involve "export" as your subject heading implies. What you want is a query that reads a table and produces either comma-separated values (".csv") where the separator, instead of a comma, is a pipe symbol ("|"), or the result is fixed-length output.
I have a script (called "GENASCII.sql") that does what you want, except that it currently does not print out the column headings. I will modify the script for you and post it here.
Unfortunately, today produced that heaviest snowfall in our community in about the past 10 years. I've been snowblowing our "2-foot-deep gift" all day long, and I still have about 1/2 hour more to do before I'm done with that. And since it is currently 9:30 p.m., I must do it first so that my neighbors do not lynch me for the snowblower noise.
So, I'll get back to you the the results as soon as I can.
![[santa] [santa] [santa]](/data/assets/smilies/santa.gif)
Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services:
www.dasages.com]