Exporting on the console with Data Pump
You can export (on machine with Oracle 11) like this:
expdp system directory=DATA_PUMP_DIR schemas=seu_schema version=10.2
The name of the directory DATA_PUMP_DIR is obtained via the SQL command below:
select * from dba_directories
Incidentally DATA_PUMP_DIR
is the default name but the above SQL command must be executed to check if it is actually configured this way in your installation.
Exporting on the console with Data Pump
You can import (on machine with Oracle 10) like this:
impdp seu_schema directory=DATA_PUMP_DIR schemas=seu_schema
Note that you do not need to cite the DMP file name because it assigns the value expdat.dmp
by default. To check this just list the contents of the directory, the one shown when you executed the command select
above.
For example:
ls -lA /usr/lib/oracle/xe/app/oracle/admin/XE/dpdump
Don’t forget to copy the DMP file from the machine where the export was made to the other if the two versions of Oracle are installed on different machines.