I have a situation in the Schema refresh process where i may have to delete a tablespace and its datafiles.
Then I have to recreate it as it was before and restore all it objects .
Is there any way that i can capture all the objects of that tablespace before it is deleted and then later restore it back as it was .
Any Expert sugggestion is highly apprciated .
The Platform is as below ..
Oracle Database 11g Enterprise Edition Release 18.104.22.168.0 - 64bit Production
PL/SQL Release 22.214.171.124.0 - Production
CORE 126.96.36.199.0 Production
TNS for Linux: Version 188.8.131.52.0 - Production
NLSRTL Version 184.108.40.206.0 - Production
Thanks In Advance .
You can use the magic of rman tspitr as long as your tablespace is independent of other tablespaces:
There are 2 methods you could use with Data Pump.
1. tablespace mode export. expdp user/password tablespaces=<your list here> ...
2. transportable tablespace mode. expdp user/password transport_tablespaces=<your tablespace list here> ...
NOTE: for #2, you need to have your tablespaces in read only mode, then you need to copy the data files, and the
tablespaces need to be self contained.
Hope this helps.