I need the format to be a flat text file not an Oracle dmp file.
Thanks
Main Topics
Browse All TopicsHi
Platform : Oracle 9.2 / Windows 2000
I'd like to export a table with 40 million rows to a flat file. If I SPOOL data into a regular text file it grinds to a crawl after around 4 million records. I have tried TOAD but it hangs!
Does anybody know of a utility that might do what I am looking for?
Thanks
AC
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
AC
For more detailed information on export look at:
http://download-west.oracl
Registration is free.
Regards
Chedgey
AC,
If you need a flat file output then the easiest way is to write something to do it for in either PL/SQL or Pro*C.
To do it in PL/SQL is quite simple using the supplied UTL_FILE package. As a simplistic example:
Declare
vFileHandle UTIL_FILE.FILE_TYPE;
vOutputDirectory VarChar2(50) := 'C:\TEMP\';
vOutputFileName VarChar2(50) := 'TestPutput.txt';
Cursor cTable Is Select TABLE_NAME From USER_TABLES;
Begin
vFileHandle := UTIL_FILE.FOPEN( vOutputDirectory, vOutputFileName, 'w' );
For rTable In cTable
Loop
UTIL_FILE.PUTF( vFileHandle, '%s\n', rTable.TABLE_NAME );
UTIL_FILE.FFLUSH( vFileHandle );
End Loop;
UTIL_FILE.FCLOSE( vFileHandle );
End;
The documentation is at:
http://download-west.oracl
I hope that helps.
Regards
Chedgey
You may want trying FastReader from Wisdomforce www.wisdomforce.com . FastReader is exporting the data from very large Oracle tables into flat text files very fast . FastReader's huge advantage it doesn't add overhed on your system. Don't know what hardware you have, but in my case FastReader unloaded 55 million rows from huge Oracle table in like 5 minutes. FastReader also generates loader scripts to various databases such as Oracle (sqlldr), MSSQL Server (bcp), DB2 , MySQL, etc... Which is nice since it is easy to automate the process
Business Accounts
Answer for Membership
by: chedgeyPosted on 2004-07-28 at 03:39:29ID: 11654673
AC,
abase>
What is wrong with Oracle's export utility?
Try, from a command window:
exp <username>/<password>@<dat
Then enter the requested details such as filename, object owner and objects.
Regards
Chedgey