Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to speed up csv export ? what is best rapid csv export method ?

orasiyaMay 9 2024 — edited May 9 2024

Dear friends,

I try to export csv from a partitoned table ( 300GB ) it takes 6 hours (only one table), using following code

set term off

set feed off

set colsep '|'

set echo off

set feedback off

set linesize 1000

set pagesize 0

set trimspool on

SET TERMOUT OFF

spool '/backup/csv/Mytable.csv'

SELECT /*+ parallel */ /*csv*/ col1 || '|' || col2 || '|' || col3 FROM MySchema.MyTable ;

spool off

exit;

but when I export (using expdp ) all of tables under the schema & its data (3TB) it takes only 20 minutes!

why expdp is very fast comparing to sqlplus spool ?
what is the fast method to export csv from oracle table ?
regards
Siya AK

Hardware 4 TB Ram + 196 core cpu + rapid nvme disk
oracle 11g r2

This post has been answered by Jonathan Lewis on May 9 2024
Jump to Answer
Comments
Post Details
Added on May 9 2024
6 comments
1,432 views