I imported a transport tablespace from source database to my target database using IMPDP command. After importing, my schema's default tablespace shows as USERS tablespace. But when I created that schema at my source database, on that time I mentioned its default tablespace and also its quota.
Why my imported tablespace not tagged with the schema when I perform IMPDP command with TRANSPORT_DATAFILES parameter?
For your understanding, I give my steps as following.
- Create tablespace on my target database.
- Create user and assign its default and quota tablespace with newly created tablespace.
- Create some table and insert some data to the schema.
- Alter tablespace to READ ONLY mode.
- Perform EXPDP using TRANSPORT_TABLESPACES parameter.
- Copy the tablespace related datafile to my target database.
- At my target database, create same schema without mentioning the default and quota tablespace name.
- Perform IMPDP using TRANSPORT_DATAFILES parameter.
- Alter tablespace to READ WRITE mode.
- Insert data and get ORA-01536: space quota exceeded for tablespace error.
- Export command: expdp system/sys123@localhost:1521/orcl directory=TEST_BKUP_TBLSPS_DIRECTORY DUMPFILE=transport_tablespace_dumpfile.dmp logfile=transport_tablespace_exp_log_1.log transport_tablespaces=TEST_BKUP_TBLSPC_EXPIMP.
- Import command: impdp system/sys123@localhost:1521/orcl directory=TEST_BKUP_TBLSPS_DIRECTORY DUMPFILE=transport_tablespace_dumpfile.dmp logfile=transport_tablespace_imp_log_1.log transport_datafiles='D:\app\administrator\oradata\TEST_BKUP_TBLSPC_EXPIMP_DBF1_DBF.DBF'.