Oracle Cloning
Oracle Cloning
Oracle Cloning
g Oracle Databases
Production Support
Application Test
Upgrade/patch testing
Audit or information “freeze” requirements
Dedicated Reporting Database
Rehosting
What Else Is Cloning Used For?
However,, cloning
g is not – by
y itself – a disaster
recovery solution.
Cloning Compared to…
Requires
i a fflat fi
file, or UNIX pipes
i
New object numbers and timestamps created
Indexes are created anew:
Structure may differ
Performance might differ
Statistics are created from scratch – could
change query execution plans
Destination database may be better
better, or may be
worse than original… it won’t be the same!
Cloning Compared to…
… Database replication:
Significant
i ifi setup required
i on the source
database
Significant setup required on the destination
database
Not all object types are handled
Potential for performance impact affecting the
source database
Cloning Compared to…
… Oracle Streams:
… Transportable tablespaces
S lit Mi
Split Mirror Cl
Cloning
i
Hot or Cold
Using OS Commands & SQL
Advantages:
Best way to learn mechanics of cloning
Ability to implement customized functions
Ability
y to integrate
g host-to-host copying
py g
Disadvantages:
Requires ongoing maintenance
Might be less reliable than other methods
RMAN Duplicate Command
Advantages:
Documented and supported by Oracle Corp.
Corp
Lowest maintenance solution
Quickest implementation
p
Extensive error checking
Disadvantages:
Does not move data from host to host
Requires backup media to perform cloning
Split Mirror Cloning
Mirror 1 New DB
Mirror 2
Mirror 3 Mounted
Mirror 3
Split Mirror Cloning
Advantages:
Ordinarily quickest way to clone a database
Ordinarily,
Minimizes performance impact on database host
systems
Disadvantages:
Requires system administration rights (root)
Complex scripting, using vendor proprietary
commands
Cloning: Step by Step
Copying caveats!
Counter-intuitive terminology:
Database being g copied
p is called “target”
g
Destination database is called “auxiliary”
Only duplicates from backup media, not directly
from database to database.
database
Does not perform host-to-host transport.
Recovery from failures can be daunting.
daunting
Read-only, and especially transportable,
tablespaces require special handling and care, or
duplication operation will fail.
Split Mirror Cloning
info@sagelogix.com