Whenever we need to export the data from oracle (version 11g) below command of oracle can be used:
Option #1:
use exp command:
> exp
in command prompt check whether the oracle exp command is configured to execute by typing exp.
the exp command will prompt for user id and password of oracle.
most of the time this won't work if the sid is not set correctly because exp could not identify the correct database.
to set the sid use the below command
> set oracle_sid=database_sid_name
Option #2:
use the parameter of exp command in command prompt:
> set oracle_sid=database_sid_name
> exp dbusername/password@dbname FILE=C:/database_dump.dmp
The above command will start exporting the database in to the file under the location mentioned in the command using FILE parameter.
output
. . exporting table TABLENAME1 4 rows exported
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
. . exporting table TABLENAME2 9441 rows exported
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
. . exporting table TABLENAME3 2830 rows exported
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
No comments:
Post a Comment