How to export the table data (this table having 18 million
records) to .csv file. Please tell me is there any faster
way to export the data.

Answers were Sorted based on User's Feedback



How to export the table data (this table having 18 million records) to .csv file. Please tell me i..

Answer / piyush shobhane

Here, You can use TOAD utility.
Heat the query...

After result is populated in tables below make save as
Option: EXCEL FILE
Format: CSV file

It will automatically starts saving files upto the last
record. Get Toad and u will done...

Piyush

Is This Answer Correct ?    13 Yes 1 No

How to export the table data (this table having 18 million records) to .csv file. Please tell me i..

Answer / maumita bandyopadhyay

We can use External table to extract data from data base
to .csv file. External table of TYPE ORACLE_DATAPUMP will
do.

Syntax is:
CREATE TABLE <ext_table_name>
ORGANISED EXTERNALLY
(
TYPE ORACLE_DATAPUMP
DEFAULT DIRECTORY <directory_name>
LOCATION <filename.dat>
)
AS SELECT * FROM <internal_table_name>

Is This Answer Correct ?    3 Yes 0 No

How to export the table data (this table having 18 million records) to .csv file. Please tell me i..

Answer / kiran penujuri

We have one very good oracle utility called EXPORT
Exporting of ORACLE database objects is controlled by
parameters.
To get familiar with EXPORT parameters type:
exp help=y
You will get a short description and the default settings
will be shown.
The EXPORT utility may be used in three ways:

Interactive dialogue
Simply type exp. You will be prompted for your ORACLE
userid, password. All other prompts answer by pressing the
return key. This is the easiest way to export all data you
stored in the ORALE database. You may assign other values
than the defaults to the parameters but in most cases it is
unnecessary.
Controlled through bypassed parameters
You may bypass parameters when you export data from the
database. Type:
exp <userid/password>
<parameter>=<value>,<parameter>=<value>,...
Example of exporting scott's tables EMP and DEPT to file
empdept.expdat and storing all messages to file empdept.log:
exp scott/tiger file=empdept.expdat tables=(EMP,DEPT)
log=empdept.log

Parameterfile controlled
Instead of typing the parameters on the commandline you may
use a parameter file where the parameters are stored. The
syntax for this method is: exp <userid/password>
parfile=<filename>
Do not ignore warnings and messages! Look at your logfile
and repeat EXPORT until you get messages like:
About to export specified tables ...
. exporting table EMP 14
rows exported
. exporting table DEPT 4
rows exported
Export terminated successfully without warnings.
\

Is This Answer Correct ?    2 Yes 1 No

How to export the table data (this table having 18 million records) to .csv file. Please tell me i..

Answer / kiran vangeti

Hi Aryasen,

Thanks for your answer. But when exporting the data from
SQL Developer for 18 million records it is taking too long
time to complete. is there any other way to complete this
task with out SQL Developer and PL/SQL developer.

Is This Answer Correct ?    1 Yes 1 No

How to export the table data (this table having 18 million records) to .csv file. Please tell me i..

Answer / aryasen vaikom

If you are using SQLDEVELOPER there is one option to export
data into csv file.

Is This Answer Correct ?    2 Yes 3 No

How to export the table data (this table having 18 million records) to .csv file. Please tell me i..

Answer / aryasen vaikom

Hi Kiran,
pls go through the below link.
http://www.simple-talk.com/sql/database-administration/creating-csv-files-using-bcp-and-stored-procedures/

Is This Answer Correct ?    1 Yes 2 No

How to export the table data (this table having 18 million records) to .csv file. Please tell me i..

Answer / vellai

Hi,
In oracle,We have SQL loader utility tool. You can use that
utility with out creating index and referencial constraint.
thereafter you can see 18 million records are loaded within
a hour into database.

Thank you
Vellai

Is This Answer Correct ?    0 Yes 1 No

How to export the table data (this table having 18 million records) to .csv file. Please tell me i..

Answer / kiran kumar vangeti

Hi Vellai,

From SQL loader, we are going to insert the data in to
database. But my concern is i need to export the data from
database to .csv file.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More SQL PLSQL Interview Questions

what is a view? : Sql dba

0 Answers  


How to find only %th Highest Sal

6 Answers   Infogain, Symphony,


What are joins in sql?

0 Answers  


What is pivot in sql?

0 Answers  


Why do we use triggers?

0 Answers  






Can a table contain multiple primary key’s?

0 Answers  


How to return an array from java to pl/sql?

0 Answers  


What are conditional predicates?

0 Answers  


How to read/write files from pl/sql?

0 Answers  


Describe the Index, Types of index, At what situation we have used? Which one s better than others?

1 Answers   IBM, TCS,


What are the types of index in sql?

0 Answers  


Mention what does the hierarchical profiler does?

0 Answers  


Categories