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.
Answer Posted / 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 |
Post New Answer View All Answers
what is denormalization. : Sql dba
Is sql harder than python?
what are the authentication modes in sql server? : Sql dba
What is rollback?
How much does sql cost?
What is data type in sql?
What is the difference between distinct and unique in sql?
What operating systems are supported by oracle sql developer?
how to use in conditions? : Sql dba
What is the use of primary key?
Can you rollback after commit?
Which data type is a composite type?
Is sqlexception checked or unchecked?
explain the difference between bool, tinyint and bit. : Sql dba
Is progress software supports to ( pl/sql )?