In my Oracle 11.2 I have a schema MAIN with 500 tables distributed on 5 tablespaces. 100 tables in TBS1, 100 in TBS2 and so on... Default for user MAIN is TBS1.
Sometimes for some reason i have to export the schema MAIN
expdp \'/ as sysdba\' schemas=main dumpfile=main.dmp directory=dpdumps
and import it back to the same tablespaces
impdp \'/ as sysdba\' directory=dpdumps dumpfile=main.dmp version=11.2
but after the import i have ALL the objects in one default TBS1
How can i perform impdp in order to get the tables to the original tablespaces as they were before export? Where i'm wrong?
Thank you.