This content has been marked as final. Show 5 replies
Data Pump (impdp or expdp) is the improved version of the export/import.
If you use exp you must use imp or if you use datapump to export must use datapump to import, cant use data pump to import a dumpfile exported with exp.
For more info:
Please, when the question will be resolved close this thread marking the post as answered. Keep the forum clean!
exp is an old unsupported tool that was replace by expdp, also known as Data Pump. In both cases you kind of need to know the tablespace information. The only time this is not true is if your directory structure on the source and target are the same and if you are doing an full=y export job. In this case, the tablespaces will be created for you in the same location. If your directory structure changed, then the tablespaces can't be created because the datafiles can't be created. The create tablespace will be something like:
create tablespace foo data file '<complete directory spec here with fil name at the end> size ...
For example, if you changed from VMS where your directory is something like $DB100:[000000.abc.def]
and if your source was Linux, this would never be able to be created.
If you don't have full, or if your directory structure is different, then what most people do is create the tablespaces before hand or remap the tablespace to an existing tablespace. To get the name of the tablespaces needed, you could do something like"
impdp user/password <your normal parameters here> sqlfile=my_sqlfile.sql
This will not import anything, but it will put all of the commands (ddl) in this file. You can then edit the file and look for TABLEPSACE to see what tablespaces are needed. You could then either pre-create them, or you could issue some remap_tablespace parmeters.
Hope this helps.