oracle - How to export half a million records from PL/SQL -


i've table around 500,000 records. need records exported in excel. when query i'm not able said out of memory

table doesn't have primary key/index.

is there way extract?

it easy in write file output form sqlplus . mycsv.sql:

set define off set echo off set serveroutput off set termout off set verify off set feedback off set pagesize 10000 set arraysize 5000 rem set head off set line 500 spool /tmp/mycsvfile.csv; select * my_table; spool off; exit; 

and linux prompt can run

$> sqlplus username/password @/tmp/mycsv.sql 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -