Oracle offers no parameter to specify a different tablespace to import data into. Objects will be re-created in the tablespace they were originally exported from. One can alter this behaviour by following procedure:
#> imp system/oracle fromuser=WIN_FDC_CDB touser=MYTEST file=./exp_WIN_FDC_CDB.dmp log=./imp_WIN_FDC_CDB.log indexfile=./idx_WIN_FDC_CDB.sql
indexfile: idx_WIN_FDC_CDB.sql
#> sed -e 's/^REM//g' -e '/rows$/d' -e 's/"CDB"/"MYTEST_DB"/g' idx_WIN_FDC_CDB.sql > idx_WIN_FDC_CDB.sql.ok
#> sqlplus mytest/mypass @idx_WIN_FDC_CDB.sql.ok | tee idx_WIN_FDC_CDB.sql.ok.log
TIPs:
CDB is the source tablespace
MYTEST_DB is the target tablespace
imp system/oracle fromuser=WIN_FDC_CDB touser=MYTEST file=./exp_WIN_FDC_CDB.dmp log=./imp_WIN_FDC_CDB.log ignore=y
TIPs:
Add the option ignore=y
Images 0 | ||
---|---|---|
No images to display in the gallery. |