I want to clone oracle 11g databases on the same machine and I need to change user etc. from e.g. PROD to DEV.
For that I use expdp/impdp, but this tends to be slow with increasing database size. I need to do this on linux and windows machines.
Is using expdp/impdp the fastest way to do this?
Or should I use a completly different way of doing this?
i.e. do not use the same machine,
use two machines i.e. two separate oracle servers
or install multiple oracle servers on the same machine?
Best Answer
I prefer to use the RMAN clone method. The overall method is to start with the PROD database, and then a DEV database that is in a NOMOUNT state with all datafiles/controlfiles/tempfiles/archivelogs removed:
This gives me a block-for-block recreation of the production level database, and depending on how many threads you give RMAN, can be completed pretty quickly.
From there, I have a set of environment specific scripts I run that change passwords, null out email addresses, etc in the DEV database to configure it the way it needs to be.